Skip to content

Commit

Permalink
solve bug - now work also when the reads does not have mate
Browse files Browse the repository at this point in the history
reads with no mate will be counted as valid reads
  • Loading branch information
amilev committed May 12, 2015
1 parent e142b5b commit 0b11ee4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -245,7 +245,7 @@ protected String calculateLineForSite(final ReadBackedPileup pileup, final Strin
for (final PileupElement base : pileup) {
rawDepth++;

if (!base.getRead().getProperPairFlag()){
if (base.getRead().getReadPairedFlag() && (base.getRead().getMateUnmappedFlag() || !base.getRead().getProperPairFlag())){
improperPairsCount++;
continue;
}
Expand Down

0 comments on commit 0b11ee4

Please sign in to comment.