Hi,
I use a tool data table to build a dropdown menu. I have my table defined in tool_data_table_conf.xml, and a proper loc file. My dropdown menu is built and fonctional.
My problem is with the filter tag. I try to remove line I don't want in my dropdown menu with <filter>. Lines I want to remove have a keyword in a specific column, I just wan to filter lines from that.
What I did after reading the galaxy doc is :
<param name="proteinatlas" type="select" label="Human Protein Atlas" >
<options from_data_table="proteore_protein_atlas" >
<filter type="remove_value" key="value" value="HPA_pathology"/>
</options>
</param>
Where key is the column name and value is the keyword of lines I want to remove.
All I get is an error :
File "/home/dchristiany/proteore_project/galaxy/lib/galaxy/tools/parameters/dynamic_options.py", line 422, in filter_options
return [(disp_name, optval, selected) for disp_name, optval, selected in options if not compare_value(optval, value)]
ValueError: too many values to unpack
Can someone can help me or tell me where I can find more instructions to use this filter tag ?