getMostExpressedGenes: Get most expressed genes for specified grouping variables in...

Description Usage Arguments Value Examples

View source: R/getMostExpressedGenes.R

Description

This function calculates the most expressed genes for one or multiple grouping variables in the meta data of the provided Seurat object.

Usage

1
getMostExpressedGenes(object, assay = "RNA", groups = NULL)

Arguments

object

Seurat object.

assay

Assay to pull transcripts counts from; defaults to 'RNA'.

groups

Grouping variables (columns) in object@meta.data for which most expressed genes should be calculated; defaults to NULL.

Value

Seurat object with most expressed genes stored for every group level of the specified groups stored in object@misc$most_expressed_genes.

Examples

1
2
3
4
5
6
7
pbmc <- readRDS(system.file("extdata/v1.3/pbmc_seurat.rds",
  package = "cerebroApp"))
pbmc <- getMostExpressedGenes(
  object = pbmc,
  assay = 'RNA',
  groups = c('sample','seurat_clusters')
)

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