Access tool information with mako.
Assuming I have the tool object (let's just call this "tool") available and am able to traverse it in mako, I know I can access its name by "tool.name" and id by "tool.id". However, how do I access the input and output parameters? I tried using "tool.inputs" and "tool.outputs" but the results didn't correspond to the actual input and output parameters for the tool. Thanks! -- Sincerely, Michael Cotterell mepcotterell@gmail.com mepcott@uga.edu P.S. - Check out ScalaTion (http://code.google.com/p/scalation/), a Domain-Specific Language for Modeling & Simulation. #blatantplug
Michael Cotterell wrote:
Assuming I have the tool object (let's just call this "tool") available and am able to traverse it in mako, I know I can access its name by "tool.name" and id by "tool.id". However, how do I access the input and output parameters? I tried using "tool.inputs" and "tool.outputs" but the results didn't correspond to the actual input and output parameters for the tool.
Hi Michael, I'm a little unclear on what you're looking for? The inputs and outputs should indeed be .inputs and .outputs. inputs is an odict which itself contains an odict containing the input params. The whole structure should be apparent if you look through the Tool class in galaxy-dist/lib/galaxy/tools/__init__.py --nate
Thanks!
-- Sincerely, Michael Cotterell mepcotterell@gmail.com mepcott@uga.edu
P.S. - Check out ScalaTion (http://code.google.com/p/scalation/), a Domain-Specific Language for Modeling & Simulation. #blatantplug ___________________________________________________________ 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:
participants (2)
-
Michael Cotterell
-
Nate Coraor