Stupid me. Forgot to put this check in the last commit
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4959 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
56b87da8f9
commit
60f45a7c49
|
|
@ -66,6 +66,8 @@ public class QualByDepth implements InfoFieldAnnotation, StandardAnnotation {
|
||||||
public List<VCFInfoHeaderLine> getDescriptions() { return Arrays.asList(new VCFInfoHeaderLine(getKeyNames().get(0), 1, VCFHeaderLineType.Float, "Variant Confidence/Quality by Depth")); }
|
public List<VCFInfoHeaderLine> getDescriptions() { return Arrays.asList(new VCFInfoHeaderLine(getKeyNames().get(0), 1, VCFHeaderLineType.Float, "Variant Confidence/Quality by Depth")); }
|
||||||
|
|
||||||
private double getQual(double[] GLs) {
|
private double getQual(double[] GLs) {
|
||||||
|
if ( GLs == null )
|
||||||
|
return 0.0;
|
||||||
|
|
||||||
// normalize so that we don't have precision issues
|
// normalize so that we don't have precision issues
|
||||||
double[] adjustedLikelihoods = new double[GLs.length];
|
double[] adjustedLikelihoods = new double[GLs.length];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue