Replies: 4 comments 3 replies
-
The syntax you have isn't quite correct but I think the idea should work. Something like
In my experience a more typical approach is to create a custom container that contains your script as well as the commands that you need to run in your command block. In the case where you need to run |
Beta Was this translation helpful? Give feedback.
-
My experience is admittedly fairly limited so far, but if you have some basic scripts which exist entirely for gluing together parts of the workflow it seems much preferable to include them with the other workflow files instead of having to create new workflow-specific containers that are just a common tool plus your one script added. |
Beta Was this translation helpful? Give feedback.
-
Interesting Idea. For me, one of the great aspects (potentially also easily abused) of WDL is that it allows for arbitrarily complex scripts to run in the command block. Because of this, I don't really view there being a "main" tool, but a unit of work which COULD be a single command line call, or it could be a whole script. whatever you ultimately need to do in order to extract the output you need. |
Beta Was this translation helpful? Give feedback.
-
Supporting scripts as a separate file would also make testing them locally during development a lot easier. |
Beta Was this translation helpful? Give feedback.
-
I have several tasks where the output from the core tool I'm using needs a little post-processing to pull out the values I need for the task's output. The way I'm handling this is in a little Python code in a heredoc in the task's command, like so:
This seems to be a common thing, and the Python section can definitely get kind of long. It would be nicer if I could write this code in a separate Python file included with my other
.wdl
files, and then run it like:Beta Was this translation helpful? Give feedback.
All reactions