Skip to content

Commit 7763054

Browse files
authored
Merge pull request #18 from common-workflow-language/mr-c-patch-1
cleanup & simplification
2 parents 054c5c7 + b87e79a commit 7763054

File tree

3 files changed

+50
-68
lines changed

3 files changed

+50
-68
lines changed

_includes/cwl/metadata_example.cwl

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
#!/usr/bin/env cwl-runner
2-
3-
class: CommandLineTool
4-
id: Example tool
5-
label: Example tool
62
cwlVersion: v1.0
7-
doc: |
8-
An example tool demonstrating metadata.
3+
class: CommandLineTool
94

10-
requirements:
11-
- class: ShellCommandRequirement
5+
label: An example tool demonstrating metadata.
126

137
inputs:
14-
bam_input:
8+
aligned_sequences:
159
type: File
16-
doc: The BAM file used as input
10+
label: Aligned sequences in BAM format
1711
format: edam:format_2572
1812
inputBinding:
1913
position: 1
2014

15+
baseCommand: [ wc, -l ]
16+
2117
stdout: output.txt
2218

2319
outputs:
2420
report:
25-
type: File
21+
type: stdout
2622
format: edam:format_1964
27-
outputBinding:
28-
glob: "*.txt"
29-
doc: A text file that contains a line count
30-
31-
baseCommand: ["wc", "-l"]
23+
label: A text file that contains a line count
3224

3325
$namespaces:
34-
edam: http://edamontology.org/
26+
edam: http://edamontology.org/
27+
$schemas:
28+
- http://edamontology.org/EDAM_1.18.owl

_includes/cwl/metadata_example2.cwl

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,49 @@
11
#!/usr/bin/env cwl-runner
2-
3-
class: CommandLineTool
4-
id: Example tool
5-
label: Example tool
62
cwlVersion: v1.0
7-
doc: |
8-
An example tool demonstrating metadata. Note that this is an example and the metadata is not necessarily consistent.
3+
class: CommandLineTool
94

10-
requirements:
11-
- class: ShellCommandRequirement
5+
label: An example tool demonstrating metadata.
6+
doc: Note that this is an example and the metadata is not necessarily consistent.
127

138
inputs:
14-
bam_input:
9+
aligned_sequences:
1510
type: File
16-
doc: The BAM file used as input
11+
label: Aligned sequences in BAM format
1712
format: edam:format_2572
1813
inputBinding:
1914
position: 1
2015

16+
baseCommand: [ wc, -l ]
17+
2118
stdout: output.txt
2219

2320
outputs:
2421
report:
25-
type: File
22+
type: stdout
2623
format: edam:format_1964
27-
outputBinding:
28-
glob: "*.txt"
29-
doc: A text file that contains a line count
30-
31-
baseCommand: ["wc", "-l"]
32-
33-
$namespaces:
34-
s: https://schema.org/
35-
edam: http://edamontology.org/
36-
37-
$schemas:
38-
- https://schema.org/docs/schema_org_rdfa.html
24+
label: A text file that contains a line count
3925

4026
s:author:
4127
- class: s:Person
42-
s:id: https://orcid.org/0000-0002-6130-1021
28+
s:identifier: https://orcid.org/0000-0002-6130-1021
4329
s:email: mailto:dyuen@oicr.on.ca
4430
s:name: Denis Yuen
4531

4632
s:contributor:
4733
- class: s:Person
48-
s:id: http://orcid.org/0000-0002-7681-6415
34+
s:identifier: http://orcid.org/0000-0002-7681-6415
4935
s:email: mailto:briandoconnor@gmail.com
5036
s:name: Brian O'Connor
5137
5238
s:citation: https://dx.doi.org/10.6084/m9.figshare.3115156.v2
5339
s:codeRepository: https://github.com/common-workflow-language/common-workflow-language
5440
s:dateCreated: "2016-12-13"
5541
s:license: https://www.apache.org/licenses/LICENSE-2.0
42+
43+
$namespaces:
44+
s: https://schema.org/
45+
edam: http://edamontology.org/
46+
47+
$schemas:
48+
- https://schema.org/docs/schema_org_rdfa.html
49+
- http://edamontology.org/EDAM_1.18.owl

_includes/cwl/metadata_example3.cwl

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,41 @@
11
#!/usr/bin/env cwl-runner
2-
3-
class: CommandLineTool
4-
id: Example tool
5-
label: Example tool
62
cwlVersion: v1.0
7-
doc: |
8-
An example tool demonstrating metadata. Note that this is an example and the metadata is not necessarily consistent.
3+
class: CommandLineTool
94

10-
requirements:
11-
- class: ShellCommandRequirement
5+
label: An example tool demonstrating metadata.
6+
doc: Note that this is an example and the metadata is not necessarily consistent.
127

138
hints:
14-
- class: ResourceRequirement
9+
ResourceRequirement:
1510
coresMin: 4
1611

1712
inputs:
18-
bam_input:
13+
aligned_sequences:
1914
type: File
20-
doc: The BAM file used as input
15+
label: Aligned sequences in BAM format
2116
format: edam:format_2572
2217
inputBinding:
2318
position: 1
2419

20+
baseCommand: [ wc, -l ]
21+
2522
stdout: output.txt
2623

2724
outputs:
2825
report:
29-
type: File
26+
type: stdout
3027
format: edam:format_1964
31-
outputBinding:
32-
glob: "*.txt"
33-
doc: A text file that contains a line count
34-
35-
baseCommand: ["wc", "-l"]
36-
37-
$namespaces:
38-
- s: https://schema.org/
39-
- edam: https://edamontology.org/
40-
41-
$schemas:
42-
- https://schema.org/docs/schema_org_rdfa.html
28+
label: A text file that contains a line count
4329

4430
s:author:
4531
- class: s:Person
46-
s:id: https://orcid.org/0000-0002-6130-1021
32+
s:identifier: https://orcid.org/0000-0002-6130-1021
4733
s:email: mailto:dyuen@oicr.on.ca
4834
s:name: Denis Yuen
4935

5036
s:contributor:
5137
- class: s:Person
52-
s:id: http://orcid.org/0000-0002-7681-6415
38+
s:identifier: http://orcid.org/0000-0002-7681-6415
5339
s:email: mailto:briandoconnor@gmail.com
5440
s:name: Brian O'Connor
5541
@@ -60,3 +46,11 @@ s:license: https://www.apache.org/licenses/LICENSE-2.0
6046
6147
s:keywords: edam:topic_0091 , edam:topic_0622
6248
s:programmingLanguage: C
49+
50+
$namespaces:
51+
s: https://schema.org/
52+
edam: https://edamontology.org/
53+
54+
$schemas:
55+
- https://schema.org/docs/schema_org_rdfa.html
56+
- http://edamontology.org/EDAM_1.18.owl

0 commit comments

Comments
 (0)