Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Issue/3960 scatter outputs should not clash (#3) * feat: adding unit test to detect defect * feat: wip for scatter * bugfix: detect duplicate targets for Files and write out files * bugfix: rename test cases to be more descriptive * feat: expand test and code cleanup * feat: dont change tests that I dont need too * feat: format and fix whitespace * bugfix: fix lint issue * feat: PR test fix * feat: remove old comment
- Loading branch information
Showing
3 changed files
with
133 additions
and
6 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
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
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,57 @@ | ||
cwlVersion: v1.2 | ||
class: Workflow | ||
|
||
inputs: | ||
- id: arrayS | ||
type: string[] | ||
default: ['hello','world'] | ||
|
||
steps: | ||
hello: | ||
run: | ||
class: CommandLineTool | ||
inputs: | ||
s: string | ||
baseCommand: [echo] | ||
arguments: [ $(inputs.s)] | ||
outputs: | ||
out: stdout | ||
err: stderr | ||
in: | ||
- id: s | ||
source: arrayS | ||
scatter: | ||
- s | ||
out: | ||
- id: out | ||
- id: err | ||
|
||
list: | ||
run: | ||
class: CommandLineTool | ||
inputs: | ||
file: File | ||
baseCommand: [ ls , -lh] | ||
arguments: [ $(inputs.file) ] | ||
stdout: "list.out" | ||
outputs: | ||
list_out: stdout | ||
in: | ||
- id: file | ||
linkMerge: merge_flattened | ||
source: | ||
- hello/out | ||
scatter: | ||
- file | ||
out: | ||
- id: list_out | ||
|
||
outputs: | ||
- id: list_out | ||
type: File[] | ||
outputSource: ["list/list_out"] | ||
|
||
|
||
requirements: | ||
- class: ScatterFeatureRequirement | ||
- class: MultipleInputFeatureRequirement |