keep_high_var_genes: Filter down to the most variable genes

View source: R/utils_filter.R

keep_high_var_genesR Documentation

Filter down to the most variable genes

Description

Filter a SingleCellExperiment or matrix down to the most variable genes (rows), variability is determined by var() scaled by the total counts for the gene.

Usage

keep_high_var_genes(x, n)

Arguments

x

the SingleCellExperiment or matrix

n

the number of most variable genes to keep

Value

object of same type as input containing the most variable genes

Examples

data(sample_sce_data)
keep_high_var_genes(sample_sce_data, 50)

Shians/CellBench documentation built on Oct. 16, 2023, 7:54 a.m.