View source: R/VDJ_db_annotate.R
VDJ_db_annotate | R Documentation |
Wraps the VDJ_antigen_integrate function and uses it to annotate a VDJ dataframe with antigen information. Needs to VDJ_db_load to be executed first, with preprocess=T and vgm.names=T to obtain the same column names as in the VDJ (to allow for sequence matching).
VDJ_db_annotate(VDJ, db.list, database.features, match, homology, lv.distance)
VDJ |
VDJ or VDJ.GEX.matrix[[1]] object, as obtained from the VDJ_GEX_matrix function in Platypus. |
db.list |
list of database dataframes or csv file paths, obtained from VDJ_db_load with . |
database.features |
list of features/column names to be integrated from the databases. |
match |
string - sequences by which to match and integrate the antigen information. Currently, only 'cdr3.aa' and 'cdrh3.aa' are supported, as all databases have these two sequence types ('VJ_cdr3s_aa','VDJ_cdr3s_aa'). |
homology |
string - 'exact' for exact sequence matchings, 'homology' for homology matching. |
lv.distance |
integer - maximum Levehnstein distance threshold for the homology matchings. |
VDJ with new columns - antigen information integrated from the antigen databases.
try({
VDJ_db_annotate(VDJ=VDJ,db.list=db.list,database.features='Epitope',match='cdr3.aa',homology=FALSE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.