Incorporating scripts into a workflow
I have a WDL that will currently run well on an HPC and locally. In order for other collaborators to use it we are trying to make it available for use on Terra via FireCloud.
Several of the tasks require use of perl scripts, or R scripts which I have available on github.
What is the best way to include these in the workflow, since there doesn't seem to be a way to upload them along side the workflow? Can I link directly to the script when calling the task using the github URL or is there some other method that I'm not seeing?
Thanks in advance!
Comments
1 comment
Hi Hannah,
Thanks for writing in! When Terra runs a WDL, it spins up a runtime - or Docker Container - to do the actual compute outlined in the Command block. For your use case, you'll need to localize the files containing your scripts into the Docker container used by the WDL's runtime.
There are several ways to do this:
My suggestion would be to use a file input in the WDL, but I wanted to list out all the options here. If you'd like to learn more about how to do this, here is a link to our documentation: Wrapping R Scripts in WDL.
Please let me know if this information was helpful or if you have any questions.
Best,
Josh
Please sign in to leave a comment.