Run downsampling or geometric sketching to reduce number of cells for interaction calculation. See Hie et al. 2019 Cell Systems for details.
Sketching(
object,
cell_id = NULL,
downsampling = TRUE,
size = 2000,
geom_pca_dims = 10,
scale = TRUE,
seed = 1,
which_python = Sys.which(names = "python3")
)
Matchmaker object.
Cell IDs used to subset the data. Default is NULL. If provided the downsampling will be skipped.
Perform downsampling based on the idents probability rather than geometric sketching. Default is TRUE.
Number of cells to return. Default is 2000. Please note that if downsampling is performed the actual size may vary due to rounding effect.
Number of PCA dimensions to use. Default is 10.
Whether to scale the data. Default is TRUE.
Random seed number for sampling. Default is 1.
Path to python3 used.
Returns a Matchmaker object.
if (FALSE) {
object <- Sketching(object, size = 2000)
}