Question: Galaxy Tool Dependency
gravatar for gemayelkarl
3.8 years ago by
United States
gemayelkarl0 wrote:

I'm facing some issues when attempting to install a custom tool into galaxy. Here's my current setup:

  • Created directory MyTool under tools/
  • Created mytool.xml and tool_dependency.xml under tools/MyTool


The contents of the files are written below (I've simplified them slightly to make them shorter and easier to understand): 

<tool id="mytool" name="My Tool">
  <description> A tool </description>
    <requirement type="package" version="1.2">theTool</requirement>
    tool_executable $input
    <param format="fasta" name="input" type="data" label="Source file"/>

<?xml version="1.0"?>
  <package name="theTool" version="1.2">
    <install version="1.0">
        <action type="download_by_url">http://location-of-tool.tar.gz</action>
        <action type="move_directory_files">
          <source_directory> . </source_directory>
          <destination_directory> $INSALL_DIR <destination_directory>


​My question now is, how do I get Galaxy to actually run the tool_dependency.xml file and download the tool? I can definitely get it to run the mytool.xml file, but can't seem to get it to download the tool using tool_dependency.xml. Am I missing something? I read the documentation many times  but couldn't figure it out. Any help would be appreciated.

tool dependency galaxy xml • 1.2k views
ADD COMMENTlink modified 3.8 years ago by Martin Čech ♦♦ 4.9k • written 3.8 years ago by gemayelkarl0
gravatar for Martin Čech
3.8 years ago by
Martin Čech ♦♦ 4.9k
United States
Martin Čech ♦♦ 4.9k wrote:

The correct filename is tool_dependencies.xml and it is used _only_ when the tool is being installed from the Tool Shed. You are adding your tool to your Galaxy manually thus you have to manually resolve its dependencies.

You can also create a toolshed repository at for your tool and then install it to your Galaxy through it using hte admin interface. During the process you will have an option to handle the tool dependencies automatically (based on the tool_dependencies.xml file).

ADD COMMENTlink modified 3.8 years ago • written 3.8 years ago by Martin Čech ♦♦ 4.9k
Please log in to add an answer.


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