R/neighbor-distances.R
calcNeighborDist.Rd
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")
A GRanges or GRangesList object.
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)