View source: R/v0_annotation.R
| dbAnnotate | R Documentation |
Annotate clonotypes by matching them to known condition-associated immune receptors in a database. Before using this function, you must download or load the relevant database files. For more information, see the online tutorial.
dbAnnotate(.data, .db, .data.col, .db.col)
.data |
The data to process. It can be a data.frame, a data.table::data.table, or a list of these objects. Every object must have columns in the immunarch compatible format. immunarch_data_format Competent users may provide advanced data representations: DBI database connections, or a list of these objects. They are supported with the same limitations as basic objects. Note: each connection must represent a separate repertoire. |
.db |
A data frame or a data table with an immune receptor database. See dbLoad on how to load databases into R. |
.data.col |
Character vector. Vector of columns in the input repertoires to use for clonotype search. E.g., |
.db.col |
Character vector. Vector of columns in the database to use for clonotype search. The order must match the order of ".data.col".
E.g., if ".data.col" is |
Data frame with input sequences and counts or proportions for each of the input repertoire.
data(immdata)
#' # Example file path
file_path <- paste0(system.file(package = "immunarch"), "/extdata/db/vdjdb.example.txt")
# Load the database with human-only TRB-only receptors for all known antigens
db <- dbLoad(file_path, "vdjdb", "HomoSapiens", "TRB")
res <- dbAnnotate(immdata$data, db, "CDR3.aa", "cdr3")
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.