R/calculatePercentGenes.R
calculatePercentGenes.Rd
Get percentage of transcripts of gene list compared to all transcripts per cell.
calculatePercentGenes(object, assay = "RNA", genes)
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. |
List of lists containing the percentages of expression for each provided gene list.
pbmc <- readRDS(system.file("extdata/v1.3/pbmc_seurat.rds", package = "cerebroApp")) pbmc <- calculatePercentGenes( object = pbmc, assay = 'RNA', genes = list('example' = c('FCN1','CD3D')) )