Skip to content

Commit 4cadc61

Browse files
author
Peter Amstutz
committed
Squashed 'cwltool/schemas/' changes from c4cfafb..f027dbb
f027dbb Permit idmaps for hints, envDef 899d135 Update conformance tests to use draft-4 syntax improvements. 2c14f2f Update conformance tests with draft-4 version number. e562b21 Merge branch 'draft-4' of github.com:common-workflow-language/common-workflow-language into draft-4 9b737de Changed name for initial working directory git-subtree-dir: cwltool/schemas git-subtree-split: f027dbb
1 parent b78d1ab commit 4cadc61

Some content is hidden

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

63 files changed

+455
-451
lines changed

draft-4/CommandLineTool.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ $graph:
244244
the File objects must include up to the first 64 KiB of file contents
245245
in the `contents` field.
246246
247-
- name: InitialWorkingDirectory
247+
- name: initialWorkDir
248248
type: record
249249
doc: |
250250
Setup a working directory based on a number of input files (and/or directories)
@@ -562,6 +562,9 @@ $graph:
562562
type: "array"
563563
items: "#EnvironmentDef"
564564
doc: The list of environment variables.
565+
jsonldPredicate:
566+
mapSubject: envName
567+
mapPredicate: envValue
565568

566569

567570
- type: record

draft-4/Process.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,6 @@ $graph:
520520
- "null"
521521
- type: array
522522
items: Any
523-
jsonldPredicate:
524-
_id: "cwl:hints"
525-
mapSubject: class
526523
doc: |
527524
Declares hints applying to either the runtime environment or the
528525
workflow engine that may be helpful in executing this process. It is
@@ -531,6 +528,7 @@ $graph:
531528
jsonldPredicate:
532529
_id: cwl:hints
533530
noLinkCheck: true
531+
mapSubject: class
534532
- name: label
535533
type:
536534
- "null"

draft-4/Workflow.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,13 @@ $graph:
324324
items: "Any"
325325
jsonldPredicate:
326326
_id: "cwl:hints"
327+
noLinkCheck: true
327328
mapSubject: class
328329
doc: |
329330
Declares hints applying to either the runtime environment or the
330331
workflow engine that may be helpful in executing this workflow step. It is
331332
not an error if an implementation cannot satisfy all hints, however
332333
the implementation may report a warning.
333-
jsonldPredicate:
334-
_id: cwl:hints
335-
noLinkCheck: true
336334
- name: label
337335
type:
338336
- "null"
@@ -441,7 +439,8 @@ $graph:
441439
type:
442440
- type: array
443441
items: "#WorkflowStep"
444-
442+
jsonldPredicate:
443+
mapSubject: id
445444

446445

447446
- type: record

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env cwl-runner
22

33
class: CommandLineTool
4-
cwlVersion: cwl:draft-3
4+
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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
#!/usr/bin/env cwl-runner
22

3-
cwlVersion: cwl:draft-3
3+
cwlVersion: cwl:draft-4.dev1
44

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env cwl-runner
2-
cwlVersion: cwl:draft-3
2+
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env cwl-runner
22
class: CommandLineTool
3-
cwlVersion: cwl:draft-3
3+
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/usr/bin/env cwl-runner
22
class: CommandLineTool
3-
cwlVersion: cwl:draft-3
3+
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env cwl-runner
22
class: CommandLineTool
3-
cwlVersion: cwl:draft-3
3+
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#!/usr/bin/env cwl-runner
2-
cwlVersion: cwl:draft-3
2+
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: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
cwlVersion: cwl:draft-3
1+
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: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
#!/usr/bin/env cwl-runner
22
class: Workflow
3-
cwlVersion: cwl:draft-3
3+
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]

0 commit comments

Comments
 (0)