biowdl / tasks

A collection of reusable WDL tasks. Category:Other
https://biowdl.github.io/tasks/
MIT License
85 stars 31 forks source link

Use of placeholder with optional value in spades.wdl #282

Closed jdidion closed 3 years ago

jdidion commented 3 years ago

On line 62, singleCell is used as a placeholder expression with true and false options. singleCell is type Boolean? but true/false options can only be used with type Boolean. Change to ~{true="--sc" false="" select_first([singleCell])}. If singleCell is undefined, the placeholder is replaced by the empty string. This is implied a couple of places in the 1.0 spec and made explicit in 1.1.

rhpvorderman commented 3 years ago

Thank you for pointing this out.

A better way of doing this is indeed to use defaults. Boolean singleCell = False. By default that means there will be no flag, which is a sane default.