View source: R/add_seurat_metadata.R
add_seurat_metadata | R Documentation |
Takes a list of paired chains and defines clonotypes.
add_seurat_metadata(
seu = NULL,
clonal.list = ls(pattern = "^Clonal", envir = .GlobalEnv),
cdr3_map = "cdr3_col2",
cell = "T",
purity = 0.8,
stick_only = "all",
sticky = FALSE,
overwrite = T
)
seu |
Seurat. A seurat object to embed with clonality data. |
clonal.list |
Character. The clonalities to be inserted into the seurat metadata. Default: |
cdr3_map |
Character. The columun name to be used to map single chains to paired chains. CDR3 for nt ; cdr3_col2 for aa. Default: "cdr3_col2". |
cell |
Character. Possible values: |
purity |
Numeric. Minimum fraction of the dominant mapped paired to be used in a sticky assignment. |
stick_only |
Character vector. Possible values: |
sticky |
Logical. If the script should merge the clonality of single chain cells with paired cells. |
overwrite |
Logical. Whether to overwrite clonality columns from seurat. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.