View source: R/genomicRegions.R
grSignedDistance | R Documentation |
Compute pairwise distances between the elements of two GRanges
objects,
taking orientation and position into account.
(wrapper for GRanges::distance
)
grSignedDistance(gr1, gr2)
gr1 |
|
gr2 |
|
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.