I’m creating a pipeline and one of my tools (let’s call it Tool 2) accepts Directory
as an input, like so:
"inputs": [
{
"id": "analysis_inputs_id",
"type": "Directory",
"inputBinding": {
"position": 11,
"shellQuote": true
}
}
],
My preceding tool (Tool 1) performs some analysis and outputs several files into /tmp/
My question is how do I write the Tool 1’s CWL specification so that it outputs the directory /tmp/ into the input of Tool 2?
So far I’ve tried this for Tool 1:
"outputs": [
{
"id": "outdir",
"type": "Directory",
"outputBinding": {
"path": "/tmp"
}
}
]
and it fails like so:
Job error:
Error validating output record. the `outdir` field is not valid because
is not a dict
in {
"outdir": null
}
Is there a commonly used way to specify directory outputs in CWL? The documentation seems scant about it.