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:
commit
8b20523f5e
|
|
@ -245,7 +245,7 @@ public class ASEReadCounter extends LocusWalker<String, Integer> {
|
||||||
for (final PileupElement base : pileup) {
|
for (final PileupElement base : pileup) {
|
||||||
rawDepth++;
|
rawDepth++;
|
||||||
|
|
||||||
if (!base.getRead().getProperPairFlag()){
|
if (base.getRead().getReadPairedFlag() && (base.getRead().getMateUnmappedFlag() || !base.getRead().getProperPairFlag())){
|
||||||
improperPairsCount++;
|
improperPairsCount++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue