Bug fix: check to see whether there's a BasePileup before asking for one.
This commit is contained in:
parent
07c3bd32b3
commit
58245bfa2f
|
|
@ -31,8 +31,10 @@ public class LowMQ extends InfoFieldAnnotation {
|
||||||
double total = 0;
|
double total = 0;
|
||||||
for ( Map.Entry<String, AlignmentContext> sample : stratifiedContexts.entrySet() )
|
for ( Map.Entry<String, AlignmentContext> sample : stratifiedContexts.entrySet() )
|
||||||
{
|
{
|
||||||
ReadBackedPileup pileup = sample.getValue().getBasePileup();
|
if ( !sample.getValue().hasBasePileup() )
|
||||||
for (PileupElement p : pileup )
|
continue;
|
||||||
|
|
||||||
|
for ( PileupElement p : sample.getValue().getBasePileup() )
|
||||||
{
|
{
|
||||||
if ( p.getMappingQual() == 0 ) { mq0 += 1; }
|
if ( p.getMappingQual() == 0 ) { mq0 += 1; }
|
||||||
if ( p.getMappingQual() <= 10 ) { mq10 += 1; }
|
if ( p.getMappingQual() <= 10 ) { mq10 += 1; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue