Question: Bioblend - Getting all parameters for a Galaxy tool ?
1
gravatar for lindfors.erno
2.8 years ago by
Germany
lindfors.erno • 30 wrote:

Hi all,

I would like to get all parameters that a Galaxy tool has.

More specifically, I have managed to get all tool panels and tools by using the following code snippet.
import sys
from bioblend.galaxy import GalaxyInstance
from bioblend.galaxy.tools import ToolClient
galaxyInstance = GalaxyInstance(url=GALAXY_URL, key=API_KEY)
toolClient = ToolClient(galaxyInstance)
toolPanels = toolClient.get_tool_panel()
for toolPanel in toolPanels:
    tools = toolPanel['elems']

    
Next, I would like to get all parameters that each tool has, something like this:
    for tool in tools:
      tool.get_parameters()

Is there anyway to do it?

bioblend galaxy • 686 views
ADD COMMENT • link • written 2.8 years ago by lindfors.erno • 30

Recently managed to google a solution:
    for tool in tools:
      toolShow = toolClient.show_tool(tool_id=tool['id'], io_details=True)
      inputParams = toolShow['inputs']

ADD REPLY • link written 2.8 years ago by lindfors.erno • 30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 166 users visited in the last hour