ruffus


Nameruffus JSON
Version 2.8.4 PyPI version JSON
download
home_pagehttp://www.ruffus.org.uk
SummaryLight-weight Python Computational Pipeline Management
upload_time2020-04-24 19:58:08
maintainer
docs_urlNone
authorLeo Goodstadt
requires_python
licenseMIT
keywords make task pipeline parallel bioinformatics science
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            
***************************************
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 <http://www.ruffus.org.uk>`__ ,
    with `download notes <http://www.ruffus.org.uk/installation.html>`__ ,
    a `tutorial <http://www.ruffus.org.uk/tutorials/new_tutorial/introduction.html>`__ and
    an `in-depth manual <http://www.ruffus.org.uk/tutorials/new_tutorial/manual_contents.html>`__ .


***************************************
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()



            

Raw data

            {
    "_id": null,
    "home_page": "http://www.ruffus.org.uk",
    "name": "ruffus",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "make task pipeline parallel bioinformatics science",
    "author": "Leo Goodstadt",
    "author_email": "ruffus_lib@llew.org.uk",
    "download_url": "https://files.pythonhosted.org/packages/3b/d1/154a08615b33bb66c37fa998490a811870355331b696140f125983890efa/ruffus-2.8.4.tar.gz",
    "platform": "",
    "description": "\n***************************************\nOverview\n***************************************\n\n\n    The Ruffus module is a lightweight way to add support\n    for running computational pipelines.\n\n    Computational pipelines are often conceptually quite simple, especially\n    if we breakdown the process into simple stages, or separate **tasks**.\n\n    Each stage or **task** in a computational pipeline is represented by a python function\n    Each python function can be called in parallel to run multiple **jobs**.\n\n    Ruffus was originally designed for use in bioinformatics to analyse multiple genome\n    data sets.\n\n***************************************\nDocumentation\n***************************************\n\n    Ruffus documentation can be found `here <http://www.ruffus.org.uk>`__ ,\n    with `download notes <http://www.ruffus.org.uk/installation.html>`__ ,\n    a `tutorial <http://www.ruffus.org.uk/tutorials/new_tutorial/introduction.html>`__ and\n    an `in-depth manual <http://www.ruffus.org.uk/tutorials/new_tutorial/manual_contents.html>`__ .\n\n\n***************************************\nBackground\n***************************************\n\n    The purpose of a pipeline is to determine automatically which parts of a multi-stage\n    process needs to be run and in what order in order to reach an objective (\"targets\")\n\n    Computational pipelines, especially for analysing large scientific datasets are\n    in widespread use.\n    However, even a conceptually simple series of steps can be difficult to set up and\n    maintain.\n\n***************************************\nDesign\n***************************************\n    The ruffus module has the following design goals:\n\n        * Lightweight\n        * Scalable / Flexible / Powerful\n        * Standard Python\n        * Unintrusive\n        * As simple as possible\n\n***************************************\nFeatures\n***************************************\n\n    Automatic support for\n\n        * Managing dependencies\n        * Parallel jobs, including dispatching work to computational clusters\n        * Re-starting from arbitrary points, especially after errors (checkpointing)\n        * Display of the pipeline as a flowchart\n        * Managing complex pipeline topologies\n\n\n***************************************\nA Simple example\n***************************************\n\n        Use the **@follows(...)** python decorator before the function definitions::\n\n            from ruffus import *\n            import sys\n\n            def first_task():\n                print \"First task\"\n\n            @follows(first_task)\n            def second_task():\n                print \"Second task\"\n\n            @follows(second_task)\n            def final_task():\n                print \"Final task\"\n\n\n\n\n        the ``@follows`` decorator indicate that the ``first_task`` function precedes ``second_task`` in\n        the pipeline.\n\n        The canonical Ruffus decorator is ``@transform`` which **transforms** data flowing down a\n        computational pipeline from one stage to teh next.\n\n********\nUsage\n********\n\n    Each stage or **task** in a computational pipeline is represented by a python function\n    Each python function can be called in parallel to run multiple **jobs**.\n\n    1. Import module::\n\n            import ruffus\n\n\n    1. Annotate functions with python decorators\n\n    2. Print dependency graph if you necessary\n\n        - For a graphical flowchart in ``jpg``, ``svg``, ``dot``, ``png``, ``ps``, ``gif`` formats::\n\n            pipeline_printout_graph (\"flowchart.svg\")\n\n        This requires ``dot`` to be installed\n\n        - For a text printout of all jobs ::\n\n            pipeline_printout(sys.stdout)\n\n\n    3. Run the pipeline::\n\n        pipeline_run()\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Light-weight Python Computational Pipeline Management",
    "version": "2.8.4",
    "project_urls": {
        "Download": "https://github.com/cgat-developers/ruffus",
        "Homepage": "http://www.ruffus.org.uk"
    },
    "split_keywords": [
        "make",
        "task",
        "pipeline",
        "parallel",
        "bioinformatics",
        "science"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3bd1154a08615b33bb66c37fa998490a811870355331b696140f125983890efa",
                "md5": "ba9c019ad3f7216c6f3269e6577adb61",
                "sha256": "6cd3d96e459a1aedcc10341f14fddedfdc13664551757fcd429a241de63826aa"
            },
            "downloads": -1,
            "filename": "ruffus-2.8.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ba9c019ad3f7216c6f3269e6577adb61",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12147217,
            "upload_time": "2020-04-24T19:58:08",
            "upload_time_iso_8601": "2020-04-24T19:58:08.799423Z",
            "url": "https://files.pythonhosted.org/packages/3b/d1/154a08615b33bb66c37fa998490a811870355331b696140f125983890efa/ruffus-2.8.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-04-24 19:58:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cgat-developers",
    "github_project": "ruffus",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "ruffus"
}
        
Elapsed time: 0.23344s