Ask for existance of extended pileup before grabbing it

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5874 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2011-05-25 17:39:03 +00:00
parent 9d8c963fcc
commit bafdd4f8f7
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class AlleleBalance implements InfoFieldAnnotation {
// weight the allele balance by genotype quality so that e.g. mis-called homs don't affect the ratio too much
ratio += genotype.getValue().getNegLog10PError() * ((double)refCount / (double)(refCount + altCount));
totalWeights += genotype.getValue().getNegLog10PError();
} else if ( vc.isIndel() ) {
} else if ( vc.isIndel() && context.hasExtendedEventPileup() ) {
final ReadBackedExtendedEventPileup indelPileup = context.getExtendedEventPileup();
if ( indelPileup == null ) {
continue;