Package htsjdk.samtools.util
Class IntervalUtil
- java.lang.Object
-
- htsjdk.samtools.util.IntervalUtil
-
public class IntervalUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntervalUtil.IntervalCombiner
-
Constructor Summary
Constructors Constructor Description IntervalUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertOrderedNonOverlapping(Iterator<Interval> intervals, SAMSequenceDictionary sequenceDictionary)Throws RuntimeException if the given intervals are not locus ordered and non-overlappingstatic booleancontains(IntervalList intervalList, String sequenceName, long position)Return true if the sequence/position lie in the provided interval list.static booleancontains(Interval interval, String sequenceName, long position)Return true if the sequence/position lie in the provided interval.
-
-
-
Method Detail
-
contains
public static boolean contains(Interval interval, String sequenceName, long position)
Return true if the sequence/position lie in the provided interval.
-
contains
public static boolean contains(IntervalList intervalList, String sequenceName, long position)
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
-
-