Entering edit mode
6.5 years ago
pete.hague
•
0
I've implemented a CommandLineTool that has exclusive parameters
inputs:
touchparam:
type:
- type: record
name: touchcode
fields:
touchcode:
type: string
inputBinding:
position: 1
- type: record
name: touchfile
fields:
touchfile:
type: File
inputBinding:
prefix: -f
but I can't quite get the syntax to bind the inputs from a workflow:
steps:
generate:
run: Generate.cwl
in: []
out: [rannum]
touch:
run: Touch.cwl
in:
touchparam:
touchfile: generate/rannum
out: [results]
This was just a guess based on how you bind them from a yml file. Any help?
Thanks for the answer
It looks like the workflow you've implemented there takes the exclusive parameter as an input to itself, which is not what I am intending.
The second step is the one with the exclusive parameter, although it always takes the same one from the previous step. The full workflow and tool files are here:
https://github.com/petehague/Stoa/blob/master/actions/workflow1.cwl https://github.com/petehague/Stoa/blob/master/actions/Generate.cwl https://github.com/petehague/Stoa/blob/master/actions/Touch.cwl
For this test case, the workflow itself should not take any inputs.
Please use
ADD COMMENT/ADD REPLY
when responding to existing posts to keep threads logically organized.This comment belongs under the answer below.