Merge pull request #979 from broadinstitute/ami-fixASE-bug

solve bug - now work also when the reads does not have mate
This commit is contained in:
Geraldine Van der Auwera 2015-05-14 21:09:52 -04:00
commit 8b20523f5e
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ public class ASEReadCounter extends LocusWalker<String, Integer> {
for (final PileupElement base : pileup) {
rawDepth++;
if (!base.getRead().getProperPairFlag()){
if (base.getRead().getReadPairedFlag() && (base.getRead().getMateUnmappedFlag() || !base.getRead().getProperPairFlag())){
improperPairsCount++;
continue;
}