public int convertToSeq1Position(int positionInSeq2) {
        if (!sequence2Range.containsBoundary(positionInSeq2))
            return -1;

        positionInSeq2 += -sequence2Range.getFrom() + sequence1Range.getFrom();

        int p = mutations.convertToSeq1Position(positionInSeq2);
        return p < 0 ? -2 - ~p : p;
    }
public int convertToSeq1Position ( int positionInSeq2 ) { if ( ! sequence2Range . containsBoundary ( positionInSeq2 ) ) return - 1 ; positionInSeq2 += - sequence2Range . getFrom ( ) + sequence1Range . getFrom ( ) ; int p = mutations . convertToSeq1Position ( positionInSeq2 ) ; return p < 0 ? - 2 - ~ p : p ; }
Converts specified position from sequence2 coordinates to sequence1 coordinates. If position is out of aligned
range of sequence2, returns -1. If letter at specified position in sequence2 is removed in sequence1, than
returns {@code -2 - p}, where {@code p} is a position of previous letter in sequence2.

@param positionInSeq2 position in sequence2
@return position in coordinates of sequence1, or -1 if specified position is out of aligned range of sequence2,
or if letter at specified position in sequence2 is removed in sequence2 --- {@code -2 - p} where {@code p} is a
position of next letter in sequence1