When adding a unit test to LIBS for X and = CIGAR operators, I uncovered a bug with the implementation of the ReadBackedPileup.depthOfCoverage() method.

This commit is contained in:
Eric Banks 2012-08-10 14:58:29 -04:00
parent eca9613356
commit 40f0320a1c
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public abstract class AbstractReadBackedPileup<RBP extends AbstractReadBackedPil
protected void addPileupToCumulativeStats(AbstractReadBackedPileup<RBP, PE> pileup) {
size += pileup.getNumberOfElements();
abstractSize += pileup.depthOfCoverage();
abstractSize = pileup.depthOfCoverage() + (abstractSize == -1 ? 0 : abstractSize);
nDeletions += pileup.getNumberOfDeletions();
nMQ0Reads += pileup.getNumberOfMappingQualityZeroReads();
}