public class QueryInterval extends java.lang.Object implements java.lang.Comparable<QueryInterval>
Modifier and Type | Field and Description |
---|---|
int |
end
1-based, inclusive.
|
int |
referenceIndex
Index of reference sequence, based on the sequence dictionary of the BAM file being queried.
|
int |
start
1-based, inclusive
|
Constructor and Description |
---|
QueryInterval(int referenceIndex,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
boolean |
abuts(QueryInterval other) |
int |
compareTo(QueryInterval other) |
static QueryInterval[] |
optimizeIntervals(QueryInterval[] inputIntervals) |
boolean |
overlaps(QueryInterval other) |
java.lang.String |
toString() |
public final int referenceIndex
public final int start
public final int end
public int compareTo(QueryInterval other)
compareTo
in interface java.lang.Comparable<QueryInterval>
public boolean abuts(QueryInterval other)
public boolean overlaps(QueryInterval other)
public java.lang.String toString()
toString
in class java.lang.Object
public static QueryInterval[] optimizeIntervals(QueryInterval[] inputIntervals)
inputIntervals
- WARNING: This list is modified (sorted) by this method.