View source: R/preprocessing.R
DownsampleFeatures | R Documentation |
Randomly downsample features and assign to VariableFeatures for the object. This will select n features at random.
DownsampleFeatures(object, assay = NULL, n = 20000, verbose = TRUE)
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 |
Returns a Seurat
object with
VariableFeatures
set to the randomly sampled features.
DownsampleFeatures(atac_small, n = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.