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)
A Seurat object
Name of assay to use. Default is the active assay.
Number of features to retain (default 20000).
Display messages
Returns a Seurat
object with
VariableFeatures
set to the randomly sampled features.
DownsampleFeatures(atac_small, n = 10)
#> Randomly downsampling features
#> An object of class Seurat
#> 1323 features across 100 samples within 3 assays
#> Active assay: peaks (323 features, 10 variable features)
#> 2 layers present: counts, data
#> 2 other assays present: bins, RNA
#> 2 dimensional reductions calculated: lsi, umap