Skip to main content

bioscons

This package extends the scons build tool for the construction of reproducible workflows in bioinformatics.

This project is in fairly early stages of development, although I have been using scons to create workflows using an earlier version of this package for some time.

Background

Why does SCons make sense for reproducible bioinformatics pipelines?

  • SCons has a sophisticated mechanism for determining dependencies, meaning that re-running SCons will only re-execute steps needing updating

  • Most of the work of pipelines is done by external programs, and SCons is explicitly designed to make it easy to run external programs

  • On the other hand, SCons also allows the execution of arbitrary python code in creating your script, and thus one can leverage the power of the python standard library, Biopython, NumPy, etc in your script.

  • Rather than dealing with a mess of filenames, subsequent steps in an SCons build are expressed in terms of file objects

  • Steps in the pipeline are implemented using objects called “builders,” which implement a shell command or a python command in a in a way that consistently channels inputs into outputs

  • Provides multiple mechanisms for cleanly executing isolated steps of the workflow

  • SCons validates files and can fail incrementally

Alternative tools

make

Make is a classic and everywhere, but getting make to do complex things requires specialized (and often opaque) syntax

ruffus

ruffus is a lightweight way to automate bioinformatics pipelines. It also supports incremental recalculation. It does not, however, provide assistance for executing shell commands or managing files, and these must be done with explict sytem calls on “hand-built” strings.

galaxy

galaxy is a web-based tool for building remotely-executed workflows. This is a hugely attractive framework for exposing complex workflows using a graphical-interface, but occupies a very different niche from this project (which provides a command line interface to locally-executed programs).

Documentation

Documentation is available on github: http://nhoffman.github.com/bioscons/

Installation

PyPi

Make sure to update the __version__ variable in the bioscons/__init__.py file.

If you have not done so create a ~/.pypirc file:

python setup.py register

Proceed to build and upload:

python setup.py clean
python setup.py sdist bdist_wheel
twine upload dist/*

dependencies

scons

Development of this project begin using the 1.x version of scons, and seems to work so far using version 2.x. Future development will focus on version 2.x.

source

Obtain the source code from github. For read-only access:

git clone git://github.com/nhoffman/bioscons.git

For committers:

git clone git@github.com:nhoffman/bioscons.git

Then install:

cd bioscons
python setup.py install

Metadata

Release files for bioscons 0.7

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

Source distribution (sdist)

Source distribution for bioscons 0.7
File Size Uploaded Provenance Actions
bioscons-0.7.tar.gz 19.9 kB Without provenance Details for bioscons-0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bioscons 0.7
File Interpreter ABI Platform Actions
bioscons-0.7-py2-none-any.whl Python 2 none any Details for bioscons-0.7-py2-none-any.whl

Total release size: 44.6 kB

Release files / bioscons-0.7.tar.gz

Download URL bioscons-0.7.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0943b6ac13ee2547675dd4533e63bae4d37a0033f2379d3064c38a3c87cf15ed
BLAKE2b-256 checksum
How to use checksums
364b2a96dd49bbf7ebc8ae6c36b4ff297f42eb8f0f9bfaea4c58c6c0efa102cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bioscons-0.7-py2-none-any.whl

Download URL bioscons-0.7-py2-none-any.whl
Size 24.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
9823dee7dd643abdb9ce4060e25fb59e5877dbea0ef1317e372ce42119293257
BLAKE2b-256 checksum
How to use checksums
3b547ad838081d20f4e1f754f345fdaf60045fce92235394ff5281d18169447e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bioscons 0.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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