Skip to main content

Bon in a box to Galaxy tool converter

Bon in a box and Galaxy are two platforms for building and sharing scientific workflows. This tool helps developers migrate BiaB tools to Galaxy by automating part of the process. This tool doesn't handle every scenario, manual intervention is needed to get a functionning tool.

Features

  • Generation of Galaxy wrapper file based on a BiaB wrapper file
    • Generation of a Cheetah command
    • Generation of input parameters
    • Generation of output data and collections
    • Managing requirements
  • Creation of modified BiaB script adapted to Galaxy
    • Rewriting Biab dependant functions
    • Dealing with Biab special types (bbox, CRS, country, region...)
    • Detecting credentials variables
  • Adding a converted tool to the Galaxy's list of tools
  • Generation of a .shed.yml file

Requirements

  • local Galaxy instance (highly recommended)
  • python 3.12+

Installation:

pip install biab2galaxy

Usage

biab2galaxy [OPTIONS]

Options

  • -bw, --biab_wrapper : Path of the BiaB tool's wrapper file (.yml) to be converted.
  • -bs, --biab_script : Path of the BiaB tool's script file to be converted.
  • -gw, --galaxy_wrapper : Path where the generated Galaxy wrapper file (.xml) should be saved.
  • -gs, --galaxy_script : Path where the generated Galaxy script file should be saved.
  • -s, --shed : Path where the .shed.yml file should be saved.
  • -g, --galaxy [PATH] : Path to a Galaxy instance. Applies the necessary changes to that instance to use the generated tool (adds it to tool_conf.xml and generates a .shed.yml). If used without a value, the Galaxy instance path is guessed automatically.

Supported script languages: Python (.py), R (.R).

Requirements

  • --biab_wrapper is required to generate the Galaxy wrapper (--galaxy_wrapper) or the .shed.yml file (--shed).
  • --biab_script is required to generate the Galaxy script (--galaxy_script).
  • --biab_wrapper and --biab_script are both required to use --galaxy.

Examples

Convert a BiaB wrapper to a Galaxy wrapper:

biab2galaxy -bw tool.yml -bs tool.py -gw tool.xml

Convert both the wrapper and the script:

biab2galaxy -bw tool.yml -bs tool.py -gw tool.xml -gs tool.py

Generate a .shed.yml file alongside the wrapper:

biab2galaxy -bw tool.yml -bs tool.py -gw tool.xml -gs tool.py -s .shed.yml

Convert a tool and deploy it directly into a Galaxy instance:

biab2galaxy -bw tool.yml -bs tool.py -gw tool.xml -gs tool.py -g /path/to/galaxy

Same as above, but let the tool guess the Galaxy instance path from --galaxy_script:

biab2galaxy -bw tool.yml -bs tool.py -gw tool.xml -gs tool.py -g

Recommendations

Check the drafts of converted tools, you might find what you are looking for, if not you can contribute to it.

Review the file at ~/.config/biab2galaxy/type_to_extension.json to set which file extension corresponds to each MIME type.

What this converter can't do

  • Generate tests for the converted tools
  • Generate an appropriate tool description
  • Differentiate optional and required parameters
  • Find extension(s) for any Biab (MIME) type

Missing features

  • Handling of data_collection in outputs
  • Validator to check if the bounding box coordinates are valid (ex: xmin < xmax, ymin < ymax)
  • Julia scripts support
  • Fixed versions for default R dependencies
  • Fixed versions given to dependencies with no specified version
  • Robust R parser (the current one is based on regex)
  • Exhaustive mapping of file extensions to MIME types

Metadata

Release files for biab2galaxy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biab2galaxy 0.1.1
File Size Uploaded Provenance Actions
biab2galaxy-0.1.1.tar.gz 18.4 kB With provenance Details for biab2galaxy-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for biab2galaxy 0.1.1
File Interpreter ABI Platform Actions
biab2galaxy-0.1.1-py3-none-any.whl Python 3 none any Details for biab2galaxy-0.1.1-py3-none-any.whl

Total release size: 39.4 kB

Release files / biab2galaxy-0.1.1.tar.gz

Download URL biab2galaxy-0.1.1.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f2f8f8e38f3177f3805d199206a4be5e00fe389819f3cc78b181ac62881e836b
BLAKE2b-256 checksum
How to use checksums
aa15ba29b461fd9f243118c50eabfd61bdeb50436e60b3caa361064f546910f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / biab2galaxy-0.1.1-py3-none-any.whl

Download URL biab2galaxy-0.1.1-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f02454eacb325ed210e084f65612d1ff46c2fce5bae56a57fadd008f26e075e
BLAKE2b-256 checksum
How to use checksums
b615dc87772ad71f1b2491539ce868c827ba520f59274ca674f882656fa83115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Security for biab2galaxy 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for biab2galaxy-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page