getTopHVG: getTopHVG Extracts the top variable genes from an input...

Description Usage Arguments Value Author(s) Examples

View source: R/getTopHVG.R

Description

getTopHVG Extracts the top variable genes from an input singleCellExperiment object

Usage

1
getTopHVG(inSCE, method, n = 2000)

Arguments

inSCE

an input singleCellExperiment object

method

represents which method to use for variable gene extraction from either Seurat "vst", "mean.var.plot", "dispersion" or Scran "modelGeneVar"

n

number of top variable genes to extract

Value

list of top variable gene names

Author(s)

Irzam Sarfraz

Examples

1
2
3
4
data(sce_chcl, package = "scds")
sce_chcl <- scran_modelGeneVar(sce_chcl, "counts")
# return top 10 variable genes
topGenes <- getTopHVG(sce_chcl, "modelGeneVar", 10)

singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.