calculatePercentGenes: Calculate percentage of transcripts of gene list.

Description Usage Arguments Value Examples

View source: R/calculatePercentGenes.R

Description

Get percentage of transcripts of gene list compared to all transcripts per cell.

Usage

1
calculatePercentGenes(object, assay = "RNA", genes)

Arguments

object

Seurat object.

assay

Assay to pull counts from; defaults to 'RNA'. Only relevant in Seurat v3.0 or higher since the concept of assays wasn't implemented before.

genes

List(s) of genes.

Value

List of lists containing the percentages of expression for each provided gene list.

Examples

1
2
3
4
5
6
7
pbmc <- readRDS(system.file("extdata/v1.3/pbmc_seurat.rds",
  package = "cerebroApp"))
pbmc <- calculatePercentGenes(
  object = pbmc,
  assay = 'RNA',
  genes = list('example' = c('FCN1','CD3D'))
)

romanhaa/cerebroApp documentation built on Nov. 25, 2021, 5:29 p.m.