Randomly downsample features and assign to VariableFeatures for the object. This will select n features at random.
Value
Returns a SeuratObject::Seurat() object with
SeuratObject::VariableFeatures() set to the randomly sampled features.
Examples
DownsampleFeatures(atac_small, n = 10)
#> Randomly downsampling features
#> An object of class Seurat
#> 150 features across 100 samples within 2 assays
#> Active assay: peaks (100 features, 10 variable features)
#> 2 layers present: counts, data
#> 1 other assay present: RNA
#> 2 dimensional reductions calculated: lsi, umap