Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

  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:

      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)
  3. Run the pipeline:

    pipeline_run(list_of_target_tasks, [list_of_tasks_forced_to_rerun, multiprocess = N_PARALLEL_JOBS])

Metadata

Release files for ruffus 2.4beta3

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

Source distribution (sdist)

Source distribution for ruffus 2.4beta3
File Size Uploaded Provenance
ruffus-2.4beta3.tar.gz 81.8 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for ruffus 2.4beta3
File Interpreter ABI Platform
ruffus-2.4beta3-py2.7.egg Legacy Egg format - - Details
ruffus-2.4beta3-py2.6.egg Legacy Egg format - - Details

Total release size: 438.3 kB

Release files / ruffus-2.4beta3.tar.gz

Download URL ruffus-2.4beta3.tar.gz
Size 81.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9acbdbc3886ffeb2dfc46e190e878d5590292cc14f35896e32fb14049dc44a30
BLAKE2b-256 checksum
How to use checksums
3ff504a530205e7d69edcdec5a65684906626a419aef7e12a1b5984add9b86d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ruffus-2.4beta3-py2.7.egg

Download URL ruffus-2.4beta3-py2.7.egg
Size 177.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
71dfaf17a3ea3085043c2dda089bfa5f7454bd6cd1ce2c77a2bed8834c37ca15
BLAKE2b-256 checksum
How to use checksums
7b6f11d294ccad622a746af801e87c21988b0abdc0bd61b4ace46cfdea7e5ac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ruffus-2.4beta3-py2.6.egg

Download URL ruffus-2.4beta3-py2.6.egg
Size 178.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
7d4014c43459be599b676c45092927aba215660fb60d6caf9695a53c18817f6e
BLAKE2b-256 checksum
How to use checksums
b6db0c7a5cd77dc1ed01dab4c3b9b252f21f065b2bdca509d372589b80f45289
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ruffus 2.4beta3

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.

Release history Release notifications | RSS feed

This release
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