Skip to main content

A Python DSL for bioinformatics pipelines

Project description

DryPipe

A Python DSL for bioinformatics pipelines

Getting Started

1 Install dry-pipe in your virtualenv

    pyton3.8 -m venv your_venv 
    source your_venv/bin/activate
    pip install dry-pipe

2 Write your pipeline

    from dry_pipe import DryPipe
    
    def my_pipeline_task_generator(dsl):
        yield dsl.task(key="task1") 
            .consumes(x=dsl.val(123)) 
            .produces(result=dsl.file("f.txt"))
            .calls("""
                #!/usr/bin/env bash                
                echo $x > $result
            """)
        
    def my_pipeline():
        return DryPipe.create_pipeline(my_pipeline_task_generator)

3 Run it

(assuming the above code is in module my_module.py)

    drypipe run --pipeline='my_module:my_pipeline'

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

dry_pipe-0.0.8.tar.gz (52.5 kB view hashes)

Uploaded Source

Built Distributions

dry_pipe-0.0.8-py3.8.egg (156.7 kB view hashes)

Uploaded Source

dry_pipe-0.0.8-py3-none-any.whl (60.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page