@@ -502,12 +502,14 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
502502 needToSubsetToInterval = false ;
503503 }
504504
505+ final List <String > liftFields = Arrays .asList ("LiftedContig" , "LiftedStart" , "LiftedStop" , "ReverseComplementedAlleles" );
506+
505507 if (useFuncotator )
506508 {
507- addToolFieldNames ("Funcotator" , "-ff" , options , multiAnnotated .getParentFile (), output );
509+ addToolFieldNames ("Funcotator" , "-ff" , options , multiAnnotated .getParentFile (), output , liftFields );
508510 }
509511
510- addToolFieldNames ("SnpSift" , "-ssf" , options , multiAnnotated .getParentFile (), output );
512+ addToolFieldNames ("SnpSift" , "-ssf" , options , multiAnnotated .getParentFile (), output , liftFields );
511513
512514 maRunner .execute (inputVCF , cassandraAnnotatedBackport , liftoverRejects , funcotatorAnnotatedBackport , snpSiftAnnotatedBackport , multiAnnotated , options );
513515 }
@@ -526,13 +528,17 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
526528 return output ;
527529 }
528530
529- private void addToolFieldNames (String toolName , String argName , List <String > options , File outDir , VariantProcessingStepOutputImpl output ) throws PipelineJobException
531+ private void addToolFieldNames (String toolName , String argName , List <String > options , File outDir , VariantProcessingStepOutputImpl output , @ Nullable List < String > extraFields ) throws PipelineJobException
530532 {
531533 List <String > fields = getCachedFields (TARGET_FIELDS , toolName );
532534 File fieldFile = new File (outDir , toolName + "Fields.args" );
533535 try (PrintWriter writer = PrintWriters .getPrintWriter (fieldFile ))
534536 {
535537 fields .forEach (writer ::println );
538+ if (extraFields != null )
539+ {
540+ extraFields .forEach (writer ::println );
541+ }
536542 }
537543 catch (IOException e )
538544 {
0 commit comments