Learn R Programming

Signac (version 1.14.0)

DownsampleFeatures: Downsample Features

Description

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

Usage

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

Value

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

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

Examples

Run this code
DownsampleFeatures(atac_small, n = 10)

Run the code above in your browser using DataLab