Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Latest commit

 

History

History
100 lines (75 loc) · 3.95 KB

README.rst

File metadata and controls

100 lines (75 loc) · 3.95 KB

Biopython package definitions for the Galaxy Tool Shed

For an introduction to the Biopython Project, please see http://biopython.org - and for an introduction to the Galaxy Project, please see http://galaxyproject.org/

The Galaxy web platform is extensible allowing addition of new tools to a Galaxy instance. These tools are shared via a Galaxy Tool Shed, primarily http://toolshed.g2.bx.psu.edu and the Test Tool Shed http://testtoolshed.g2.bx.psu.edu

In addition to new tools, the Galaxy Tool Shed also includes software package definitions for use as dependencies. This repository is for the development of the Biopython package defintions shared on the main Tool Shed and Test Tool Shed:

Note that each release of Biopython gets its own predicatably named entry on the Tool Shed, so that tools using Biopython can specify the exact version of Biopython required. This is important for reproducibility which is a Galaxy design goal.

Instructions for Galaxy Tool Authors

If you are writing a Galaxy Tool which uses a Python script dependent on Biopython, in order for the Galaxy Tool Shed to automatically install Biopython you must include a repository_dependencies.xml file declaring this as a dependency, e.g.:

<?xml version="1.0"?>
<repositories description="Requires Biopython as a dependency.">
  <repository name="package_biopython_1_61" owner="biopython" />
</repositories>

Also, in your tool XML file(s) you must include:

<requirements>
  <requirement type="package" version="1.61">biopython</requirement>
</requirements>

This will work on the main Tool Shed or the Test Tool Shed where it will refer to these packages:

Since it is a compile time requirement, the Biopython package itself will depend on NumPy, so you do not need to also declare that as an explicit dependency.

However, the package will not trigger the installation of optional packages such as ReportLab, MatPlotLib or NetworkX which parts of Biopython require.

So, if for example you are writing a Galaxy tool in Python using Biopython, MatPlotLib and SciPy you must explicitly declare them all as dependencies in your repository_dependencies.xml file, e.g.:

<?xml version="1.0"?>
<repositories description="Requires Biopython, MatPlotLib and SciPy.">
  <repository name="package_biopython_1_61" owner="biopython" />
  <repository name="package_matplotlib_1_2" owner="iuc" />
  <repository name="package_scipy_0_12" owner="iuc" />
</repositories>

And in your tool XML file(s) you would include:

<requirements>
  <requirement type="package" version="1.61">biopython</requirement>
  <requirement type="package" version="1.2.1">matplotlib</requirement>
  <requirement type="package" version="0.12.0">scipy</requirement>
</requirements>

This will work on the main Tool Shed refering to these packages (and similarly on the Test Tool Shed):

These additional dependencies are maintained by the IUC, or in full the "Intergalactic Utilities Commission" which is the tongue-in-check name of the Galaxy Tool Shed review team, see: http://wiki.galaxyproject.org/ReviewingToolShedRepositories

When looking for how to add further dependencies, search the Tool Shed for "Tool dependency definitions", and in particular look for those from the IUC:

For full details on how to define dependencies on the Galaxy Tool Shed, see http://wiki.galaxyproject.org/DefiningRepositoryDependencies