genotype_vdj: Genotype cells at the VDJ recombination sites

Description Usage Arguments Value Examples

View source: R/genotype_vdj.R

Description

Genotype cells at the VDJ recombination sites

Usage

1

Arguments

cnr

a cnr bundle. gene.index MUST include a column named 'gene.type' with pattern "TR.*gene" for T-cell receptor genes, and "IG.*gene" for B-cell receptor genes. These are the defaults for gene.type in bioconductor::biomaRt

Value

Returns a CNR object with 'cell.type' column containing assigments for 'T-cell', 'B-cell', and 'vdj.unspecified'. The function will only annotate cells with deletions on a 'TR' or 'IG' gene present in the gene.index table. All other annotation will be left intact. If 'cell.type' column is not present one will be created with 'NA'.

An additional cnr[["vdj.cells"]] vector is also returned containing the cell type of only VDJ cells.

Examples

1
2
3

SingerLab/gac documentation built on July 22, 2021, 3:27 a.m.