
Find GPU-accelerated neighbours for single cells
find_neighbours_gpu_sc.RdThis function generates kNN data using GPU-accelerated algorithms via the
bixverse.gpu package, then turns it into an sNN igraph for downstream
clustering. See generate_gpu_knn_sc() for the three searches on offer.
This function lives in a separate package from the CPU-based
find_neighbours_sc() so that users without GPU hardware do not need to
install the GPU dependencies.
Usage
find_neighbours_gpu_sc(
object,
embd_to_use = "pca",
no_embd_to_use = NULL,
modality = c("rna", "adt"),
knn_method = c("nndescent", "exhaustive", "ivf"),
nn_params = params_nn_gpu(),
k = 15L,
snn_params = params_sc_neighbours(),
seed = 42L,
gpu_method = lifecycle::deprecated(),
ivf_params = lifecycle::deprecated(),
dist_metric = lifecycle::deprecated(),
.verbose = TRUE
)Arguments
- object
SingleCells(orSingleCellsMultiModal) class.- embd_to_use
String. The embedding to use.
- no_embd_to_use
Optional integer. Number of embedding dimensions to use. If
NULLall will be used.- modality
String. One of
c("rna", "adt"). You can only use"adt"onSingleCellsMultiModalclass.- knn_method
String. One of
c("nndescent", "exhaustive", "ivf").- nn_params
List. Output of
params_nn_gpu().- k
Integer. Number of neighbours.
- snn_params
List. Output of
bixverse::params_sc_neighbours(). The kNN graph-related parameters will be ignored in favour ofnn_params.- seed
Integer. For reproducibility.
- gpu_method
- ivf_params
- dist_metric
- .verbose
Boolean. Controls verbosity.