Dear all,
I’m trying to develop a tool but I failed to properly filter output.
The aim is to repeat different type of analysis depending of the parameters. So I created a repeat parameters, with a conditional and with a select parameter. The analysis is okay but I cannot filter output data and I received empty files for non analyzed part of the code…
I tried to write the filter in different manner but it don’t work into a repeat parameter…
thanks !
An example of my code could be :
<inputs>
<repeat name="repeat" title="repeat1">
<conditional name="conditional">
<param name="select1" type="select">
<option value="type1" >the type 1</option>
<option value="type2">the type 2</option>
</param>
<when value="type1">
<param name="data1" type="data" label="data1">
</when>
<when value="type2">
<param name="data2" type="data" label="data2">
</when>
</conditional>
</repeat>.
</inputs>
<outputs>
<data name="output1" format="pdf" label="output1 from data1">
<filter>repeat['conditional']['select1'] == 'type1' </filter>
<data name="output2" format="csv" label="output2 from data2">
<filter>repeat['conditional']['select1'] == 'type2' </filter>
<outputs>