
Calculates diffusion maps for density calculations for meta cells
rs_metacell_density.Rd
Builds multiscale diffusion components from the kNN graph and uses the
distance to the
k_density-th neighbour in that space as a density proxy.
The lower quartile of these distances is tagged high density, the upper
quartile low density, the rest mid.
Arguments
- knn_data
Named list. The kNN data with
indices(0-indexed!),dist,kanddist_metric.- n_dcs
Integer. The number of diffusion coordinates to return. Typically
10.- k_density
Integer. The k-nearest neighbour to use for the density estimation. Typically
150.- knn_params
List. The kNN parameters defined by
params_sc_neighbours(), used for the search in diffusion space.- verbose
Integer.
0L- quiet;1L- normal verbosity;2L- detailed verbosity.- seed
Integer. For reproducibility.