Display of file content in a combobox
Hello, I'd like to display the unique column content of a file in a combobox to give the user the possibility to select factor levels for subsequent analyses, e.g. for combining related factor levels in a meta-analyses. Unfortunately, I failed to connect the tool that reads out the factor levels with the tool that receive the selection via combobox as input argument. I'd be very thankful for any suggestion! Christof
I don't know how to do this exactly - but I think it is possible with a custom datatype. I think you define a custom datatype (you will probably want to extend the Galaxy tabular datatype), then I believe you will need to override the set_meta method on the datatype to collect a new metadata field (perhaps called factors), and finally have the first step produce this datatype. The second step then should define its input data parameter to consume this type, and then define a "select" param type and within that <param name="label" type="select" label="Factor" > <options> <filter type="data_meta" ref="output_step_1" key="factors" /> </options> </param> The example of a tool that works vaguely this way that I know about is JJ's mothur wrappers (but hopefully someone can think of one that actually works with tabular data). Here is the repository: https://toolshed.g2.bx.psu.edu/repos/jjohnson/mothur_toolsuite/file/tip/moth... Here is the datatype definition - he extends Text data - but you would want to extend Tabular instead - but this gives a sense of how to override set_meta to collect metadata and extend a datatype. https://toolshed.g2.bx.psu.edu/repos/jjohnson/mothur_toolsuite/file/tip/moth... Here is a tool than that uses this datatype and the filter on data_meta type. https://toolshed.g2.bx.psu.edu/repos/jjohnson/mothur_toolsuite/file/tip/moth... It will probably frustrating to get this pattern working the first time - but it is possible. Hope this helps, -John On Mon, Jan 12, 2015 at 10:31 AM, christof.pietsch@kws.com <christof.pietsch@kws.com> wrote:
Hello,
I’d like to display the unique column content of a file in a combobox to give the user the possibility to select factor levels for subsequent analyses, e.g. for combining related factor levels in a meta-analyses.
Unfortunately, I failed to connect the tool that reads out the factor levels with the tool that receive the selection via combobox as input argument.
I’d be very thankful for any suggestion!
Christof
___________________________________________________________ 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: https://lists.galaxyproject.org/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
participants (2)
-
christof.pietsch@kws.com
-
John Chilton