geosketch | R Documentation |
Perform geometric sketching with the geosketch
python package.
geosketch(
mat,
N,
replace = FALSE,
k = "auto",
alpha = 0.1,
seed = NULL,
max_iter = 200,
one_indexed = TRUE,
verbose = FALSE
)
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. |
replace |
Logical scalar, whether to sample with replacement. |
k |
Numeric scalar or |
alpha |
Numeric scalar defining the acceptable interval around |
seed |
Numeric scalar or |
max_iter |
Numeric scalar giving the maximum iterations at which to terminate binary search in rare cases of non-monotonicity of covering boxes. |
one_indexed |
Logical scalar, whether to return one-indexed indices. |
verbose |
Locigal scalar, whether to print logging output while running. |
The first time this function is run, it will create a conda environment
containing the geosketch
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
Hie et al (2019): Geometric sketching compactly summarizes the single-cell transcriptomic landscape. Cell Systems 8, 483–493.
x <- matrix(rnorm(500), nrow = 100)
geosketch(mat = x, N = 10, seed = 42)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.