R/neighbor-distances.R
calcNearestNeighbors.Rd
Group regions from the same chromosome together and compute the distance of a region to its nearest neighbor. Distances are then lumped into a numeric vector.
calcNearestNeighbors(query, correctRef = "None")
A numeric vector or list of vectors containing the distance of regions to their nearest neighbors.
Nneighbors = calcNearestNeighbors(vistaEnhancers)