| 1 |
#!/usr/bin/env cwl-runner |
| 2 |
cwlVersion: v1.0 |
| 3 |
class: Workflow |
| 4 |
|
| 5 |
requirements: |
| 6 |
InlineJavascriptRequirement: {} |
| 7 |
|
| 8 |
inputs: |
| 9 |
first: |
| 10 |
type: File |
| 11 |
format: | |
| 12 |
${ return "http://edamontology.org/format_3016"; } |
| 13 |
default: |
| 14 |
class: File |
| 15 |
basename: default |
| 16 |
format: http://edamontology.org/format_3016 |
| 17 |
contents: "42" |
| 18 |
|
| 19 |
steps: |
| 20 |
format_extract: |
| 21 |
in: |
| 22 |
target: first |
| 23 |
run: |
| 24 |
class: ExpressionTool |
| 25 |
inputs: |
| 26 |
target: File |
| 27 |
expression: | |
| 28 |
${ return {"result": inputs.target.format}; } |
| 29 |
outputs: |
| 30 |
result: string |
| 31 |
out: [ result ] |
| 32 |
|
| 33 |
outputs: |
| 34 |
format_uri: |
| 35 |
type: string |
| 36 |
outputSource: format_extract/result |