View source: R/SeuratAddVariants.R
SeuratAddVariants | R Documentation |
The genotype object should contain a consensus call (vartrix conventions), reference allele count, alternate allele count, and a frequency matrix (typically offset by one to distinguish 0 frequency from no data in an efficient sparse matrix format), as well as metadata about the variants. By default, the single cell matrices will be stored in assays named VAR, REF, ALT and FREQ respectively, and the metadata will be added to the VAR assay feature metadata.
SeuratAddVariants(
seurat,
genotype,
consensus = "VAR",
reference = "REF",
alternate = "ALT",
frequency = "FREQ"
)
seurat |
Seurat object. |
genotype |
Genotype object. |
consensus |
character(1). The name of the Seurat assay that will store the consensus matrix (values 0 = no data, 1 = ref/ref, 2=alt/alt, 3=ref/alt). |
reference |
character(1). The name of the Seurat assay that will store the reference allele count matrix. |
alternate |
character(1). The name of the Seurat assay that will store the alternate allele count matrix. |
frequency |
character(1). The name of the Seurat assay that will store the frequency matrix (0 = no data, 1-2 = ref only to alt only). |
# MySeuratObject <- SeuratAddVariants(MySeuratObject, MyGenotypeObject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.