gr.dist | R Documentation |
GRanges
Computes matrix of pairwise distance between elements of two GRanges
objects of length n
and m
.
Distances are computed as follows:
NA for ranges on different seqnames
0 for overlapping ranges
min(abs(end1-end2), abs(end1-start2), abs(start1-end2), abs(start1-end1),) for all others
If only gr1
is provided, then will return n x n matrix of gr1
vs itself
If max.dist = TRUE
, then will replace min
with max
above
gr.dist(gr1, gr2 = NULL, ignore.strand = FALSE, ...)
gr1 |
First |
gr2 |
Second |
ignore.strand |
Don't required elements be on same strand to avoid |
... |
Additional arguments to be supplied to |
N
by M
matrix with the pairwise distances, with gr1
on rows and gr2
on cols
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.