R/neighbors.R
estimate_neighbors.RdEstimate k-nearest neighbours graph from a TourExperiment object
estimate_neighbors(.data, num_neighbors, .on = NULL, .engine = BiocNeighbors::KmknnParam())
| .data | a |
|---|---|
| num_neighbors | An integer scalar for number of neighbors |
| .on | a character scalar, indicating the part of |
| .engine | A |
A TourExperiment object with the neighborSets slot
filled.
The representation of the nearest neighbors is a matrix of
size ncol(.data) by num_neighbors containing the neighbor indexes for
each sample in .data