Skip to content

Commit

Permalink
Update Dockstore.cwl
Browse files Browse the repository at this point in the history
  • Loading branch information
DockstoreTestUser2 committed Oct 4, 2016
1 parent ae2a0ad commit fea51df
Showing 1 changed file with 16 additions and 59 deletions.
75 changes: 16 additions & 59 deletions Dockstore.cwl
Original file line number Diff line number Diff line change
@@ -1,67 +1,24 @@
#
# This is a not quite so funked out workflow
#
cwlVersion: v1.0
class: Workflow
description: "Reverse the lines in a document, then sort those lines."
cwlVersion: cwl:draft-3

# Requirements & hints specify prerequisites and extensions to the workflow.
# In this example, DockerRequirement specifies a default Docker container
# in which the command line tools will execute.
hints:
- class: DockerRequirement
dockerPull: debian:8


# The inputs array defines the structure of the input object that describes
# the inputs to the workflow.
#
# The "reverse_sort" input parameter demonstrates the "default" field. If the
# field "reverse_sort" is not provided in the input object, the default value will
# be used.
inputs:
- id: input
type: File
description: "The input file to be processed."
- id: reverse_sort
type: boolean
default: true
description: "If true, reverse (decending) sort"
inp: File
ex: string

# The "outputs" array defines the structure of the output object that describes
# the outputs of the workflow.
#
# Each output field must be connected to the output of one of the workflow
# steps using the "connect" field. Here, the parameter "#output" of the
# workflow comes from the "#sorted" output of the "sort" step.
outputs:
- id: output
classout:
type: File
source: "#sorted/output"
description: "The output with the lines reversed and sorted."
outputSource: compile/classfile

# The "steps" array lists the executable steps that make up the workflow.
# The tool to execute each step is listed in the "run" field.
#
# In the first step, the "inputs" field of the step connects the upstream
# parameter "#input" of the workflow to the input parameter of the tool
# "revtool.cwl#input"
#
# In the second step, the "inputs" field of the step connects the output
# parameter "#reversed" from the first step to the input parameter of the
# tool "sorttool.cwl#input".
steps:
- id: rev
inputs:
- { id: input, source: "#input" }
outputs:
- { id: output }
run: revtool.cwl
untar:
run: tar-param.cwl
in:
tarfile: inp
extractfile: ex
out: [example_out]

- id: sorted
inputs:
- { id: input, source: "#rev/output" }
- { id: reverse, source: "#reverse_sort" }
outputs:
- { id: output }
run: sorttool.cwl
compile:
run: arguments.cwl
in:
src: untar/example_out
out: [classfile]

0 comments on commit fea51df

Please sign in to comment.