| interval_overlap {genomeIntervals} | R Documentation |
Given two objects, a 'from' and a 'to', assess which intervals in 'to' overlap which of 'from'.
## S4 method for signature 'Genome_intervals,
## Genome_intervals':
interval_overlap(
from, to,
check_valid = TRUE
)
## S4 method for signature 'Genome_intervals_stranded,
## Genome_intervals_stranded':
interval_overlap(
from, to,
check_valid = TRUE
)
from |
A Genome_intervals or Genome_intervals_stranded object.
|
to |
A Genome_intervals or Genome_intervals_stranded object. |
check_valid |
Should validObject be called before passing to
compiled code?
|
A wrapper calling intervals:interval_overlap by seq_name and by strand (if both to and from are "Genome_intervals_stranded" objects).
A list, with one element for each row of from. The elements
are vectors of indices, indicating which to rows overlap
each from. A list element of length 0 indicates a from with no
overlapping to intervals.
data(gen_ints)
# i as entered
i
# i in close_intervals notation
close_intervals(i)
# j in close_intervals notation
close_intervals(j)
# list of intervals of j overlapping intervals of i
interval_overlap(i,j)