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 Biab wrapper file
    • Generation of a Cheetah command
    • Generation of input parameters
    • Generation of output data and collecions
    • Managing requirements
  • Creation of modified Biab script adapted to Galaxy
    • Rewriting Biab dependant functions
    • Deadling 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

Flag Description
-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.0

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.0
File Size Uploaded Provenance Actions
biab2galaxy-0.1.0.tar.gz 18.2 kB With provenance Details for biab2galaxy-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 38.9 kB

Release files / biab2galaxy-0.1.0.tar.gz

Download URL biab2galaxy-0.1.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ad24e32a8ec89800caa827baa0e56438a77f0d415b434f2edb05a3aa77923829
BLAKE2b-256 checksum
How to use checksums
e1b32840868e619241266fb27975386bbec3551ba0b26dace6b0986d82863235
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 17, 2026.

Transparency log

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

Download URL biab2galaxy-0.1.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c55927f8a7505dfc5b0d8f2d897754586deffd0faa9c3bc0e9f18d745dc0fc54
BLAKE2b-256 checksum
How to use checksums
6a514e7f163a2a5591caf0033a9acb81e9b125146349319053c0ad5bff970d0f
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 17, 2026.

Transparency log

Security for biab2galaxy 0.1.0

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.0.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 17, 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