
GPU: fastMNN batch correction
rs_fast_mnn_gpu.Rd
GPU equivalent of
bixverse::rs_mnn, implementing the fast mutual nearest
neighbour correction from Haghverdi, et al. The MNN searches and the
tricube neighbour search run on the WGPU backend; everything else is
shared with the CPU implementation.
Arguments
- embd
Numerical matrix. The embedding to correct, usually PCA. Rows represent cells.
- batch_labels
Integer vector. These represent to which batch a given cell belongs. Needs to be 0-indexed!
- fastmnn_params
List. Parameter list, see
params_sc_fastmnn_gpu().- seed
Integer. Seed for reproducibility purposes.
- verbose
Integer.
0L- quiet;1L- normal verbosity;2L- detailed verbosity.