Description Usage Arguments Value Examples
Method for searching an IntervalTree object. Given a number or an ordered pair of numbers denoting the start and end of an interval, all intervals that overlapping the query interval in the IntervalTree object will be retrieved.
1 2 | ## S4 method for signature 'IntervalTree,numeric'
overlapQuery(theObject, anInterval)
|
theObject |
an IntervalTree object |
anInterval |
a vector of one or two numbers to check overlap, if two numbers are provided, they are treated as an interval (start, end). |
a list of vectors. Each vector contains information about an interval (name, start, end).
1 2 3 4 5 6 | m_ranges <- data.frame(c("A","B","C","D","E","F"), c(-1.1,2,3,4,20,200), c(5,4,6,10,21.2,400))
m_interval_tree <- new("IntervalTree", data=m_ranges, root=list())
overlapQuery(m_interval_tree, 4)
res <- overlapQuery(m_interval_tree, c(2.5,7))
res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.