To celebrate the release of GATK 4.0, we are giving away free credits for running the GATK4 Best Practices pipelines in FireCloud, our secure online analysis portal. It’s first come first serve, so sign up now to claim your free credits worth $250. Sponsored by Google Cloud. Learn more at

wdl with optional flags

Hi all,

I have a command in my workflow that accepts an optional flag, like this: --input infile --ouput outfile --flag

I would like to include flag in the workflow as a boolean variable, and have called as above when it is true, and like this when its false: --input infile --ouput outfile

Is there a way to do this within the 'command' block? I could make a separate task for the command with and without the flag, but this won't work if we want to include many different optional flags.

For reference, I have found a way to use with optional --val=foobar, but I see no clear way to modify that method for flags without values:


Best Answer


Sign In or Register to comment.