Package htsjdk.samtools.util
Class WholeGenomeReferenceSequenceMask
- java.lang.Object
-
- htsjdk.samtools.util.WholeGenomeReferenceSequenceMask
-
- All Implemented Interfaces:
ReferenceSequenceMask
public class WholeGenomeReferenceSequenceMask extends Object implements ReferenceSequenceMask
Implementation of ReferenceSequenceMask that indicates that all the loci in the sequence dictionary are of interest.
-
-
Constructor Summary
Constructors Constructor Description WholeGenomeReferenceSequenceMask(SAMFileHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanget(int sequenceIndex, int position)It is required that sequenceIndex is >= any previous sequenceIndex passed to this class.intgetMaxPosition()intgetMaxSequenceIndex()intnextPosition(int sequenceIndex, int position)It is required that sequenceIndex is >= any previous sequenceIndex passed to this class.
-
-
-
Constructor Detail
-
WholeGenomeReferenceSequenceMask
public WholeGenomeReferenceSequenceMask(SAMFileHeader header)
-
-
Method Detail
-
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
-
-