Skip to content

Commit 3d1fa17

Browse files
author
Peter Amstutz
committed
Merge commit '31dbd19007690724cfe3e88a64201afca724c681' into inline-expressions
2 parents 495e0e6 + 31dbd19 commit 3d1fa17

File tree

66 files changed

+2206
-329
lines changed

Some content is hidden

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

66 files changed

+2206
-329
lines changed

cwltool/schemas/draft-2/draft-2/add-lines-wf.cwl

Lines changed: 0 additions & 34 deletions
This file was deleted.

cwltool/schemas/draft-3/draft-3/add-lines-wf.cwl

Lines changed: 0 additions & 1 deletion
This file was deleted.

cwltool/schemas/draft-3/draft-3/binding-test.cwl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env cwl-runner
2+
3+
class: CommandLineTool
4+
cwlVersion: "cwl:draft-3.dev2"
5+
6+
inputs:
7+
- id: reference
8+
type: File
9+
inputBinding: { position: 2 }
10+
11+
- id: reads
12+
type:
13+
type: array
14+
items: File
15+
inputBinding: { prefix: "-YYY" }
16+
inputBinding: { position: 3, prefix: "-XXX" }
17+
18+
outputs: []
19+
20+
baseCommand: [bwa, mem]

cwltool/schemas/draft-3/draft-3/bwa-mem-job.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"reference": {
3+
"class": "File",
4+
"path": "rabix/tests/test-files/chr20.fa",
5+
"size": 123,
6+
"checksum": "sha1$hash"
7+
},
8+
"reads": [
9+
{
10+
"class": "File",
11+
"path": "rabix/tests/test-files/example_human_Illumina.pe_1.fastq"
12+
},
13+
{
14+
"class": "File",
15+
"path": "rabix/tests/test-files/example_human_Illumina.pe_2.fastq"
16+
}
17+
],
18+
"min_std_max_min": [
19+
1,
20+
2,
21+
3,
22+
4
23+
],
24+
"minimum_seed_length": 3,
25+
"allocatedResources": {
26+
"cpu": 4,
27+
"mem": 5000
28+
}
29+
}
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,46 @@
11
#!/usr/bin/env cwl-runner
22

3-
cwlVersion: "cwl:draft-3.dev1"
3+
cwlVersion: "cwl:draft-3.dev2"
44

55
class: CommandLineTool
6-
requirements:
7-
- "@import": node-engine.cwl
86

97
hints:
108
- class: DockerRequirement
119
dockerPull: images.sbgenomics.com/rabix/bwa
1210
dockerImageId: 9d3b9b0359cf
1311

1412
inputs:
15-
- id: "#reference"
13+
- id: reference
1614
type: File
1715
inputBinding: { position: 2 }
1816

19-
- id: "#reads"
17+
- id: reads
2018
type:
2119
type: array
2220
items: File
2321
inputBinding: { position: 3 }
2422

25-
- id: "#minimum_seed_length"
23+
- id: minimum_seed_length
2624
type: int
27-
inputBinding: { position: 1, prefix: "-m" }
25+
inputBinding: { position: 1, prefix: -m }
2826

29-
- id: "#min_std_max_min"
27+
- id: min_std_max_min
3028
type: { type: array, items: int }
3129
inputBinding:
3230
position: 1
33-
prefix: "-I"
31+
prefix: -I
3432
itemSeparator: ","
3533

3634
outputs:
37-
- id: "#sam"
38-
type: "File"
39-
outputBinding: { "glob": "output.sam" }
35+
- id: sam
36+
type: File
37+
outputBinding: { glob: output.sam }
4038

41-
baseCommand: ["bwa", "mem"]
39+
baseCommand: [bwa, mem]
4240

4341
arguments:
44-
- valueFrom:
45-
engine: "node-engine.cwl"
46-
script: "$job.allocatedResources.cpu"
42+
- valueFrom: $(inputs.allocatedResources.cores)
4743
position: 1
48-
prefix: "-t"
44+
prefix: -t
4945

50-
stdout: "output.sam"
46+
stdout: output.sam

cwltool/schemas/draft-3/draft-3/cat-job.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"file1": {
3+
"class": "File",
4+
"path": "hello.txt"
5+
}
6+
}

cwltool/schemas/draft-3/draft-3/cat-n-job.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"file1": {
3+
"class": "File",
4+
"path": "hello.txt"
5+
},
6+
"numbering": true
7+
}

cwltool/schemas/draft-3/draft-3/cat1-tool.cwl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: "cwl:draft-3.dev2"
3+
class: CommandLineTool
4+
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
5+
hints:
6+
- class: DockerRequirement
7+
dockerPull: debian:wheezy
8+
inputs: [
9+
- id: file1
10+
type: File
11+
inputBinding: {position: 1}
12+
- id: numbering
13+
type: ["null", boolean]
14+
inputBinding:
15+
position: 0
16+
prefix: -n
17+
outputs: []
18+
baseCommand: cat

cwltool/schemas/draft-3/draft-3/cat2-tool.cwl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: "cwl:draft-3.dev2"
4+
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
5+
hints:
6+
- class: DockerRequirement
7+
dockerPull: debian:wheezy
8+
inputs:
9+
- id: file1
10+
type: File
11+
outputs: []
12+
baseCommand: cat
13+
stdin: $(inputs.file1.path)

cwltool/schemas/draft-3/draft-3/cat3-tool.cwl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: "cwl:draft-3.dev2"
4+
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
5+
hints:
6+
- class: DockerRequirement
7+
dockerPull: debian:wheezy
8+
inputs:
9+
- id: file1
10+
type: File
11+
label: Input File
12+
description: "The file that will be copied using 'cat'"
13+
inputBinding: {position: 1}
14+
outputs:
15+
- id: output_file
16+
type: File
17+
outputBinding: {glob: output.txt}
18+
baseCommand: cat
19+
stdout: output.txt

cwltool/schemas/draft-3/draft-3/cat4-tool.cwl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: "cwl:draft-3.dev2"
4+
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
5+
hints:
6+
- class: DockerRequirement
7+
dockerPull: debian:wheezy
8+
inputs:
9+
- id: file1
10+
type: File
11+
outputs:
12+
- id: output_txt
13+
type: File
14+
outputBinding:
15+
glob: output.txt
16+
baseCommand: cat
17+
stdout: output.txt
18+
stdin: $(inputs.file1.path)

cwltool/schemas/draft-3/draft-3/cat5-tool.cwl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: "cwl:draft-3.dev2"
3+
class: CommandLineTool
4+
description: "Print the contents of a file to stdout using 'cat' running in a docker container."
5+
hints:
6+
- class: DockerRequirement
7+
dockerPull: "debian:wheezy"
8+
- class: BlibberBlubberFakeRequirement
9+
fakeField: fraggleFroogle
10+
inputs:
11+
- id: file1
12+
type: File
13+
label: "Input File"
14+
description: "The file that will be copied using 'cat'"
15+
inputBinding: {position: 1}
16+
outputs:
17+
- id: output_file
18+
type: File
19+
outputBinding: {glob: output.txt}
20+
baseCommand: cat
21+
stdout: output.txt
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
#!/usr/bin/env cwl-runner
22
class: Workflow
3-
cwlVersion: "cwl:draft-3.dev1"
3+
cwlVersion: "cwl:draft-3.dev2"
44

55
inputs:
6-
- { id: "#file1", type: File }
6+
- { id: file1, type: File }
77

88
outputs:
9-
- id: "#count_output"
9+
- id: count_output
1010
type: int
11-
source: "#step2.output"
11+
source: "#step2/output"
1212

1313
steps:
14-
- id: "#step1"
14+
- id: step1
1515
run: {"@import": wc-tool.cwl}
1616
inputs:
17-
- {id: "#step1.file1", source: "#file1"}
17+
- {id: file1, source: "#file1"}
1818
outputs:
19-
- {id: "#step1.output"}
19+
- {id: output}
2020

21-
- id: "#step2"
21+
- id: step2
2222
run: {"@import": parseInt-tool.cwl}
2323
inputs:
24-
- {id: "#step2.file1", source: "#step1.output"}
24+
- {id: file1, source: "#step1/output"}
2525
outputs:
26-
- {id: "#step2.output"}
26+
- {id: output}
Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
#!/usr/bin/env cwl-runner
22
class: Workflow
3-
cwlVersion: "cwl:draft-3.dev1"
3+
cwlVersion: "cwl:draft-3.dev2"
44

55
inputs:
66
- { id: file1, type: File }
77

88
outputs:
99
- { id: count_output, type: int, source: "#step2/parseInt_output"}
1010

11-
requirements:
12-
- "@import": node-engine.cwl
13-
1411
steps:
1512
- id: step1
1613
inputs:
@@ -25,21 +22,13 @@ steps:
2522
outputs:
2623
- { id: wc_output, type: File, outputBinding: { glob: output.txt } }
2724
stdout: output.txt
28-
baseCommand: ["wc"]
25+
baseCommand: wc
2926

3027
- id: step2
3128
inputs:
32-
- { "id": parseInt_file1, source: "#step1/wc_output" }
29+
- { id: parseInt_file1, source: "#step1/wc_output" }
3330
outputs:
34-
- { "id": parseInt_output }
31+
- { id: parseInt_output }
3532
run:
36-
id: parseInt
3733
class: ExpressionTool
38-
inputs:
39-
- { id: parseInt_file1, type: File, inputBinding: { loadContents: true } }
40-
outputs:
41-
- { id: parseInt_output, type: int }
42-
expression:
43-
engine: node-engine.cwl
44-
script: >
45-
{return {'parseInt_output': parseInt($job.parseInt_file1.contents)};}
34+
expression: ${return {'parseInt_output': parseInt($job.parseInt_file1.contents)};}

cwltool/schemas/draft-3/draft-3/count-lines3-job.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"file1": [
3+
{
4+
"class": "File",
5+
"path": "whale.txt"
6+
},
7+
{
8+
"class": "File",
9+
"path": "hello.txt"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)