common-workflow-lab / wdl-cwl-translator

A translator from WDL to CWL v1.2
Apache License 2.0
26 stars 8 forks source link

WDL Expressions in workflow input definitions #240

Open mr-c opened 5 months ago

mr-c commented 5 months ago

Example: https://github.com/common-workflow-lab/wdl-cwl-translator/blob/1fff15bd7b4e7f0bff540b01276881c1b00d1f39/wdl2cwl/tests/wdl_files/blast.wdl#L12

  1. Synthesize a new step to compute a static value for each dynamic input, something like _calc_{inputname}: _calc_Outfile with a single output named result
  2. Rewrite all references to the original dynamic input to this static value: basically connecting _calc_OutFile/result instead of Outfile in all of the WorkflowStep.in sections