You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I frequently run pipelines on a cluster where using Docker is difficult and the canonical way to access a tool is via environment modules.
A useful thing for me to be able to do in this situation is run e.g. module load samtools/1.1.18 before running the samtools tool.
Is there a sensible way to incorporate this kind of requirement into the CWL tool declaration, or some other part of CWL? Conceptually this requirement probably needs to be specified (or at least able to be overridden) by the person running the workflow, who knows the details of their site.
NB In some cases I could load all modules before running the pipeline, but if I'm using tools which have conflicting version dependencies, or if I'm using a workflow engine which distributes parallel jobs to the cluster, I want to be able to load modules on a per-step basis.
As @mr-c and @ntijanic have mentioned already, this is exactly the kind of problem that requirement sections are intended to solve. Someone with experience using environment modules should propose a design.
Running the module loads ahead of time actually won't work because the specification requires that tools run in a clean environment for portability.
There is an interesting question of how to best to express a situation where a tool's dependencies can be satisfied more than one way (for example, a python package, distribution package, or docker image).
Also, I suspect we may want to add "override" requirements which have top down precedence instead of bottom up.
You can now add or override requirements in the job input document in the current cwltool. We forgot to document for the 1.0 release of the standard, but it will be in the next release.
Activity
mr-c commentedon Jul 5, 2015
I think an additional Requirement type would work here. The tricky bit is that module names are not standardized at all :-P
Thoughts @tetron @ntijanic @jmchilton ?
tetron commentedon Jul 6, 2015
As @mr-c and @ntijanic have mentioned already, this is exactly the kind of problem that requirement sections are intended to solve. Someone with experience using environment modules should propose a design.
Running the module loads ahead of time actually won't work because the specification requires that tools run in a clean environment for portability.
There is an interesting question of how to best to express a situation where a tool's dependencies can be satisfied more than one way (for example, a python package, distribution package, or docker image).
Also, I suspect we may want to add "override" requirements which have top down precedence instead of bottom up.
mr-c commentedon Jul 18, 2016
You can now add or override requirements in the job input document in the current
cwltool. We forgot to document for the 1.0 release of the standard, but it will be in the next release.mr-c commentedon Sep 7, 2016
Closing in favor of #210 / #304
Merge pull request #70 from psafont/win32
Squashed 'v1.1.0-dev1/salad/' changes from 98a5bea..27c20e8