if (interactive()) {
## IntervalForest objects are deprecated. Please use NCLists objects
## instead. See ?NCLists for more information.
query <- IRangesList(a=IRanges(c(1,4),c(5,7)),b=IRanges(9,10))
subject <- IRangesList(a=IRanges(c(2,2),c(2,3)),b=IRanges(10,12))
forest <- IntervalForest(subject)
findOverlaps(query, forest)
}
Run the code above in your browser using DataLab