Annotate ImmunData with an external sequence database (e.g. VDJdb)¶
Description¶
Add annotations to ImmunData from an external database such as VDJdb.
Usage¶
annotate_with_database(idata, db, by, label_col = "species", ...)
Arguments¶
idata |
An immundata::ImmunData object. |
db |
A data frame, tibble, duckplyr_df, or a single
character string containing a path to a delimited or Parquet file. Files
are read via duckplyr. |
by |
A named character vector of join columns, of the form
c(idata_col = "db_col"). |
label_col |
A single character string naming the column from db to
add to idata (for VDJdb, this could be
"species"). |
... |
Optional dplyr or duckplyr filter expressions evaluated on
db before joining (e.g.
species == "HomoSapiens", gene == "TRB"). |
Value¶
A new immundata::ImmunData object with the selected database label added as an annotation column.