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" >
<filter type="data_meta" ref="output_step_1" key="factors" />
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:
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.
Here is a tool than that uses this datatype and the filter on data_meta type.
It will probably frustrating to get this pattern working the first
time - but it is possible.
Hope this helps,
On Mon, Jan 12, 2015 at 10:31 AM, christof.piet...@kws.com
> 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!
> 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:
> To search Galaxy mailing lists use the unified search at:
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:
To search Galaxy mailing lists use the unified search at: