R/getTopHVG.R
getTopHVG.Rd
getTopHVG Extracts the top variable genes from an input singleCellExperiment object
getTopHVG(inSCE, method, n = 2000)
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 |
list of top variable gene names
Irzam Sarfraz
#> Warning: collapsing to unique 'x' values# return top 10 variable genes topGenes <- getTopHVG(sce_chcl, "modelGeneVar", 10)