
Get the KNN distance
get_knn_dist.RdGetter for an integer matrix of samples x distances. Useful in combination
with get_knn_mat().
Usage
get_knn_dist(x, ...)
## S7 method for class <bixverse::MetaCells>
get_knn_dist(x, ...)
# S3 method for class 'ScCache'
get_knn_dist(x, ...)
## S7 method for class <bixverse::SingleCells>
get_knn_dist(x, ...)
# S3 method for class 'SingleCellNearestNeighbour'
get_knn_dist(x, ...)
## S7 method for class <bixverse::SingleCellsSubset>
get_knn_dist(x, ...)Examples
# cells x neighbour distances
sc <- demo_single_cells()
dim(get_knn_dist(sc))
#> [1] 500 15
unlink(sc@dir_data, recursive = TRUE, force = TRUE)