Package org.snpeff.interval.tree
Interface Itree
-
- All Superinterfaces:
java.lang.Iterable<Marker>
- All Known Implementing Classes:
IntervalTree,IntervalTreeArray,IntervalTreeOri
public interface Itree extends java.lang.Iterable<Marker>
Interval tree interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Marker interval)Add an interval object to the interval tree's listvoidadd(Markers markers)Add all intervals to interval tree's listvoidbuild()Build the interval tree to reflect the list of intervals.MarkersgetIntervals()booleanisEmpty()booleanisInSync()Is the tree 'in sync'? If false, the tree must be 'build()' before the next queryvoidload(java.lang.String fileName, Genome genome)Load intervals from fileMarkersquery(Interval interval)Perform an interval query, returning the intervals that intersect with 'interval'intsize()Size: number of entries in this treeMarkersstab(int point)Perform a stabbing query, returning the interval objects
-
-
-
Method Detail
-
add
void add(Marker interval)
Add an interval object to the interval tree's list
-
add
void add(Markers markers)
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
void load(java.lang.String fileName, Genome genome)Load intervals from file
-
query
Markers query(Interval interval)
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
Markers stab(int point)
Perform a stabbing query, returning the interval objects- Returns:
- All intervals intersecting 'point'
-
-