Skip to content

Commit

Permalink
sync remaining updates made to v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Mar 3, 2017
1 parent 8ab5eb9 commit 8de0b2b
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 12 deletions.
1 change: 0 additions & 1 deletion v1.1.0-dev1/CommandLineTool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ $graph:
- name: package
type: string
doc: "The common name of the software to be configured."
jsonldPredicate: "@id"
- name: version
type: string[]?
doc: "The (optional) version of the software to configured."
Expand Down
1 change: 0 additions & 1 deletion v1.1.0-dev1/Process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,6 @@ $graph:
doc: |
Specify valid types of data that may be assigned to this parameter.
- name: OutputParameter
type: record
extends: Parameter
Expand Down
26 changes: 18 additions & 8 deletions v1.1.0-dev1/UserGuide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
The value of `position` is used to determine where parameter should
appear on the command line. Positions are relative to one another, not
abosolute. As a result, positions do not have to be sequential, three
absolute. As a result, positions do not have to be sequential, three
parameters with positions `[1, 3, 5]` will result in the same command
line as `[1, 2, 3]`. More than one parameter can have the same position
(ties are broken using the parameter name), and the position field itself
Expand Down Expand Up @@ -290,8 +290,8 @@
- |
## Parameter references
In a previous example, we used extracted a file using the "tar" program.
However, that example was very limited becuase it assumed that the file
In a previous example, we extracted a file using the "tar" program.
However, that example was very limited because it assumed that the file
we were interested in was called "hello.txt". In this example, you will
see how to reference the value of input parameters dynamically from other
fields.
Expand Down Expand Up @@ -356,7 +356,7 @@
containers are also purposefully isolated from the host system, so in
order to run a tool inside a Docker container there is additional work to
ensure that input files are available inside the container and output
files can be recovered from the contianer. CWL can perform this work
files can be recovered from the container. CWL can perform this work
automatically, allowing you to use Docker to simplify your software
management while avoiding the complexity of invoking and managing Docker
containers.
Expand Down Expand Up @@ -466,7 +466,7 @@
tool is actually executed. The `$(runtime.outdir)` parameter is the path
to the designated output directory. Other parameters include
`$(runtime.tmpdir)`, `$(runtime.ram)`, `$(runtime.cores)`,
`$(runtime.ram)`, `$(runtime.outdirSize)`, and `$(runtime.tmpdirSize)`. See
`$(runtime.outdirSize)`, and `$(runtime.tmpdirSize)`. See
the [Runtime Environment](CommandLineTool.html#Runtime_environment)
section of the CWL specification for details.
Expand Down Expand Up @@ -522,7 +522,7 @@
- |
```
*array-outpust-job.yml*
*array-outputs-job.yml*
```
- $include: examples/array-outputs-job.yml
- |
Expand Down Expand Up @@ -662,6 +662,16 @@
- |
```
As this tool does not require any `inputs` we can run it with an (almost) empty job file:
*empty.yml*
```
{}
|
```
We can then run `expression.cwl`:
```
$ cwl-runner expression.cwl empty.yml
[job 140000594593168] /home/example$ echo -A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1
Expand Down Expand Up @@ -796,7 +806,7 @@
class: Workflow
```
The 'cwlVersion` field indicates the version of the CWL spec used by the
The `cwlVersion` field indicates the version of the CWL spec used by the
document. The `class` field indicates this document describes a workflow.
Expand All @@ -820,7 +830,7 @@
The `outputs` section describes the outputs of the workflow. This is a
list of output parameters where each parameter consists of an identifier
and a data type. The `source` connects the output parameter `classfile`
and a data type. The `outputSource` connects the output parameter `classfile`
of the `compile` step to the workflow output parameter `classout`.
```
Expand Down
2 changes: 1 addition & 1 deletion v1.1.0-dev1/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ preprocessing steps described in the
[Semantic Annotations for Linked Avro Data (SALAD) Specification](SchemaSalad.html).
An implementation may formally validate the structure of a CWL document using
SALAD schemas located at
https://github.com/common-workflow-language/common-workflow-language/tree/master/draft-4
https://github.com/common-workflow-language/common-workflow-language/tree/master/v1.1.0-dev1

## Identifiers

Expand Down
1 change: 0 additions & 1 deletion v1.1.0-dev1/examples/arguments.cwl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cwlVersion: v1.1.0-dev1
class: CommandLineTool
label: Example trivial wrapper for Java 7 compiler
baseCommand: javac
hints:
DockerRequirement:
dockerPull: java:7
Expand Down
1 change: 1 addition & 0 deletions v1.1.0-dev1/examples/empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
52 changes: 52 additions & 0 deletions v1.1.0-dev1/examples/nestedworkflows.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
cwlVersion: v1.0
class: Workflow

inputs: []

outputs:
classout:
type: File
outputSource: compile/classout

requirements:
- class: SubworkflowFeatureRequirement

steps:
compile:
run: 1st-workflow.cwl
in:
inp:
source: create-tar/tar
ex:
default: "Hello.java"
out: [classout]

create-tar:
requirements:
- class: InitialWorkDirRequirement
listing:
- entryname: Hello.java
entry: |
public class Hello {
public static void main(String[] argv) {
System.out.println("Hello from Java");
}
}
in: []
out: [tar]
run:
class: CommandLineTool
requirements:
- class: ShellCommandRequirement
arguments:
- shellQuote: false
valueFrom: |
date
tar cf hello.tar Hello.java
date
inputs: []
outputs:
tar:
type: File
outputBinding:
glob: "hello.tar"

0 comments on commit 8de0b2b

Please sign in to comment.