RR bug: we need to call removeFromHeader() for reads that were used in creating a polyploid consensus or else they are reused later in creating synthetic reads. In the worst case, this bug caused the tool to create 2 copies of the reduced read.

This commit is contained in:
Eric Banks 2012-09-22 21:50:10 -04:00
parent 60b93acf7d
commit ced652b3dd
1 changed files with 1 additions and 0 deletions

View File

@ -719,6 +719,7 @@ public class SlidingWindow {
}
for (GATKSAMRecord read : toRemove) {
removeFromHeader(windowHeader, read);
readsInWindow.remove(read);
}
return hetReads;