Skip to content

Commit 899d135

Browse files
author
Peter Amstutz
committed
Update conformance tests to use draft-4 syntax improvements.
1 parent 2c14f2f commit 899d135

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+389
-387
lines changed

draft-4/Workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ $graph:
441441
type:
442442
- type: array
443443
items: "#WorkflowStep"
444-
444+
jsonldPredicate:
445+
mapSubject: id
445446

446447

447448
- type: record

draft-4/draft-4/binding-test.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ class: CommandLineTool
44
cwlVersion: cwl:draft-4.dev1
55

66
inputs:
7-
- id: reference
7+
reference:
88
type: File
99
inputBinding: { position: 2 }
1010

11-
- id: reads
11+
reads:
1212
type:
1313
type: array
1414
items: File

draft-4/draft-4/bwa-mem-tool.cwl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,37 @@ cwlVersion: cwl:draft-4.dev1
55
class: CommandLineTool
66

77
hints:
8-
- class: DockerRequirement
8+
DockerRequirement:
99
dockerPull: images.sbgenomics.com/rabix/bwa
1010
dockerImageId: 9d3b9b0359cf
1111

12-
- class: ResourceRequirement
12+
ResourceRequirement:
1313
coresMin: 4
1414

1515
inputs:
16-
- id: reference
16+
reference:
1717
type: File
1818
inputBinding: { position: 2 }
1919

20-
- id: reads
20+
reads:
2121
type:
2222
type: array
2323
items: File
2424
inputBinding: { position: 3 }
2525

26-
- id: minimum_seed_length
26+
minimum_seed_length:
2727
type: int
2828
inputBinding: { position: 1, prefix: -m }
2929

30-
- id: min_std_max_min
30+
min_std_max_min:
3131
type: { type: array, items: int }
3232
inputBinding:
3333
position: 1
3434
prefix: -I
3535
itemSeparator: ","
3636

3737
outputs:
38-
- id: sam
38+
sam:
3939
type: File
4040
outputBinding: { glob: output.sam }
4141

draft-4/draft-4/cat1-tool.cwl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ cwlVersion: cwl:draft-4.dev1
33
class: CommandLineTool
44
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
55
hints:
6-
- class: DockerRequirement
6+
DockerRequirement:
77
dockerPull: debian:wheezy
88
inputs:
9-
- id: file1
9+
file1:
1010
type: File
1111
inputBinding: {position: 1}
12-
- id: numbering
12+
numbering:
1313
type: ["null", boolean]
1414
inputBinding:
1515
position: 0

draft-4/draft-4/cat2-tool.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ class: CommandLineTool
33
cwlVersion: cwl:draft-4.dev1
44
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
55
hints:
6-
- class: DockerRequirement
6+
DockerRequirement:
77
dockerPull: debian:wheezy
88
inputs:
9-
- id: file1
9+
file1:
1010
type: File
1111
outputs: []
1212
baseCommand: cat

draft-4/draft-4/cat3-tool.cwl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ class: CommandLineTool
33
cwlVersion: cwl:draft-4.dev1
44
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
55
hints:
6-
- class: DockerRequirement
6+
DockerRequirement:
77
dockerPull: debian:wheezy
88
inputs:
9-
- id: file1
9+
file1:
1010
type: File
1111
label: Input File
1212
description: "The file that will be copied using 'cat'"
1313
inputBinding: {position: 1}
1414
outputs:
15-
- id: output_file
15+
output_file:
1616
type: File
1717
outputBinding: {glob: output.txt}
1818
baseCommand: cat

draft-4/draft-4/cat4-tool.cwl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ class: CommandLineTool
33
cwlVersion: cwl:draft-4.dev1
44
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
55
hints:
6-
- class: DockerRequirement
6+
DockerRequirement:
77
dockerPull: debian:wheezy
88
inputs:
9-
- id: file1
9+
file1:
1010
type: File
1111
outputs:
12-
- id: output_txt
12+
output_txt:
1313
type: File
1414
outputBinding:
1515
glob: output.txt

draft-4/draft-4/cat5-tool.cwl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ cwlVersion: cwl:draft-4.dev1
33
class: CommandLineTool
44
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
55
hints:
6-
- class: DockerRequirement
6+
DockerRequirement:
77
dockerPull: "debian:wheezy"
8-
- class: BlibberBlubberFakeRequirement
8+
BlibberBlubberFakeRequirement:
99
fakeField: fraggleFroogle
1010
inputs:
11-
- id: file1
11+
file1:
1212
type: File
1313
label: "Input File"
1414
description: "The file that will be copied using 'cat'"
1515
inputBinding: {position: 1}
1616
outputs:
17-
- id: output_file
17+
output_file:
1818
type: File
1919
outputBinding: {glob: output.txt}
2020
baseCommand: cat

draft-4/draft-4/conflict-wf.cwl

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
cwlVersion: cwl:draft-4.dev1
22
$graph:
3-
- class: CommandLineTool
4-
id: echo
3+
- id: echo
4+
class: CommandLineTool
55
inputs:
6-
- id: text
6+
text:
77
type: string
88
inputBinding: {}
99

1010
outputs:
11-
- id: fileout
11+
fileout:
1212
type: File
1313
outputBinding:
1414
glob: out.txt
1515

1616
baseCommand: echo
1717
stdout: out.txt
1818

19-
- class: CommandLineTool
20-
id: cat
19+
- id: cat
20+
class: CommandLineTool
2121
inputs:
22-
- id: file1
22+
file1:
2323
type: File
2424
inputBinding:
2525
position: 1
26-
- id: file2
26+
file2:
2727
type: File
2828
inputBinding:
2929
position: 2
3030

3131
outputs:
32-
- id: fileout
32+
fileout:
3333
type: File
3434
outputBinding:
3535
glob: out.txt
@@ -41,40 +41,35 @@ $graph:
4141
id: collision
4242

4343
inputs:
44-
- id: input_1
44+
input_1:
4545
type: string
4646

47-
- id: input_2
47+
input_2:
4848
type: string
4949

5050
outputs:
51-
- id: fileout
51+
fileout:
5252
type: File
5353
source: "#collision/cat_step/fileout"
5454

5555
steps:
56-
- id: echo_1
56+
echo_1:
5757
run: "#echo"
58-
inputs:
59-
- id: text
60-
source: "#collision/input_1"
61-
outputs:
62-
- id: fileout
58+
in:
59+
text: "#collision/input_1"
60+
out: [fileout]
6361

64-
- id: echo_2
62+
echo_2:
6563
run: "#echo"
66-
inputs:
67-
- id: text
68-
source: "#collision/input_2"
69-
outputs:
70-
- id: fileout
64+
in:
65+
text: "#collision/input_2"
66+
out: [fileout]
7167

72-
- id: cat_step
68+
cat_step:
7369
run: "#cat"
74-
inputs:
75-
- id: file1
70+
in:
71+
file1:
7672
source: "#collision/echo_1/fileout"
77-
- id: file2
73+
file2:
7874
source: "#collision/echo_2/fileout"
79-
outputs:
80-
- id: fileout
75+
out: [fileout]

draft-4/draft-4/count-lines1-wf.cwl

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@ class: Workflow
33
cwlVersion: cwl:draft-4.dev1
44

55
inputs:
6-
- { id: file1, type: File }
6+
file1:
7+
type: File
78

89
outputs:
9-
- id: count_output
10+
count_output:
1011
type: int
1112
source: "#step2/output"
1213

1314
steps:
14-
- id: step1
15+
step1:
1516
run: wc-tool.cwl
16-
inputs:
17-
- {id: file1, source: "#file1"}
18-
outputs:
19-
- {id: output}
17+
in:
18+
file1: "#file1"
19+
out: [output]
2020

21-
- id: step2
21+
step2:
2222
run: parseInt-tool.cwl
23-
inputs:
24-
- {id: file1, source: "#step1/output"}
25-
outputs:
26-
- {id: output}
23+
in:
24+
file1: "#step1/output"
25+
out: [output]

draft-4/draft-4/count-lines2-wf.cwl

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,50 @@
22
class: Workflow
33
cwlVersion: cwl:draft-4.dev1
44
requirements:
5-
- class: InlineJavascriptRequirement
5+
InlineJavascriptRequirement: {}
66

77
inputs:
8-
- { id: file1, type: File }
8+
file1:
9+
type: File
910

1011
outputs:
11-
- { id: count_output, type: int, source: "#step2/parseInt_output"}
12+
count_output:
13+
type: int
14+
source: "#step2/parseInt_output"
1215

1316
steps:
14-
- id: step1
15-
inputs:
16-
- { id: wc_file1, source: "#file1" }
17-
outputs:
18-
- { id: wc_output }
17+
step1:
18+
in:
19+
wc_file1:
20+
source: "#file1"
21+
out: [wc_output]
1922
run:
2023
id: wc
2124
class: CommandLineTool
2225
inputs:
23-
- { id: wc_file1, type: File, inputBinding: {} }
26+
wc_file1:
27+
type: File
28+
inputBinding: {}
2429
outputs:
25-
- { id: wc_output, type: File, outputBinding: { glob: output.txt } }
30+
wc_output:
31+
type: File
32+
outputBinding:
33+
glob: output.txt
2634
stdout: output.txt
2735
baseCommand: wc
2836

29-
- id: step2
30-
inputs:
31-
- { id: parseInt_file1, source: "#step1/wc_output" }
32-
outputs:
33-
- { id: parseInt_output }
37+
step2:
38+
in:
39+
parseInt_file1: "#step1/wc_output"
40+
out: [parseInt_output]
3441
run:
3542
class: ExpressionTool
3643
inputs:
37-
- { id: parseInt_file1, type: File, inputBinding: { loadContents: true } }
44+
parseInt_file1:
45+
type: File
46+
inputBinding: { loadContents: true }
3847
outputs:
39-
- { id: parseInt_output, type: int }
48+
parseInt_output:
49+
type: int
4050
expression: >
4151
${return {'parseInt_output': parseInt(inputs.parseInt_file1.contents)};}

draft-4/draft-4/count-lines3-wf.cwl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@ class: Workflow
33
cwlVersion: cwl:draft-4.dev1
44

55
inputs:
6-
- id: file1
6+
file1:
77
type: { type: array, items: File }
88

99
outputs:
10-
- id: count_output
10+
count_output:
1111
type: { type: array, items: int }
1212
source: "#step1/output"
1313

1414
requirements:
15-
- class: ScatterFeatureRequirement
15+
ScatterFeatureRequirement: {}
1616

1717
steps:
18-
- id: step1
18+
step1:
1919
run: wc2-tool.cwl
2020
scatter: "#step1/file1"
21-
inputs:
22-
- id: file1
23-
source: "#file1"
24-
outputs:
25-
- id: output
21+
in:
22+
file1: "#file1"
23+
out: [output]

0 commit comments

Comments
 (0)