Created
December 8, 2016 20:47
-
-
Save dleehr/4c72a5a70e4a59f80f453c0379f52aab to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env cwl-runner | |
cwlVersion: v1.0 | |
class: ExpressionTool | |
requirements: | |
- class: InlineJavascriptRequirement | |
inputs: | |
primary: | |
type: File | |
secondary: | |
type: | |
type: array | |
items: File | |
outputs: | |
merged: | |
type: File | |
expression: > | |
${ | |
var ret = inputs.primary; | |
ret["secondaryFiles"] = inputs.secondary; | |
return {"merged": ret }; | |
} |
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
{"primary":{"class":"File","path":"primary"},"secondary":[{"class":"File","path":"secondary"}]} |
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
Primary File |
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
Secondary File |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment