R/getMostExpressedGenes.R
getMostExpressedGenes.Rd
This function calculates the most expressed genes for one or multiple grouping variables in the meta data of the provided Seurat object.
getMostExpressedGenes(object, assay = "RNA", groups = NULL)
object | Seurat object. |
---|---|
assay | Assay to pull transcripts counts from; defaults to 'RNA'. |
groups | Grouping variables (columns) in |
Seurat object with most expressed genes stored for every group level of the
specified groups stored in object@misc$most_expressed_genes
.
pbmc <- readRDS(system.file("extdata/v1.3/pbmc_seurat.rds", package = "cerebroApp")) pbmc <- getMostExpressedGenes( object = pbmc, assay = 'RNA', groups = c('sample','seurat_clusters') )#>#>