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.10.tar.gz
(52.9 kB
view hashes)
Built Distributions
dry_pipe-0.0.10-py3.8.egg
(157.8 kB
view hashes)
dry_pipe-0.0.10-py3-none-any.whl
(60.5 kB
view hashes)
Close
Hashes for dry_pipe-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5ace80088909bb53c77159e9e9bbc703ec54ff5f4a207497f27f7ae2c72a040 |
|
MD5 | 0a00a508d163d06a21e1f4c92e73e5a5 |
|
BLAKE2b-256 | 8bb6f2d65b6e59735730db4845da1b1f1e3a05173e7e329c62c52a69ad8ae5d3 |