Add VCF header for any expressions that are requested
This commit is contained in:
parent
8b1a62da27
commit
649dfe98f0
|
|
@ -232,6 +232,8 @@ public class VariantAnnotator extends RodWalker<Integer, Integer> implements Ann
|
|||
if ( isUniqueHeaderLine(line, hInfo) )
|
||||
hInfo.add(line);
|
||||
}
|
||||
for ( String expression : expressionsToUse )
|
||||
hInfo.add(new VCFInfoHeaderLine(expression, VCFHeaderLineCount.UNBOUNDED, VCFHeaderLineType.String, "Value transferred from another external VCF resource"));
|
||||
|
||||
engine.invokeAnnotationInitializationMethods(hInfo);
|
||||
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ public class VariantAnnotatorIntegrationTest extends WalkerTest {
|
|||
public void testUsingExpression() {
|
||||
WalkerTestSpec spec = new WalkerTestSpec(
|
||||
baseTestString() + " --resource:foo " + validationDataLocation + "targetAnnotations.vcf -G Standard --variant:VCF3 " + validationDataLocation + "vcfexample3empty.vcf -E foo.AF -L " + validationDataLocation + "vcfexample3empty.vcf", 1,
|
||||
Arrays.asList("e9c0d832dc6b4ed06c955060f830c140"));
|
||||
Arrays.asList("ae30a1ac7bfbc3d22a327f8b689cad31"));
|
||||
executeTest("using expression", spec);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue