One quick fix to previous commit
This commit is contained in:
parent
b3313e1445
commit
4dc9dbe890
|
|
@ -240,10 +240,14 @@ public class VariantAnnotator extends RodWalker<Integer, Integer> implements Ann
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( targetHeaderLine != null )
|
if ( targetHeaderLine != null ) {
|
||||||
hInfo.add(new VCFInfoHeaderLine(expression.fullName, targetHeaderLine.getCountType(), targetHeaderLine.getType(), targetHeaderLine.getDescription()));
|
if ( targetHeaderLine.getCountType() == VCFHeaderLineCount.INTEGER )
|
||||||
else
|
hInfo.add(new VCFInfoHeaderLine(expression.fullName, targetHeaderLine.getCount(), targetHeaderLine.getType(), targetHeaderLine.getDescription()));
|
||||||
|
else
|
||||||
|
hInfo.add(new VCFInfoHeaderLine(expression.fullName, targetHeaderLine.getCountType(), targetHeaderLine.getType(), targetHeaderLine.getDescription()));
|
||||||
|
} else {
|
||||||
hInfo.add(new VCFInfoHeaderLine(expression.fullName, VCFHeaderLineCount.UNBOUNDED, VCFHeaderLineType.String, "Value transferred from another external VCF resource"));
|
hInfo.add(new VCFInfoHeaderLine(expression.fullName, VCFHeaderLineCount.UNBOUNDED, VCFHeaderLineType.String, "Value transferred from another external VCF resource"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
engine.invokeAnnotationInitializationMethods(hInfo);
|
engine.invokeAnnotationInitializationMethods(hInfo);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue