Package htsjdk.samtools.util
Class WholeGenomeReferenceSequenceMask
java.lang.Object
htsjdk.samtools.util.WholeGenomeReferenceSequenceMask
- All Implemented Interfaces:
ReferenceSequenceMask
Implementation of ReferenceSequenceMask that indicates that all the loci in the sequence dictionary are of interest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(int sequenceIndex, int position) It is required that sequenceIndex is >= any previous sequenceIndex passed to this class.intintintnextPosition(int sequenceIndex, int position) It is required that sequenceIndex is >= any previous sequenceIndex passed to this class.
-
Constructor Details
-
WholeGenomeReferenceSequenceMask
-
-
Method Details
-
get
public boolean get(int sequenceIndex, int position) Description copied from interface:ReferenceSequenceMaskIt is required that sequenceIndex is >= any previous sequenceIndex passed to this class.- Specified by:
getin interfaceReferenceSequenceMask- Returns:
- true if the mask is set for the given sequence and position
-
nextPosition
public int nextPosition(int sequenceIndex, int position) Description copied from interface:ReferenceSequenceMaskIt is required that sequenceIndex is >= any previous sequenceIndex passed to this class.- Specified by:
nextPositionin interfaceReferenceSequenceMask- Returns:
- the next pos on the given sequence >= position that is set, or -1 if there are no more set positions
-
getMaxSequenceIndex
public int getMaxSequenceIndex()- Specified by:
getMaxSequenceIndexin interfaceReferenceSequenceMask- Returns:
- Largest sequence index for which there are set bits.
-
getMaxPosition
public int getMaxPosition()- Specified by:
getMaxPositionin interfaceReferenceSequenceMask- Returns:
- the largest position on the last sequence index
-