| 1 |
{ |
| 2 |
"$graph": [ |
| 3 |
{ |
| 4 |
"class": "CommandLineTool", |
| 5 |
"inputs": [ |
| 6 |
{ |
| 7 |
"type": "string", |
| 8 |
"inputBinding": { |
| 9 |
"position": 1, |
| 10 |
"valueFrom": "A_$(inputs.in1)_B_$(inputs.in1)_C_$(inputs.in1)" |
| 11 |
}, |
| 12 |
"id": "#tool1.cwl/in1" |
| 13 |
} |
| 14 |
], |
| 15 |
"baseCommand": "echo", |
| 16 |
"arguments": [ |
| 17 |
{ |
| 18 |
"valueFrom": "$(runtime)" |
| 19 |
} |
| 20 |
], |
| 21 |
"stdout": "out.txt", |
| 22 |
"requirements": [ |
| 23 |
{ |
| 24 |
"expressionLib": [ |
| 25 |
"var foo = function(x) {\n return 2 * x\n}\n\nvar bar = function(n, x) {\n return `{n} engineers walk into a {x}`\n}" |
| 26 |
], |
| 27 |
"class": "InlineJavascriptRequirement" |
| 28 |
} |
| 29 |
], |
| 30 |
"id": "#tool1.cwl", |
| 31 |
"outputs": [ |
| 32 |
{ |
| 33 |
"type": "string", |
| 34 |
"outputBinding": { |
| 35 |
"glob": "out.txt", |
| 36 |
"loadContents": true, |
| 37 |
"outputEval": "$(self)_D_$(runtime)" |
| 38 |
}, |
| 39 |
"id": "#tool1.cwl/out1" |
| 40 |
} |
| 41 |
] |
| 42 |
}, |
| 43 |
{ |
| 44 |
"class": "CommandLineTool", |
| 45 |
"inputs": [ |
| 46 |
{ |
| 47 |
"type": "#testtypes.yml/my_boolean_array", |
| 48 |
"inputBinding": { |
| 49 |
"position": 1, |
| 50 |
"valueFrom": "A_$(inputs.in1)_B_$(inputs.in1)_C_$(inputs.in1)" |
| 51 |
}, |
| 52 |
"id": "#tool2.cwl/in1" |
| 53 |
} |
| 54 |
], |
| 55 |
"baseCommand": "echo", |
| 56 |
"arguments": [ |
| 57 |
{ |
| 58 |
"valueFrom": "$(runtime)" |
| 59 |
} |
| 60 |
], |
| 61 |
"outputs": [ |
| 62 |
{ |
| 63 |
"type": "string", |
| 64 |
"outputBinding": { |
| 65 |
"glob": "out.txt", |
| 66 |
"loadContents": true, |
| 67 |
"outputEval": "$(self)_D_$(runtime)" |
| 68 |
}, |
| 69 |
"id": "#tool2.cwl/out1" |
| 70 |
} |
| 71 |
], |
| 72 |
"stdout": "out.txt", |
| 73 |
"requirements": [ |
| 74 |
{ |
| 75 |
"types": [ |
| 76 |
{ |
| 77 |
"name": "#testtypes.yml/my_boolean_array", |
| 78 |
"type": "array", |
| 79 |
"items": "boolean", |
| 80 |
"label": "A boolean array" |
| 81 |
}, |
| 82 |
{ |
| 83 |
"name": "#testtypes.yml/my_enum", |
| 84 |
"type": "enum", |
| 85 |
"symbols": [ |
| 86 |
"#testtypes.yml/my_enum/a", |
| 87 |
"#testtypes.yml/my_enum/b", |
| 88 |
"#testtypes.yml/my_enum/c" |
| 89 |
], |
| 90 |
"label": "A required enum" |
| 91 |
} |
| 92 |
], |
| 93 |
"class": "SchemaDefRequirement" |
| 94 |
} |
| 95 |
], |
| 96 |
"id": "#tool2.cwl" |
| 97 |
}, |
| 98 |
{ |
| 99 |
"class": "Workflow", |
| 100 |
"inputs": [ |
| 101 |
{ |
| 102 |
"id": "#main/in1", |
| 103 |
"type": "#testtypes.yml/my_boolean_array" |
| 104 |
} |
| 105 |
], |
| 106 |
"steps": [ |
| 107 |
{ |
| 108 |
"run": "#tool2.cwl", |
| 109 |
"in": [ |
| 110 |
{ |
| 111 |
"source": "#main/in1", |
| 112 |
"id": "#main/s1/in1" |
| 113 |
} |
| 114 |
], |
| 115 |
"out": [ |
| 116 |
"#main/s1/out1" |
| 117 |
], |
| 118 |
"id": "#main/s1" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"run": "#tool1.cwl", |
| 122 |
"in": [ |
| 123 |
{ |
| 124 |
"source": "#main/s1/out1", |
| 125 |
"id": "#main/s2/in1" |
| 126 |
} |
| 127 |
], |
| 128 |
"out": [ |
| 129 |
"#main/s2/out1" |
| 130 |
], |
| 131 |
"id": "#main/s2" |
| 132 |
} |
| 133 |
], |
| 134 |
"outputs": [ |
| 135 |
{ |
| 136 |
"id": "#main/out1", |
| 137 |
"type": "string", |
| 138 |
"outputSource": "#main/s2/out1" |
| 139 |
} |
| 140 |
], |
| 141 |
"requirements": [ |
| 142 |
{ |
| 143 |
"types": [ |
| 144 |
{ |
| 145 |
"$import": "#testtypes.yml/my_boolean_array" |
| 146 |
}, |
| 147 |
{ |
| 148 |
"$import": "#testtypes.yml/my_enum" |
| 149 |
} |
| 150 |
], |
| 151 |
"class": "SchemaDefRequirement" |
| 152 |
} |
| 153 |
], |
| 154 |
"id": "#main" |
| 155 |
} |
| 156 |
], |
| 157 |
"cwlVersion": "v1.2" |
| 158 |
} |