View source: R/neighbor-distances.R
calcNeighborDist | R Documentation |
Group regions from the same chromosome together and calculate the distances of a region to its upstream and downstream neighboring regions. Distances are then lumped into a numeric vector.
calcNeighborDist(query, correctRef = "None")
query |
A GRanges or GRangesList object. |
correctRef |
A string indicating the reference genome to use if distances are corrected for the number of regions in a regionSet. |
A numeric vector or list with different vectors containing the distances of regions to their upstream/downstream neighbors.
dist = calcNeighborDist(vistaEnhancers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.