S - sequence typepublic final class AlignmentIteratorForward<S extends Sequence<S>> extends Object implements AlignmentIterator<S>
| Constructor and Description |
|---|
AlignmentIteratorForward(Mutations<S> mutations,
Range seq1Range)
Create alignment iterator
|
AlignmentIteratorForward(Mutations<S> mutations,
Range seq1Range,
int seq2Position)
Create alignment iterator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
advance()
Advance to the next alignment position
|
int |
getCurrentMutation()
Current mutation or
Mutation.NON_MUTATION if on match |
int |
getMutationsPointer()
Points to current mutation or if currentMutation ==
Mutation.NON_MUTATION points to the next mutation. |
int |
getSeq1Position()
Points to current position in sequence1; if on insertion points to the next position after insertion point
|
int |
getSeq2Position()
Points to current position in sequence2; if deletion points to the next position after deletion
|
public AlignmentIteratorForward(Mutations<S> mutations, Range seq1Range)
mutations - mutations (alignment)seq1Range - aligned rangepublic boolean advance()
advance in interface AlignmentIterator<S extends Sequence<S>>public int getSeq1Position()
AlignmentIteratorgetSeq1Position in interface AlignmentIterator<S extends Sequence<S>>public int getSeq2Position()
AlignmentIteratorgetSeq2Position in interface AlignmentIterator<S extends Sequence<S>>public int getMutationsPointer()
AlignmentIteratorMutation.NON_MUTATION points to the next mutation.getMutationsPointer in interface AlignmentIterator<S extends Sequence<S>>public int getCurrentMutation()
AlignmentIteratorMutation.NON_MUTATION if on matchgetCurrentMutation in interface AlignmentIterator<S extends Sequence<S>>Copyright © 2018. All rights reserved.