scsampler | R Documentation |
Perform subsampling with the scSampler
python package.
scsampler(mat, N, random_split = 1, seed = 0)
mat |
m x n matrix. Samples (the dimension along which to subsample) should be in the rows, features in the columns. |
N |
Numeric scalar, the number of samples to retain. |
random_split |
Numeric scalar, the number of parts to randomly split the data into before subsampling within each part. A larger value will speed up computations, but give less optimal results. |
seed |
Numeric scalar, passed to |
The first time this function is run, it will create a conda environment
containing the scSampler
package.
This is done via the basilisk
R/Bioconductor package - see the
documentation for that package for troubleshooting.
A numeric vector with indices to retain.
Charlotte Soneson, Michael Stadler
Song et al (2022): scSampler: fast diversity-preserving subsampling of large-scale single-cell transcriptomic data. bioRxiv doi:10.1101/2022.01.15.476407
x <- matrix(rnorm(500), nrow = 100)
scsampler(mat = x, N = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.