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 https://software.broadinstitute.org/firecloud/documentation/freecredits

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

Tagged:

Best Answer

Answers

Sign In or Register to comment.