I can only see the usage of the <when> tag into the <outputs> to change format, is that correct ? I tryed : <outputs> <data name="log" format="txt" /> <data name="output" format="input"> <when input="clean_pairends.clean_pairends_select" value="y" format="interval"/> </data> </outputs> but even if the option is not selected, I have 2 outputs ! Am I missing something with the <when> tag ? Because it looks to me that it is pretty limited to the change_format tag, isn't it ? thx for your answers, Jerome Peter Cock a écrit :
On Tue, Jun 7, 2011 at 10:56 AM, Mariette <jmariett@toulouse.inra.fr> wrote:
Thanks for the answer, Still considering the number of outputed files problem. In my script I know that if a cleaning option is set 2 other files will be created, so I check if the option is asked by the user and try this :
<outputs> <data name="log" format="txt" /> #if $clean_pairends.clean_pairends_select=="y": <data name="output" format="input"/> #end if </outputs>
but this is not working ... there is a way to do what I want ? thx Jerome
The #if stuff is Cheetah syntax, and only applies within the <command> tag - not to the XML file in general.
You probably want a conditional output using <when>, see: https://bitbucket.org/galaxy/galaxy-central/wiki/ToolConfigSyntax
Peter
___________________________________________________________ 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: