Skip to content

Commit 17268d1

Browse files
psafontmr-c
authored andcommitted
change labels in revtool wf (#972)
Makes for better debugging experience
1 parent d6000d3 commit 17268d1

File tree

6 files changed

+44
-44
lines changed

6 files changed

+44
-44
lines changed

tests/test_provenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def check_output_object(base_path):
176176
compare_location = "../data/b9/b9214658cc453331b62c2282b772a5c063dbd284"
177177
with open(output_obj) as fp:
178178
out_json = json.load(fp)
179-
f1 = out_json["output"]
179+
f1 = out_json["sorted_output"]
180180
assert f1["checksum"] == compare_checksum
181181
assert f1["location"] == compare_location
182182

tests/wf/expect_packed.cwl

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
}
1111
],
1212
"inputs": [
13+
{
14+
"type": "boolean",
15+
"default": true,
16+
"doc": "If true, reverse (decending) sort",
17+
"id": "#main/reverse_sort"
18+
},
1319
{
1420
"type": "File",
1521
"doc": "The input file to be processed.",
@@ -18,50 +24,44 @@
1824
"class": "File",
1925
"location": "hello.txt"
2026
},
21-
"id": "#main/input"
22-
},
23-
{
24-
"type": "boolean",
25-
"default": true,
26-
"doc": "If true, reverse (decending) sort",
27-
"id": "#main/reverse_sort"
27+
"id": "#main/workflow_input"
2828
}
2929
],
3030
"outputs": [
3131
{
3232
"type": "File",
33-
"outputSource": "#main/sorted/output",
33+
"outputSource": "#main/sorted/sorted_output",
3434
"doc": "The output with the lines reversed and sorted.",
35-
"id": "#main/output"
35+
"id": "#main/sorted_output"
3636
}
3737
],
3838
"steps": [
3939
{
4040
"in": [
4141
{
42-
"source": "#main/input",
43-
"id": "#main/rev/input"
42+
"source": "#main/workflow_input",
43+
"id": "#main/rev/revtool_input"
4444
}
4545
],
4646
"out": [
47-
"#main/rev/output"
47+
"#main/rev/revtool_output"
4848
],
4949
"run": "#revtool.cwl",
5050
"id": "#main/rev"
5151
},
5252
{
5353
"in": [
54-
{
55-
"source": "#main/rev/output",
56-
"id": "#main/sorted/input"
57-
},
5854
{
5955
"source": "#main/reverse_sort",
6056
"id": "#main/sorted/reverse"
57+
},
58+
{
59+
"source": "#main/rev/revtool_output",
60+
"id": "#main/sorted/sorted_input"
6161
}
6262
],
6363
"out": [
64-
"#main/sorted/output"
64+
"#main/sorted/sorted_output"
6565
],
6666
"run": "#sorttool.cwl",
6767
"id": "#main/sorted"
@@ -79,7 +79,7 @@
7979
{
8080
"type": "File",
8181
"inputBinding": {},
82-
"id": "#revtool.cwl/input"
82+
"id": "#revtool.cwl/revtool_input"
8383
}
8484
],
8585
"outputs": [
@@ -88,7 +88,7 @@
8888
"outputBinding": {
8989
"glob": "output.txt"
9090
},
91-
"id": "#revtool.cwl/output"
91+
"id": "#revtool.cwl/revtool_output"
9292
}
9393
],
9494
"baseCommand": "rev",
@@ -108,7 +108,7 @@
108108
}
109109
},
110110
{
111-
"id": "#sorttool.cwl/input",
111+
"id": "#sorttool.cwl/sorted_input",
112112
"type": "File",
113113
"inputBinding": {
114114
"position": 2
@@ -117,7 +117,7 @@
117117
],
118118
"outputs": [
119119
{
120-
"id": "#sorttool.cwl/output",
120+
"id": "#sorttool.cwl/sorted_output",
121121
"type": "File",
122122
"outputBinding": {
123123
"glob": "output.txt"
@@ -131,7 +131,7 @@
131131
],
132132
"cwlVersion": "v1.0",
133133
"$schemas": [
134-
"file:///home/mcrusoe/cwltool/tests/wf/empty2.ttl",
135-
"file:///home/mcrusoe/cwltool/tests/wf/empty.ttl"
134+
"empty.ttl",
135+
"empty2.ttl"
136136
]
137137
}

tests/wf/revsort-job.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"input": {
2+
"workflow_input": {
33
"class": "File",
44
"location": "whale.txt",
55
"format": "https://www.iana.org/assignments/media-types/text/plain"

tests/wf/revsort.cwl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ hints:
2121
# field "reverse_sort" is not provided in the input object, the default value will
2222
# be used.
2323
inputs:
24-
input:
24+
workflow_input:
2525
type: File
2626
doc: "The input file to be processed."
2727
format: iana:text/plain
@@ -37,36 +37,36 @@ inputs:
3737
# the outputs of the workflow.
3838
#
3939
# Each output field must be connected to the output of one of the workflow
40-
# steps using the "connect" field. Here, the parameter "#output" of the
41-
# workflow comes from the "#sorted" output of the "sort" step.
40+
# steps using the "outputSource" field. Here, the parameter "sorted_output" of the
41+
# workflow comes from the "sorted_output" output of the "sorted" step.
4242
outputs:
43-
output:
43+
sorted_output:
4444
type: File
45-
outputSource: sorted/output
45+
outputSource: sorted/sorted_output
4646
doc: "The output with the lines reversed and sorted."
4747

4848
# The "steps" array lists the executable steps that make up the workflow.
4949
# The tool to execute each step is listed in the "run" field.
5050
#
51-
# In the first step, the "inputs" field of the step connects the upstream
52-
# parameter "#input" of the workflow to the input parameter of the tool
53-
# "revtool.cwl#input"
51+
# In the first step, the "in" field of the step connects the upstream
52+
# parameter "workflow_input" of the workflow to the input parameter of the tool
53+
# "revtool_input"
5454
#
55-
# In the second step, the "inputs" field of the step connects the output
56-
# parameter "#reversed" from the first step to the input parameter of the
57-
# tool "sorttool.cwl#input".
55+
# In the second step, the "in" field of the step connects the output
56+
# parameter "revtool_output" from the first step to the input parameter of the
57+
# tool "sorted_input".
5858
steps:
5959
rev:
6060
in:
61-
input: input
62-
out: [output]
61+
revtool_input: workflow_input
62+
out: [revtool_output]
6363
run: revtool.cwl
6464

6565
sorted:
6666
in:
67-
input: rev/output
67+
sorted_input: rev/revtool_output
6868
reverse: reverse_sort
69-
out: [output]
69+
out: [sorted_output]
7070
run: sorttool.cwl
7171

7272
$namespaces:

tests/wf/revtool.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $schemas:
1717
# which indicates that the file name should be added to the command line at
1818
# a default location.
1919
inputs:
20-
input:
20+
revtool_input:
2121
type: File
2222
inputBinding: {}
2323

@@ -27,7 +27,7 @@ inputs:
2727
# and after the program executes, the output value will be the file
2828
# output.txt in the designated output directory.
2929
outputs:
30-
output:
30+
revtool_output:
3131
type: File
3232
outputBinding:
3333
glob: output.txt

tests/wf/sorttool.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ inputs:
2121
inputBinding:
2222
position: 1
2323
prefix: "--reverse"
24-
- id: input
24+
- id: sorted_input
2525
type: File
2626
inputBinding:
2727
position: 2
2828

2929
outputs:
30-
- id: output
30+
- id: sorted_output
3131
type: File
3232
outputBinding:
3333
glob: output.txt

0 commit comments

Comments
 (0)