public class PileupIterator extends java.lang.Object implements java.util.Iterator
Overall class containing pileup state
Modifiers | Name | Description |
---|---|---|
class |
PileupIterator.Pileup |
Inner class that captures pileup state at a specific position |
Modifiers | Name | Description |
---|---|---|
java.util.List<PileupState> |
alignments |
|
java.lang.String |
chr |
|
int |
end |
|
int |
iteratorPosition |
|
int |
start |
Constructor and description |
---|
PileupIterator
() |
PileupIterator
(htsjdk.samtools.SamReader samFile, java.lang.String chr, int start, int end) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
close() |
|
public int |
getMinMappingQuality() |
|
public htsjdk.samtools.SAMRecordIterator |
getReadIterator() |
|
public boolean |
hasNext() |
|
public Pileup |
next() Move the iterator to the next base position within the requested pileup range and return a Pileup object for that position. |
|
public void |
remove() |
|
public void |
setMinMappingQuality(int minMappingQuality) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Move the iterator to the next base position within the requested pileup range and return a Pileup object for that position.
The logic here is as follows:
This creates an efficient store of all the reads overlapping the current pileup position.
Each read is not stored directly but in an object that captures its state within the current pileup (PileupState).