diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/indels/IndelRealigner.java b/java/src/org/broadinstitute/sting/gatk/walkers/indels/IndelRealigner.java index c30e6e112..9c971b10f 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/indels/IndelRealigner.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/indels/IndelRealigner.java @@ -924,9 +924,9 @@ public class IndelRealigner extends ReadWalker { // for reads that end in an insertion if ( myPosOnAlt + aRead.getReadLength() < endOfFirstBlock + indelCE.getLength() ) { int partialInsertionLength = myPosOnAlt + aRead.getReadLength() - endOfFirstBlock; - // if we also started inside the insertion, then we need to modify the length by 1 base + // if we also started inside the insertion, then we need to modify the length if ( !sawAlignmentStart ) - partialInsertionLength--; + partialInsertionLength = aRead.getReadLength(); readCigar.add(new CigarElement(partialInsertionLength, CigarOperator.I)); aRead.setCigar(readCigar); return true;