GetMostVarGenes: Retrieve the Top Variable Genes from a Seurat Object

View source: R/Seurat.Utils.R

GetMostVarGenesR Documentation

Retrieve the Top Variable Genes from a Seurat Object

Description

Retrieves the names of the most variable genes from a Seurat object, typically used to focus subsequent analyses on genes with the greatest variation across cells.

Usage

GetMostVarGenes(obj, nGenes = p$nVarGenes)

Arguments

obj

A Seurat object containing gene expression data and, pre-computed highly variable gene information.

nGenes

The number of most variable genes to retrieve. Default: p$nVarGenes.

Value

A vector containing the names of the most variable genes.

Examples

## Not run: 
if (interactive()) {
  # Assuming `combined.obj` is a Seurat object with computed variable genes
  varGenes <- GetMostVarGenes(obj = combined.obj, nGenes = 100)
}

## End(Not run)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.