Description Usage Arguments Value Examples
View source: R/preprocessing.R
Downsample each cell to a specified number of UMIs. Includes an option to upsample cells below specified UMI as well.
1 |
data |
Matrix with the raw count data |
max.umi |
Number of UMIs to sample to |
upsample |
Upsamples all cells with fewer than max.umi |
verbose |
Display the progress bar |
Matrix with downsampled data
1 2 3 | counts = as.matrix(x = GetAssayData(object = pbmc_small, assay = "RNA", slot = "counts"))
downsampled = SampleUMI(data = counts)
head(x = downsampled)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.