Skip to contents

AddCellMetaToVDJ merges annotations from Seurat object (e.g. cluster annotations) into VDJ repertoire data frame.

Usage

AddCellMetaToVDJ(vdj, SeuratObj, metadata_col, barcode_col = "row.names")

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)

Value

VDJ data frame with additional columns taken from the Seurat object metadata slot.

Details

The function accepts any columns found in the metadata slot of the Seurat object. You need to indicate for each column whether the data