You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Setting `self`-based Input Bindings for Optional Inputs
138
+
## How can I set `self`-based input bindings for optional inputs?
139
139
140
140
Currently, `cwltool` can't cope with missing optional inputs if their
141
141
input binding makes use of `self`.
@@ -162,7 +162,7 @@ baseCommand: echo
162
162
outputs: []
163
163
```
164
164
165
-
## Model a "one-or-the-other" Parameter
165
+
## How can I model a "one-or-the-other" parameter?
166
166
167
167
Below is an example showing how
168
168
to specify different strings to be added to a command line,
@@ -185,7 +185,7 @@ baseCommand: echo
185
185
outputs: []
186
186
```
187
187
188
-
## Connect a Solo Value to an Input that Expects an Array of that Type
188
+
## How do I connect a solo value to an input that expects an array of that type?
189
189
190
190
Using [`MultipleInputFeatureRequirement`](https://www.commonwl.org/v1.0/Workflow.html#MultipleInputFeatureRequirement)
191
191
along with
@@ -226,7 +226,7 @@ outputs:
226
226
type: File
227
227
outputSource: first/txt
228
228
```
229
-
## Optional Inputs 💯
229
+
## How do make an input optional? 💯
230
230
231
231
To make an input parameter optional, add a question mark to the type declaration.
232
232
@@ -245,7 +245,7 @@ inputs:
245
245
prefix: "--casava"
246
246
```
247
247
<a name="enuminputs"></a>
248
-
## Enum Inputs ⚜️
248
+
## How do I specify an input that must come from a list of predefined values (i.e. How do I use enum inputs) ?
249
249
250
250
For command line flags that require a specific input as the argument an enum type can be declared in CWL. **Specifying null here is known as long form style. It does the same thing as the question mark on the other inputs.**
251
251
@@ -265,7 +265,7 @@ Format:
265
265
prefix: "--format"
266
266
```
267
267
<a name="recordinputs"></a>
268
-
## Record Inputs 📀
268
+
## How do I describe dependent or exclusive input parameters(e.g. How do I use record inputs)?
269
269
270
270
For commandline flags that are either **mutually exclusive** or **dependent** a special record type can be defined. You can also specify null here to create optional inputs.
271
271
@@ -319,7 +319,7 @@ For commandline flags that are either **mutually exclusive** or **dependent** a
319
319
inputBinding:
320
320
prefix: "--chromosomes"
321
321
```
322
-
## Setting Mutually Exclusive Parameters
322
+
## How do I set mutually exclusive parameters?
323
323
324
324
To properly set fields in a record input type, you need to pass a dictionary to the input to properly set the parameters. This is done by using inline JavaScript and returning the dictionary with the key of the field you want to set. The source field is set to indicate the input from the workflow to be used as the value.
325
325
@@ -339,14 +339,14 @@ steps:
339
339
out: [indexes]
340
340
```
341
341
342
-
## Setting Booleans
342
+
## How can I set Booleans?
343
343
344
344
These can be set by using the default field
345
345
```yaml
346
346
input:
347
347
default:true
348
348
```
349
-
## Concatenating Strings in Inputs
349
+
## What should I do when concatenating strings in inputs?
350
350
351
351
The valueFrom field must be used instead of default.
352
352
@@ -356,7 +356,7 @@ input:
356
356
My String: $(input.stringvalue)
357
357
```
358
358
359
-
## `cwltool` Errors due to Filenames with Space Characters Inside
359
+
## I get `cwltool` errors due to filenames with space characters inside. What should I do?
360
360
361
361
`cwltool`does not allow some characters in filenames by default.
362
362
@@ -370,7 +370,7 @@ Invalid filename: 'a space is here.txt' contains illegal characters
370
370
371
371
If you can not avoid these dangerous characters, then pass `--relax-path-checks` to `cwltool`.
372
372
373
-
## CWL Parameter Reference Error due to Hyphen in Input Identifier
373
+
## What should I do when I get CWL Parameter Reference error due to hyphen in an input identifier?
374
374
375
375
If `cwltool --validate` returns valid
376
376
@@ -439,15 +439,15 @@ If it is not possible to change the input identifier, then you can use an altern
0 commit comments