calcNeighborDist: Group regions from the same chromosome together and calculate...

View source: R/neighbor-distances.R

calcNeighborDistR 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.

Description

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.

Usage

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)

databio/GenomicDistributions documentation built on April 30, 2024, 4:34 a.m.