powered by
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)
Returns a Seurat object with VariableFeatures set to the randomly sampled features.
Seurat
VariableFeatures
A Seurat object
Name of assay to use. Default is the active assay.
Number of features to retain (default 20000).
Display messages
DownsampleFeatures(atac_small, n = 10)
Run the code above in your browser using DataLab