grSignedDistance: grSignedDistance

View source: R/genomicRegions.R

grSignedDistanceR Documentation

grSignedDistance

Description

Compute pairwise distances between the elements of two GRanges objects, taking orientation and position into account. (wrapper for GRanges::distance)

Usage

grSignedDistance(gr1, gr2)

Arguments

gr1

GRanges object 1

gr2

GRanges object 2

Value

vector of pairwise distances Elements in which the region in gr2 is upstream of the region in gr1 will be assigned negative distances. "Upstream" is defined based on the orientation of the regions in gr1.


demuellae/muRtools documentation built on Nov. 6, 2024, 9:44 a.m.