Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

DownsampleFeatures(atac_small, n = 10)

Signac

Analysis of Single-Cell Chromatin Data

v1.2.1
MIT + file LICENSE
Authors
Tim Stuart [aut, cre] (<https://orcid.org/0000-0002-3044-0897>), Avi Srivastava [aut] (<https://orcid.org/0000-0001-9798-2079>), Paul Hoffman [ctb] (<https://orcid.org/0000-0002-7693-8957>), Rahul Satija [ctb] (<https://orcid.org/0000-0001-9448-8833>)
Initial release
2021-05-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.