RandomSubsetData: Randomly subset (cells) seurat object by a rate

Description Usage Arguments Value Examples

View source: R/randomsubsetdata.R

Description

Randomly subset (cells) seurat object by a rate

Usage

1
RandomSubsetData(object, rate, random.subset.seed = NULL, ...)

Arguments

object

Seurat object

rate

a number betwee 0-1 for subsetting

random.subset.seed

set a random seed for sampling, default is NULL.

...

any other parameters to subset

Value

Returns a randomly subsetted seurat object

Examples

1
2
3
pbmc_small
pbmc_small_subset<- RandomSubsetData(pbmc_small, 0.8)
dim(pbmc_small_subset@meta.data)

crazyhottommy/scclusteval documentation built on Aug. 5, 2021, 3:20 p.m.