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