R/findNearCellsByRadius.R
findNearCellsByRadius.Rd
Using RANN::nn2 function to get the cell-cell distance by a given distance.
findNearCellsByRadius(
seu,
maxRadius,
spatialCoordsNames = CodexPredefined$spatialCoordsNames
)
A data.frame of distance pairs with column name as 'cell_1', 'cell_2', 'dist'
# example code