Skip to content

Update 03-input.md #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions _episodes/03-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ and *null*; complex types are *array* and *record*; in addition there are
special types *File*, *Directory* and *Any*.

The following example demonstrates some input parameters with different
types and appearing on the command line in different ways:
types and appearing on the command line in different ways.

First, create a file called inp.cwl, containing the following:


*inp.cwl*
Expand All @@ -33,6 +35,8 @@ types and appearing on the command line in different ways:
~~~
{: .source}

Create a file called inp-job.yml:

*inp-job.yml*

~~~
Expand All @@ -43,8 +47,7 @@ types and appearing on the command line in different ways:
Notice that "example_file", as a `File` type, must be provided as an
object with the fields `class: File` and `path`.

Next, create a whale.txt and invoke `cwl-runner` with the tool wrapper and the
input object on the command line:
Next, create a whale.txt using [touch] by typing `touch whale.txt` on the command line and then invoke `cwl-runner` with the tool wrapper and the input object on the command line, using the command `cwl-runner inp.cwl inp-job.yml`. The following boxed text describes these two commands and the expected output from the command line:

~~~
$ touch whale.txt
Expand Down Expand Up @@ -146,3 +149,5 @@ line as 1, 2, 3. More than one parameter can have the same position
is optional. The default position is 0.

The `baseCommand` field will always appear in the final command line before the parameters.

[touch]: http://www.linfo.org/touch.html