Package org.snpeff.interval.tree
Interface Itree
- All Known Implementing Classes:
IntervalTree,IntervalTreeArray,IntervalTreeOri
Interval tree interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an interval object to the interval tree's listvoidAdd all intervals to interval tree's listvoidbuild()Build the interval tree to reflect the list of intervals.booleanisEmpty()booleanisInSync()Is the tree 'in sync'? If false, the tree must be 'build()' before the next queryvoidLoad intervals from filePerform an interval query, returning the intervals that intersect with 'interval'intsize()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'
-