Hi Alex, Conditional usage/data return is possible, but not for the exact syntax that you are using. Modifying the query by removing the ".value_label" from the key should help: change: ${input1.value_label} to be: ${input1} Please let us know if this works or not and we can help more from there, Best, Jen Galaxy team On 10/14/10 4:13 AM, Bossers, Alex wrote:
Hi All, Does someone know how to get the value of a type="select" param_name displayed in the output file label?
I know how to do it if its just a non-nested param setup-up using ${input1.value_label} where the input1 is the select_name. But this fails if the select is inside a conditional..... From cheetah script I can call these values like IF $tool.cmd=="something":..... But whatever I try in the<outputs><data> fails (I though it to be ${tool.cmd.value_label} but that complains on cmd not defined.... All possible iteration tried :( Snippet of a generalised tool.xml below. Any suggestions or hints where to get documentation on this syntax is welcomed! Alex
<command> /opt/tools/$tool.cmd $cmd_extra $input_delta #if $tool.cmd=="show-aligns": $tool.extra1 $tool.extra2 #end if > $out_tool </command> <inputs> <conditional name="tool"> <param name="cmd" type="select" value="show-snps" label="Select tool"> <option value="show-snps">show snps</option> <option value="show-aligns">show aligns</option> </param> <when value="show-aligns"> <param name="extra1" type="text" size="40" value="" label="IdR" help="FastA header ref sequence" /> <param name="extra2" type="text" size="40" value="" label="IdQ" help="FastA header query sequence" /> </when> <when value="show-snps" /> </conditional> <param name="input_delta" type="data" format="tabular" label="MUMmer delta file" /> <param name="cmd_extra" type="text" size="40" value="" label="Extra cmd line options" help="see specific cmd line options below for each tool" /> </inputs> <outputs> <data name="out_tool" format="text" label="tool ${tool.cmd.value_label}" /> </outputs>
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
-- Jennifer Jackson http://usegalaxy.org