getCisPairs {sevenC} | R Documentation |
GInteractions
object with all pairs of input
GRanges
within a given distance.Distance is calculated from the center of input regions.
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.
# 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)