Hi everyone. I'm trying to use a <param type="select" display="checkboxes"
multiple="true"> in a tool, but galaxy doesn't seem to work correctly if I
This is what I have:
<param name="test" type="select" display="checkboxes" multiple="true"
<option value="a" selected="true">A</option>
<option value="b" selected="true">B</option>
If I "unselect all", execute the tool, and then try to re-run the tool by
examining the output dataset, parameter A and B are selected, but they
shouldn't! When the history is converted to a workflow this breaks the intent
of the user!
Second problem: how do I test for single values in the <command> template?
Right now I'm (wrongly?) doing:
#if 'a' in $test.value:
but it breaks badly when all values are unselected ("$test.value" does not
exist, and thus cheetah fails to compile the template).
My solution would be:
#set $foo = str($test).split(',')
#if 'a' in $foo:
but this is _incredibly_ ugly. When I use a multi-select, I often want to see
if there's some single parameter in it. Any suggestions?
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at: