Description Usage Arguments Value Examples
View source: R/randomsubsetdata.R
Randomly subset (cells) seurat object by a rate
1 | RandomSubsetData(object, rate, random.subset.seed = NULL, ...)
|
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 |
Returns a randomly subsetted seurat object
1 2 3 | pbmc_small
pbmc_small_subset<- RandomSubsetData(pbmc_small, 0.8)
dim(pbmc_small_subset@meta.data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.