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")

Arguments

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.

Value

A numeric vector or list with different vectors containing the distances of regions to their upstream/downstream neighbors.

Examples

dist = calcNeighborDist(vistaEnhancers)