Mercurial > repos > guerler > springsuite
view planemo/lib/python3.7/site-packages/cwltool/tests/wf/expect_packed.cwl @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:18:57 -0400 |
parents | |
children |
line wrap: on
line source
#!/usr/bin/env cwl-runner { "$graph": [ { "class": "Workflow", "doc": "Reverse the lines in a document, then sort those lines.", "hints": [ { "class": "DockerRequirement", "dockerPull": "debian:8" } ], "inputs": [ { "type": "boolean", "default": true, "doc": "If true, reverse (decending) sort", "id": "#main/reverse_sort" }, { "type": "File", "doc": "The input file to be processed.", "format": "https://www.iana.org/assignments/media-types/text/plain", "default": { "class": "File", "location": "hello.txt" }, "id": "#main/workflow_input" } ], "outputs": [ { "type": "File", "outputSource": "#main/sorted/sorted_output", "doc": "The output with the lines reversed and sorted.", "id": "#main/sorted_output" } ], "steps": [ { "in": [ { "source": "#main/workflow_input", "id": "#main/rev/revtool_input" } ], "out": [ "#main/rev/revtool_output" ], "run": "#revtool.cwl", "id": "#main/rev" }, { "in": [ { "source": "#main/reverse_sort", "id": "#main/sorted/reverse" }, { "source": "#main/rev/revtool_output", "id": "#main/sorted/sorted_input" } ], "out": [ "#main/sorted/sorted_output" ], "run": "#sorttool.cwl", "id": "#main/sorted" } ], "id": "#main", "$namespaces": { "iana": "https://www.iana.org/assignments/media-types/" } }, { "class": "CommandLineTool", "doc": "Reverse each line using the `rev` command", "inputs": [ { "type": "File", "inputBinding": {}, "id": "#revtool.cwl/revtool_input" } ], "outputs": [ { "type": "File", "outputBinding": { "glob": "output.txt" }, "id": "#revtool.cwl/revtool_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/sorted_input", "type": "File", "inputBinding": { "position": 2 } } ], "outputs": [ { "id": "#sorttool.cwl/sorted_output", "type": "File", "outputBinding": { "glob": "output.txt" } } ], "baseCommand": "sort", "stdout": "output.txt", "id": "#sorttool.cwl" } ], "cwlVersion": "v1.0", "$schemas": [ "empty.ttl", "empty2.ttl" ] }