Description Usage Arguments Value Examples
Distance is calculated from the center of input regions.
1 | getCisPairs(inGR, maxDist = 1e+06)
|
inGR |
|
maxDist |
maximal distance in base-pairs between pairs of ranges as single numeric value. |
A GInteractions
object with all pairs
within the given distance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # build example GRanges as input
inGR <- GRanges(
rep("chr1", 5),
IRanges(
c(10, 20, 30, 100, 1000),
c(15, 25, 35, 105, 1005)
)
)
# get all pairs within 50 bp
gi <- getCisPairs(inGR, maxDist = 50)
# getCisPiars returns a StrictGInteractions object
class(gi)
# The input regions are accessibly via regions()
regions(gi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.