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 introduction and installation notes , a short 5 minute 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.0.1beta2

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

Source distributions (sdists)

Source distribution for ruffus 2.0.1beta2
File Size Uploaded Provenance
ruffus-2.0.1beta2.zip 2.2 MB Without provenance Details
ruffus-2.0.1beta2.tar.gz 2.2 MB Without provenance Details

Release files / ruffus-2.0.1beta2.zip

Download URL ruffus-2.0.1beta2.zip
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
6c8f830007acb93940e6d17e07c7fa4814ef4356ecba3a9e8e3f0cb9f3179403
BLAKE2b-256 checksum
How to use checksums
ae199928536e40fb4b3416933abc07b95991128af796eb0c55a7aee2974607ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ruffus-2.0.1beta2.tar.gz

Download URL ruffus-2.0.1beta2.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
9a9013d20c4fb407b48977418a36c7071af3982d58be2ebc54a1b38c2f4aef79
BLAKE2b-256 checksum
How to use checksums
fdda2522aa791cf373cd4580e3446519ef53be090dced9f7ee710f1bfa3e8ce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ruffus 2.0.1beta2

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