generate a umi matrix in which each cell (Column) is downsampled to a fixed number of molecules. This is a ehavy an inefficient proces at the moment, so we split it into chunks and run parallel using doMC

scm_downsamp(umis, n)

Arguments

umis

the umi matrix

n

the constant number of molecules per cell in the output matrix