public final class ArtificialReadQueryIterator extends ArtificialReadIterator
Modifier and Type | Field and Description |
---|---|
protected int |
contigIndex |
protected int |
finalPos |
protected boolean |
overlapping |
protected boolean |
seeked |
protected int |
startingChr |
protected int |
startPos |
currentChromo, currentRead, done, eChromosomeCount, header, next, open, rCount, sChr, totalReadCount, unmappedReadCount, unmappedRemaining
Modifier and Type | Method and Description |
---|---|
void |
ensureUntouched()
make sure we haven't been used as an iterator yet; this is to miror the MergingSamIterator2 action.
|
boolean |
hasNext()
override the hasNext, to incorportate our limiting factor
|
boolean |
matches(GATKRead rec)
given a read and the query type, check if it matches our regions
|
void |
query(java.lang.String contig,
int start,
int stop,
boolean contained) |
void |
queryContained(java.lang.String contig,
int start,
int stop)
query containing - get reads contained by the specified interval
|
void |
queryOverlapping(java.lang.String contig,
int start,
int stop)
query containing - get reads contained by the specified interval
|
protected void |
reset() |
close, createNextRead, getHeader, iterator, next, peek, readsTaken, remove
protected int finalPos
protected int startPos
protected int contigIndex
protected boolean overlapping
protected int startingChr
protected boolean seeked
protected void reset()
reset
in class ArtificialReadIterator
public void queryContained(java.lang.String contig, int start, int stop)
contig
- the contig index stringstart
- the start positionstop
- the stop positionpublic void queryOverlapping(java.lang.String contig, int start, int stop)
contig
- the contig index stringstart
- the start positionstop
- the stop positionpublic void query(java.lang.String contig, int start, int stop, boolean contained)
public boolean matches(GATKRead rec)
rec
- the readpublic boolean hasNext()
hasNext
in interface java.util.Iterator<GATKRead>
hasNext
in class ArtificialReadIterator
public void ensureUntouched()