Optional column select arguments?
Dear all, I'm trying to define an *optional* column parameter as follows: <param name="start_col" type="data_column" data_ref="input_tabular" multiple="False" numerical="False" optional="True" label="Column containing start co-ordindate" help="Leave empty to include everything from the first base/residue"/> i.e. I want the user to either select ONE of the columns of the input tabular data file (in which case getting "1" or "c1" etc as the string is fine) OR pick no column at all (in which case I want an empty string or similar in the command string. Is this possible? The above parameter loads fine, but defaults to the first column with no apparent way to un-make this implicit selection. Thanks, Peter
On Thu, Aug 4, 2011 at 3:42 PM, Peter Cock <p.j.a.cock@googlemail.com> wrote:
Dear all,
I'm trying to define an *optional* column parameter as follows:
<param name="start_col" type="data_column" data_ref="input_tabular" multiple="False" numerical="False" optional="True" label="Column containing start co-ordindate" help="Leave empty to include everything from the first base/residue"/>
i.e. I want the user to either select ONE of the columns of the input tabular data file (in which case getting "1" or "c1" etc as the string is fine) OR pick no column at all (in which case I want an empty string or similar in the command string.
Is this possible?
The above parameter loads fine, but defaults to the first column with no apparent way to un-make this implicit selection.
I've noticed a potential UI solution and precedent in Galaxy: if you do "edit attributes" for an "interval" file - here the strand and name settings combine a checkbox and select box. Can we have this UI behaviour for a tool XML file parameter as described above please? Peter
Hi Peter, I have opened a ticket for this UI-form enhancement request. Status can be tracked at: http://bitbucket.org/galaxy/galaxy-central/issue/634/optional-column-select-... Thanks for the suggestion! Jen Galaxy team On 8/4/11 8:20 AM, Peter Cock wrote:
On Thu, Aug 4, 2011 at 3:42 PM, Peter Cock<p.j.a.cock@googlemail.com> wrote:
Dear all,
I'm trying to define an*optional* column parameter as follows:
<param name="start_col" type="data_column" data_ref="input_tabular" multiple="False" numerical="False" optional="True" label="Column containing start co-ordindate" help="Leave empty to include everything from the first base/residue"/>
i.e. I want the user to either select ONE of the columns of the input tabular data file (in which case getting "1" or "c1" etc as the string is fine) OR pick no column at all (in which case I want an empty string or similar in the command string.
Is this possible?
The above parameter loads fine, but defaults to the first column with no apparent way to un-make this implicit selection. I've noticed a potential UI solution and precedent in Galaxy: if you do "edit attributes" for an "interval" file - here the strand and name settings combine a checkbox and select box.
Can we have this UI behaviour for a tool XML file parameter as described above please?
Peter
-- Jennifer Jackson http://usegalaxy.org http://galaxyproject.org/Support
participants (2)
-
Jennifer Jackson
-
Peter Cock