downsampleCounts {scater} | R Documentation |
Downsample a count matrix to a desired proportion.
downsampleCounts(x, prop)
x |
matrix of counts |
prop |
numeric scalar or vector of length |
This function calls downsampleMatrix
.
from the DropletUtils package. It is deprecated and will be removed
in the next release.
an integer matrix of downsampled counts
sce10x <- read10xResults(system.file("extdata", package="scater")) downsampled <- downsampleCounts(counts(sce10x), prop = 0.5)