diff --git a/java/src/org/broadinstitute/sting/playground/utils/GenomicMap.java b/java/src/org/broadinstitute/sting/playground/utils/GenomicMap.java index f8d2a6b51..71cb1d1ac 100644 --- a/java/src/org/broadinstitute/sting/playground/utils/GenomicMap.java +++ b/java/src/org/broadinstitute/sting/playground/utils/GenomicMap.java @@ -124,7 +124,7 @@ public class GenomicMap implements Iterable 0 ) { + newCigar.add(new CigarElement( currLength,ce.getOperator()) ); // record deletion/match till the end of the current segment + len -= currLength; // we still have 'len' bases remaining in the current cigar element + } // NOTE: since we entered the loop, we were guaranteed that len > currLength, so now len > 0 @@ -369,12 +375,17 @@ public class GenomicMap implements Iterable s = new ArrayList(); // s.add( GenomeLocParser.createGenomeLoc("chr1", 100, 199)); // s.add( GenomeLocParser.createGenomeLoc("chr1", 300, 499)); @@ -382,14 +393,18 @@ public class GenomicMap implements Iterable