-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test executing compound document with absolute identifiers.
- Loading branch information
Peter Amstutz
committed
Jul 21, 2017
1 parent
13f35aa
commit c645e3b
Showing
2 changed files
with
136 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"cwlVersion": "v1.0", | ||
"$graph": [ | ||
{ | ||
"class": "Workflow", | ||
"doc": "Reverse the lines in a document, then sort those lines.", | ||
"hints": [ | ||
{ | ||
"class": "DockerRequirement", | ||
"dockerPull": "debian:8" | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"type": "File", | ||
"doc": "The input file to be processed.", | ||
"id": "#main/input" | ||
}, | ||
{ | ||
"type": "boolean", | ||
"default": true, | ||
"doc": "If true, reverse (decending) sort", | ||
"id": "#main/reverse_sort" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "File", | ||
"outputSource": "#main/sorted/output", | ||
"doc": "The output with the lines reversed and sorted.", | ||
"id": "#main/output" | ||
} | ||
], | ||
"steps": [ | ||
{ | ||
"in": [ | ||
{ | ||
"source": "#main/input", | ||
"id": "#main/rev/input" | ||
} | ||
], | ||
"out": [ | ||
"#main/rev/output" | ||
], | ||
"run": "#revtool.cwl", | ||
"id": "#main/rev" | ||
}, | ||
{ | ||
"in": [ | ||
{ | ||
"source": "#main/rev/output", | ||
"id": "#main/sorted/input" | ||
}, | ||
{ | ||
"source": "#main/reverse_sort", | ||
"id": "#main/sorted/reverse" | ||
} | ||
], | ||
"out": [ | ||
"#main/sorted/output" | ||
], | ||
"run": "#sorttool.cwl", | ||
"id": "#main/sorted" | ||
} | ||
], | ||
"id": "#main" | ||
}, | ||
{ | ||
"class": "CommandLineTool", | ||
"doc": "Reverse each line using the `rev` command", | ||
"inputs": [ | ||
{ | ||
"type": "File", | ||
"inputBinding": {}, | ||
"id": "#revtool.cwl/input" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "File", | ||
"outputBinding": { | ||
"glob": "output.txt" | ||
}, | ||
"id": "#revtool.cwl/output" | ||
} | ||
], | ||
"baseCommand": "rev", | ||
"stdout": "output.txt", | ||
"id": "#revtool.cwl" | ||
}, | ||
{ | ||
"class": "CommandLineTool", | ||
"doc": "Sort lines using the `sort` command", | ||
"inputs": [ | ||
{ | ||
"id": "#sorttool.cwl/reverse", | ||
"type": "boolean", | ||
"inputBinding": { | ||
"position": 1, | ||
"prefix": "--reverse" | ||
} | ||
}, | ||
{ | ||
"id": "#sorttool.cwl/input", | ||
"type": "File", | ||
"inputBinding": { | ||
"position": 2 | ||
} | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"id": "#sorttool.cwl/output", | ||
"type": "File", | ||
"outputBinding": { | ||
"glob": "output.txt" | ||
} | ||
} | ||
], | ||
"baseCommand": "sort", | ||
"stdout": "output.txt", | ||
"id": "#sorttool.cwl" | ||
} | ||
] | ||
} |