File tree Expand file tree Collapse file tree 15 files changed +72
-88
lines changed Expand file tree Collapse file tree 15 files changed +72
-88
lines changed Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : echo
4
4
inputs :
5
- - id : message
5
+ message:
6
6
type : string
7
7
inputBinding :
8
8
position : 1
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: Workflow
3
3
inputs :
4
- - id : inp
5
- type : File
6
- - id : ex
7
- type : string
4
+ inp: File
5
+ ex: string
8
6
9
7
outputs :
10
- - id : classout
8
+ classout:
11
9
type : File
12
- source : "#compile/classfile"
10
+ outputSource : "#compile/classfile"
13
11
14
12
steps :
15
- - id : untar
13
+ untar:
16
14
run : tar-param.cwl
17
15
inputs :
18
- - id : tarfile
19
- source : "#inp"
20
- - id : extractfile
21
- source : "#ex"
22
- outputs :
23
- - id : example_out
16
+ tarfile: inp
17
+ extractfile: ex
18
+ outputs : [example_out]
24
19
25
- - id : compile
20
+ compile:
26
21
run : arguments.cwl
27
22
inputs :
28
- - id : src
29
- source : "#untar/example_out"
30
- outputs :
31
- - id : classfile
23
+ src: untar/example_out
24
+ outputs : [classfile]
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
label : Example trivial wrapper for Java 7 compiler
4
4
baseCommand : javac
5
5
hints :
6
- - class: DockerRequirement
6
+ DockerRequirement:
7
7
dockerPull: java:7
8
8
baseCommand : javac
9
- arguments :
10
- - prefix : "-d"
11
- valueFrom : $(runtime.outdir)
9
+ arguments : ["-d" , $(runtime.outdir)]
12
10
inputs :
13
- - id : src
11
+ src:
14
12
type : File
15
13
inputBinding :
16
14
position : 1
17
15
outputs :
18
- - id : classfile
16
+ classfile:
19
17
type : File
20
18
outputBinding :
21
19
glob : "*. class"
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
inputs :
4
- - id : filesA
4
+ filesA:
5
5
type :
6
6
type : array
7
7
items : string
8
8
inputBinding :
9
9
prefix : -A
10
10
position : 1
11
11
12
- - id : filesB
12
+ filesB:
13
13
type :
14
14
type : array
15
15
items : string
@@ -19,7 +19,7 @@ inputs:
19
19
inputBinding :
20
20
position : 2
21
21
22
- - id : filesC
22
+ filesC:
23
23
type :
24
24
type : array
25
25
items : string
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : touch
4
4
inputs :
5
- - id : touchfiles
5
+ touchfiles:
6
6
type :
7
7
type : array
8
8
items : string
9
9
inputBinding :
10
10
position : 1
11
11
outputs :
12
- - id : output
12
+ output:
13
13
type :
14
14
type : array
15
15
items : File
Original file line number Diff line number Diff line change 1
1
class: CommandLineTool
2
- cwlVersion: cwl:draft-3
2
+ cwlVersion: v1.0
3
3
baseCommand : ["cat" , "example. conf" ]
4
4
5
5
requirements :
6
- - class: CreateFileRequirement
7
- fileDef:
8
- - filename: example.conf
9
- fileContent: |
10
- CONFIGVAR=$(inputs.message)
6
+ InitialWorkDirRequirirement:
7
+ listing :
8
+ example.conf: |
9
+ CONFIGVAR=$(inputs.message)
11
10
12
11
inputs :
13
- - id : message
14
- type : string
12
+ message: string
15
13
outputs : []
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : node
4
4
hints :
5
- - class: DockerRequirement
5
+ DockerRequirement:
6
6
dockerPull: node:slim
7
7
inputs :
8
- - id : src
8
+ src:
9
9
type : File
10
10
inputBinding :
11
11
position : 1
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : env
4
4
requirements :
5
- - class: EnvVarRequirement
5
+ EnvVarRequirement:
6
6
envDef :
7
- - envName : HELLO
8
- envValue : $(inputs.message)
7
+ HELLO: $(inputs.message)
9
8
inputs :
10
- - id : message
11
- type : string
9
+ message: string
12
10
outputs : []
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : echo
4
4
@@ -8,16 +8,16 @@ requirements:
8
8
inputs : []
9
9
outputs : []
10
10
arguments :
11
- - valueFrom : $(1+1)
12
- prefix : -A
13
- - valueFrom : $("/foo/bar/baz" .split('/' ).slice(-1)[0])
14
- prefix : -B
15
- - valueFrom : |
11
+ - prefix : -A
12
+ valueFrom : $(1+1)
13
+ - prefix : -B
14
+ valueFrom : $("/foo/bar/baz" .split('/' ).slice(-1)[0])
15
+ - prefix : -C
16
+ valueFrom : |
16
17
${
17
18
var r = [];
18
19
for (var i = 10; i >= 1; i--) {
19
20
r.push(i);
20
21
}
21
22
return r;
22
23
}
23
- prefix : -C
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : echo
4
4
inputs :
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
hints :
4
- - class: DockerRequirement
4
+ DockerRequirement:
5
5
dockerPull: java:7
6
6
baseCommand : javac
7
7
8
8
requirements :
9
9
- class: InlineJavascriptRequirement
10
- - class: CreateFileRequirement
11
- fileDef:
12
- - filename: $(inputs.src.path.split('/' ).slice(-1)[0])
13
- fileContent: $(inputs.src)
10
+ - class: InitialWorkDirRequirirement
11
+ listing :
12
+ - $(inputs.src)
14
13
15
14
inputs :
16
- - id : src
15
+ src:
17
16
type : File
18
17
inputBinding :
19
18
position : 1
20
- valueFrom : $(inputs.src.path.split( '/' ).slice(-1)[0] )
19
+ valueFrom : $(inputs.src.basename )
21
20
22
21
outputs :
23
- - id : classfile
22
+ classfile:
24
23
type : File
25
24
outputBinding :
26
25
glob : "*. class"
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
inputs :
4
- - id : dependent_parameters
4
+ dependent_parameters:
5
5
type :
6
6
type : record
7
7
name: dependent_parameters
8
8
fields :
9
- - name: itemA
9
+ itemA:
10
10
type : string
11
11
inputBinding :
12
12
prefix : -A
13
- - name: itemB
13
+ itemB:
14
14
type : string
15
15
inputBinding :
16
16
prefix : -B
17
- - id : exclusive_parameters
17
+ exclusive_parameters:
18
18
type :
19
19
- type : record
20
20
name: itemC
21
21
fields :
22
- - name: itemC
22
+ itemC:
23
23
type : string
24
24
inputBinding :
25
25
prefix : -C
26
26
- type : record
27
27
name: itemD
28
28
fields :
29
- - name: itemD
29
+ itemD:
30
30
type : string
31
31
inputBinding :
32
32
prefix : -D
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : echo
4
4
stdout : output.txt
5
5
inputs :
6
- - id : message
6
+ message:
7
7
type : string
8
8
inputBinding :
9
9
position : 1
10
10
outputs :
11
11
- id : output
12
- type : File
13
- outputBinding :
14
- glob : output.txt
12
+ type : stdout
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : [tar, xf]
4
4
inputs :
5
- - id : tarfile
5
+ tarfile:
6
6
type : File
7
7
inputBinding :
8
8
position : 1
9
- - id : extractfile
9
+ extractfile:
10
10
type : string
11
11
inputBinding :
12
12
position : 2
13
13
outputs :
14
- - id : example_out
14
+ example_out:
15
15
type : File
16
16
outputBinding :
17
17
glob : $(inputs.extractfile)
Original file line number Diff line number Diff line change 1
- cwlVersion: cwl:draft-3
1
+ cwlVersion: v1.0
2
2
class: CommandLineTool
3
3
baseCommand : [tar, xf]
4
4
inputs :
5
- - id : tarfile
5
+ tarfile:
6
6
type : File
7
7
inputBinding :
8
8
position : 1
9
9
outputs :
10
- - id : example_out
10
+ example_out:
11
11
type : File
12
12
outputBinding :
13
13
glob : hello.txt
You can’t perform that action at this time.
0 commit comments