Description
Downsample each cell to a specified number of UMIs. Includes
an option to upsample cells below specified UMI as well.
Usage
SampleUMI(data, max.umi = 1000, upsample = FALSE, progress.bar = TRUE)
Arguments
data
Matrix with the raw count data
max.umi
Number of UMIs to sample to
upsample
Upsamples all cells with fewer than max.umi
Value
Matrix with downsampled data