This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Light-weight Python Computational Pipeline Management

Project Description

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 download notes , a tutorial and an in-depth manual .

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 maintain.

Design

The ruffus module has the following design goals:

  • Lightweight
  • Scalable / Flexible / Powerful
  • Standard Python
  • Unintrusive
  • As simple as possible

Features

Automatic support for

  • Managing dependencies
  • Parallel jobs, including dispatching work to computational clusters
  • Re-starting from arbitrary points, especially after errors (checkpointing)
  • Display of the pipeline as a flowchart
  • Managing complex pipeline topologies

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.

The canonical Ruffus decorator is @transform which transforms data flowing down a computational pipeline from one stage to teh next.

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.

  1. Import module:

    import ruffus
    
  1. Annotate functions with python decorators

  2. Print dependency graph if you necessary

    • For a graphical flowchart in jpg, svg, dot, png, ps, gif formats:

      pipeline_printout_graph ("flowchart.svg")
      

    This requires dot to be installed

    • For a text printout of all jobs

      pipeline_printout(sys.stdout)
      
  3. Run the pipeline:

    pipeline_run()
    
Release History

Release History

This version
History Node

2.6.3

History Node

2.6.2

History Node

2.6.1

History Node

2.6

History Node

2.5

History Node

2.5rc

History Node

2.4.1

History Node

2.4

History Node

2.4beta3

History Node

2.2

History Node

2.1.0

History Node

2.0.10

History Node

2.0.9

History Node

2.0.8

History Node

2.0.7

History Node

2.0.6

History Node

2.0.3

History Node

2.0.1

History Node

2.0.1b3

History Node

2.0.1beta2

History Node

1.1.5b

History Node

1.1.4

History Node

1.1.3b

History Node

1.1.3a

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

History Node

2.4prerelease

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ruffus-2.6.3.tar.gz (36.9 MB) Copy SHA256 Checksum SHA256 Source Apr 21, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting