I'm trying to setup a dynamic job destination for bowtie2 so that it submits to a different destination if the `-a` option is set or the `-k` option is set to a high value. I've got things working, but the function I've written seems rather complicated and ugly. I was wondering if anyone had any advice on a better way to query job parameters. See the function here:
https://gist.github.com/lparsons/a4724b51afd9027e3c0e
Thanks in advance for any suggestions or comments.