View source: R/neighbor-distances.R
calcNearestNeighbors | R Documentation |
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")
query |
A GRanges or GRangesList object. |
correctRef |
A string indicating the reference genome to use if Nearest neighbor distances are corrected for the number of regions in a regionSet. |
A numeric vector or list of vectors containing the distance of regions to their nearest neighbors.
Nneighbors = calcNearestNeighbors(vistaEnhancers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.