Package htsjdk.samtools.util
Class IntervalUtil
java.lang.Object
htsjdk.samtools.util.IntervalUtil
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertOrderedNonOverlapping
(Iterator<Interval> intervals, SAMSequenceDictionary sequenceDictionary) Throws RuntimeException if the given intervals are not locus ordered and non-overlappingstatic boolean
contains
(IntervalList intervalList, String sequenceName, long position) Return true if the sequence/position lie in the provided interval list.static boolean
Return true if the sequence/position lie in the provided interval.
-
Constructor Details
-
IntervalUtil
public IntervalUtil()
-
-
Method Details
-
contains
Return true if the sequence/position lie in the provided interval. -
contains
Return true if the sequence/position lie in the provided interval list. -
assertOrderedNonOverlapping
public static void assertOrderedNonOverlapping(Iterator<Interval> intervals, SAMSequenceDictionary sequenceDictionary) Throws RuntimeException if the given intervals are not locus ordered and non-overlapping- Parameters:
intervals
-sequenceDictionary
- used to determine order of sequences
-