Hi GATK Users,

Happy Thanksgiving!
Our staff will be observing the holiday and will be unavailable from 22nd to 25th November. This will cause a delay in reaching out to you and answering your questions immediately. Rest assured we will get back to it on Monday November 26th. We are grateful for your support and patience.
Have a great holiday everyone!!!

GATK Staff

wdl with optional flags

Hi all,

I have a command in my workflow that accepts an optional flag, like this:

command.py --input infile --ouput outfile --flag

I would like to include flag in the workflow as a boolean variable, and have command.py called as above when it is true, and like this when its false:

command.py --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 command.py with optional --val=foobar, but I see no clear way to modify that method for flags without values: http://gatkforums.broadinstitute.org/wdl/discussion/7024/optional-parameters-and-type-constraints


Best Answer


Sign In or Register to comment.