Add cell metadata from Seurat object into VDJ data frame
AddCellMetaToVDJ.Rd
AddCellMetaToVDJ
merges annotations from Seurat object (e.g. cluster annotations) into VDJ repertoire data frame.
Arguments
- vdj
a data.frame of VDJ data after running
collapseBCR
.- SeuratObj
Seurat object.
- metadata_col
vector of column names from SeuratObj denoting the desired metadata to be extracted and added to vdj
- barcode_col
column name in SeuratObj metadata which holds cell barcodes. (Default: 'row.names' i.e. use row names of SeruatObj metadata as cell barcodes)