ruffus 2.2
Light-weight Python Computational Pipeline Management
Downloads ↓ | Package Documentation
Overview
The ruffus module is a lightweight way to add support for running computational pipelines.
Computational pipelines are often conceptually quite simple, especially if we breakdown the process into simple stages, or separate tasks.
Each stage or task in a computational pipeline is represented by a python function Each python function can be called in parallel to run multiple jobs.
Ruffus was originally designed for use in bioinformatics to analyse multiple genome data sets.
Documentation
Ruffus documentation can be found here , with an download notes , a short tutorial and an in-depth tutorial .
Background
The purpose of a pipeline is to determine automatically which parts of a multi-stage process needs to be run and in what order in order to reach an objective ("targets")
Computational pipelines, especially for analysing large scientific datasets are in widespread use. However, even a conceptually simple series of steps can be difficult to set up and to maintain, perhaps because the right tools are not available.
Design
The ruffus module has the following design goals:
- Simplicity. Can be picked up in 10 minutes
- Elegance
- Lightweight
- Unintrusive
- Flexible/Powerful
Features
Automatic support for
- Managing dependencies
- Parallel jobs
- Re-starting from arbitrary points, especially after errors
- Display of the pipeline as a flowchart
- Reporting
A Simple example
Use the @follows(...) python decorator before the function definitions:
from ruffus import * import sys def first_task(): print "First task" @follows(first_task) def second_task(): print "Second task" @follows(second_task) def final_task(): print "Final task"the @follows decorator indicate that the first_task function precedes second_task in the pipeline.
Usage
Each stage or task in a computational pipeline is represented by a python function Each python function can be called in parallel to run multiple jobs.
Import module:
import ruffus
Annotate functions with python decorators
Print dependency graph if you necessary
For a graphical flowchart in jpg, svg, dot, png, ps, gif formats:
graph_printout ( open("flowchart.svg", "w"), "svg", list_of_target_tasks)This requires dot to be installed
For a text printout of all jobs
pipeline_printout(sys.stdout, list_of_target_tasks)Run the pipeline:
pipeline_run(list_of_target_tasks, [list_of_tasks_forced_to_rerun, multiprocess = N_PARALLEL_JOBS])
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| ruffus-2.2.tar.gz (md5) | Source | 2010-07-21 | 5MB | 665 | |
| ruffus-2.2.zip (md5) | Source | 2010-07-22 | 5MB | 489 | |
- Author: Leo Goodstadt
- Documentation: ruffus package documentation
- Home Page: http://ruffus.googlecode.com
- Keywords: make task pipeline parallel bioinformatics science
- License: MIT
-
Categories
- Development Status :: 5 - Production/Stable
- Environment :: Console
- Intended Audience :: Developers
- Intended Audience :: End Users/Desktop
- Intended Audience :: Information Technology
- Intended Audience :: Science/Research
- License :: OSI Approved :: MIT License
- Programming Language :: Python
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: Bio-Informatics
- Topic :: Software Development :: Build Tools
- Topic :: Software Development :: Build Tools
- Topic :: Software Development :: Libraries
- Topic :: System :: Distributed Computing
- Package Index Owner: bunbun
- DOAP record: ruffus-2.2.xml
