keep_high_var_genes {CellBench} | R 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)

[Package CellBench version 1.0.1 Index]