-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for scatter in loop (#1965)
- Loading branch information
1 parent
1eb83d1
commit ec1e1c8
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env cwl-runner | ||
cwlVersion: v1.2 | ||
class: Workflow | ||
$namespaces: | ||
cwltool: "http://commonwl.org/cwltool#" | ||
requirements: | ||
InlineJavascriptRequirement: {} | ||
ScatterFeatureRequirement: {} | ||
SubworkflowFeatureRequirement: {} | ||
inputs: | ||
i1: int[] | ||
i2: int | ||
outputs: | ||
o1: | ||
type: int[] | ||
outputSource: scatter/o1 | ||
steps: | ||
scatter: | ||
run: | ||
class: Workflow | ||
inputs: | ||
i1: int[] | ||
i2: int | ||
outputs: | ||
o1: | ||
type: int[] | ||
outputSource: subworkflow/o1 | ||
steps: | ||
subworkflow: | ||
run: | ||
class: ExpressionTool | ||
inputs: | ||
i1: int | ||
i2: int | ||
outputs: | ||
o1: int | ||
expression: > | ||
${return {'o1': inputs.i1 + inputs.i2};} | ||
in: | ||
i1: i1 | ||
i2: i2 | ||
out: [o1] | ||
scatter: i1 | ||
in: | ||
i1: i1 | ||
i2: i2 | ||
out: [o1] | ||
requirements: | ||
cwltool:Loop: | ||
loopWhen: $(inputs.i1[0] < 10) | ||
loop: | ||
i1: o1 | ||
outputMethod: last |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters