GetMostVarGenes | R Documentation |
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.
GetMostVarGenes(obj, nGenes = p$nVarGenes)
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: |
A vector containing the names of the most variable genes.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.