[galaxy-dev] Complex (relatively) tool config - accessing metadata and columns in select

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[galaxy-dev] Complex (relatively) tool config - accessing metadata and columns in select

Dennis Gascoigne-2
I am trying to write a tool whose input and output types are defined from an option selected by the user.

The first input is defined from a select list using a loc file - no probs
      <param name="source_select" type="select" label="Option 1">
                  <options from_file="tool_indices.loc">
                        <column name="name" index="0"/>
                        <column name="value" index="1"/>
                        <column name="inputType" index="2"/>
                        <column name="outType" index="3"/>
                  </options>
      </param>

Based on the selection I want to define the allowed input types (above in column 3) and specify the output type (above in column 4). 

Are the values of the select columns available for use in conditionals/change_format operations? If not, how can I get around it? What other methods of attack are there for the problem.


On a related issue, if th user specifies their input file, can i access the metadata for its type and filter the select list based on the input file?

Cheers
Dennis

_______________________________________________
galaxy-dev mailing list
[hidden email]
http://lists.bx.psu.edu/listinfo/galaxy-dev
Reply | Threaded
Open this post in threaded view
|

Re: [galaxy-dev] Complex (relatively) tool config - accessing metadata and columns in select

Dennis Gascoigne-2
Any ideas on this one would be appreciated. It is driving me insane.

Thanks

On Wed, May 26, 2010 at 5:43 PM, Dennis Gascoigne <[hidden email]> wrote:
I am trying to write a tool whose input and output types are defined from an option selected by the user.

The first input is defined from a select list using a loc file - no probs
      <param name="source_select" type="select" label="Option 1">
                  <options from_file="tool_indices.loc">
                        <column name="name" index="0"/>
                        <column name="value" index="1"/>
                        <column name="inputType" index="2"/>
                        <column name="outType" index="3"/>
                  </options>
      </param>

Based on the selection I want to define the allowed input types (above in column 3) and specify the output type (above in column 4). 

Are the values of the select columns available for use in conditionals/change_format operations? If not, how can I get around it? What other methods of attack are there for the problem.


On a related issue, if th user specifies their input file, can i access the metadata for its type and filter the select list based on the input file?

Cheers
Dennis



--
Dennis Gascoigne
0407 639 995
[hidden email]

_______________________________________________
galaxy-dev mailing list
[hidden email]
http://lists.bx.psu.edu/listinfo/galaxy-dev