calcNeighborDist {GenomicDistributions} | R Documentation

## Group regions from the same chromosome together and calculate the distances between neighboring regions. Distances are then lumped into a numeric vector.

### Description

Group regions from the same chromosome together and calculate the distances between neighboring regions. Distances are then lumped into a numeric vector.

### Usage

    calcNeighborDist(query)

### Arguments

`query` | A GRanges or GRangesList object.

### Value

A numeric vector or list with different vectors containing the distances within neighboring regions.

### Examples

    dist = calcNeighborDist(vistaEnhancers)

[Package GenomicDistributions version 1.2.0 Index]