Package org.snpeff.interval.tree
Interface Itree
- All Known Implementing Classes:
IntervalTree
,IntervalTreeArray
,IntervalTreeOri
Interval tree interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an interval object to the interval tree's listvoid
Add all intervals to interval tree's listvoid
build()
Build the interval tree to reflect the list of intervals.boolean
isEmpty()
boolean
isInSync()
Is the tree 'in sync'? If false, the tree must be 'build()' before the next queryvoid
Load intervals from filePerform an interval query, returning the intervals that intersect with 'interval'int
size()
Size: number of entries in this treestab
(int point) Perform a stabbing query, returning the interval objectsMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
add
Add an interval object to the interval tree's list -
add
Add all intervals to interval tree's list -
build
void build()Build the interval tree to reflect the list of intervals. Must not run if this is currently in sync -
getIntervals
Markers getIntervals() -
isEmpty
boolean isEmpty() -
isInSync
boolean isInSync()Is the tree 'in sync'? If false, the tree must be 'build()' before the next query -
load
Load intervals from file -
query
Perform an interval query, returning the intervals that intersect with 'interval'- Returns:
- All intervals that intersect 'interval'
-
size
int size()Size: number of entries in this tree -
stab
Perform a stabbing query, returning the interval objects- Returns:
- All intervals intersecting 'point'
-