An Interface for Immune Receptor and HLA Gene Reference Data

immReferent is an R package designed to provide a stable, reproducible, and lightweight interface to IMGT immune receptor (TCR/BCR) and HLA sequences and the AIRR-C's OGRDB. It serves as the backbone for computational immunology workflows by ensuring a consistent source of high-quality nucleotide and protein sequences.
Please read more on these amazing resources and cite them in your work!
As immune repertoire analysis expands, a centralized sequence reference layer is critical for:
devtools::install_github("BorchLab/immReferent")
Or via Bioconductor (once accepted)
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("immReferent")
IMGT is used as a reference for gene names and sequence information can be accessed via getIMGT(). Data from IMGT is under a CC BY-NC-ND 4.0 license. Please be aware that attribution is required for usage and it is the intent of IMGT to not allow derivative or commercial usage.
library(immReferent)
# Check if IMGT is online
is_imgt_available()
# Download human IGHV sequences
ighv <- getIMGT("IGHV")
# Load cached data
cached <- loadIMGT("IGHV")
# List available datasets
listIMGT()
# Refresh cache
refreshIMGT("IGHV")
library(immReferent)
# Check if OGRDB is online
is_ogrdb_available()
# Download human IGHV sequences
igk_airr <- getOGRDB(species = "human", locus = "IGK", type = "NUC", format = "AIRR")
# Load cached data
cached <- loadIMGT(species = "human", locus = "IGK", type = "NUC", format = "AIRR")
# List available datasets
listOGRDB()
# Refresh cache
refreshOGRB(species = "human", locus = "IGK", type = "NUC", format = "AIRR")
If possible please include a reproducible example.
In Progress