Hi Galaxy Devs,
I ran into a small problem when using a conditional tag set in my tool config. The conditional works as expected when I use a select param with the default popup menu display type. But when I change the display type to radio buttons, the view in the web browser does not update straight away when I choose another option for the conditional param. I can get the display to update if I select another item from my history for the input parameter though...
Below is the code for a simple tool that can be used to reproduce this (Radio button version commented out.)
Cheers,
Pi
---------------------------------------------------------------------------------------
<tool id="Tab2NonRedundantTab1" version="1.2" name="Remove redundancy"> <description>from tabular data sets</description> <command> #if $score_based_record_selection.enable_scoring=="Yes" #sort -t $'\t' -k $ucol,$ucol -k $score_based_record_selection.scol,$score_based_record_selection.scol\n$score_based_record_selection.bigger_is_better $input | sort -u -t $'\t' -k $ucol,$ucol > $output #else #sort -u -t $'\t' -k $ucol,$ucol $input > $output #end if </command> <inputs> <param name="input" type="data" format="tabular" label="Input file to filter for redundancy" help="(in TAB delimited format)"/> <param name="ucol" type="data_column" value="c1" data_ref="input" label="Remove redundancy from column"/> <conditional name="score_based_record_selection"> <!-- Radio buttons don't work yet: refresh problem! <param name="enable_scoring" type="select" label="Use score to determine which redundant records to preserve" display="radio"> --> <param name="enable_scoring" type="select" label="Use score to determine which redundant records to preserve"> <option value="No" selected="true">No</option> <option value="Yes">Yes</option> </param> <when value="Yes"> <param name="scol" type="data_column" value="" data_ref="input" label="Score column used to decide which of the redundant entries to keep"/> <param name="bigger_is_better" type="select" optional="true"> <label>Best entry has the</label> <option value="r">Highest score</option> <option value="">Lowest score</option> </param> </when> <when value="No"/> </conditional> </inputs> <outputs> <data name="output" format="tabular" label="Non-redundant output"/> </outputs> </tool>
--------------------------------------------------------------- Biomolecular Mass Spectrometry & Proteomics group Utrecht University
Visiting address: H.R. Kruyt building room O607 Padualaan 8 3584 CH Utrecht The Netherlands
Mail address: P.O. box 80.082 3508 TB Utrecht The Netherlands
phone: +31 6 143 66 783 email: pieter.neerincx@gmail.com skype: pieter.online ---------------------------------------------------------------