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:
parent
9d8c963fcc
commit
bafdd4f8f7
|
|
@ -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
|
// 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));
|
ratio += genotype.getValue().getNegLog10PError() * ((double)refCount / (double)(refCount + altCount));
|
||||||
totalWeights += genotype.getValue().getNegLog10PError();
|
totalWeights += genotype.getValue().getNegLog10PError();
|
||||||
} else if ( vc.isIndel() ) {
|
} else if ( vc.isIndel() && context.hasExtendedEventPileup() ) {
|
||||||
final ReadBackedExtendedEventPileup indelPileup = context.getExtendedEventPileup();
|
final ReadBackedExtendedEventPileup indelPileup = context.getExtendedEventPileup();
|
||||||
if ( indelPileup == null ) {
|
if ( indelPileup == null ) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue