DownsampleFeatures: Downsample Features

Description Usage Arguments Value Examples

View source: R/preprocessing.R

Description

Randomly downsample features and assign to VariableFeatures for the object. This will select n features at random.

Usage

1
DownsampleFeatures(object, assay = NULL, n = 20000, verbose = TRUE)

Arguments

object

A Seurat object

assay

Name of assay to use. Default is the active assay.

n

Number of features to retain (default 20000).

verbose

Display messages

Value

Returns a Seurat object with VariableFeatures set to the randomly sampled features.

Examples

1

timoast/signac documentation built on Dec. 14, 2021, 11:34 p.m.