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.2.16.tar.gz
(1.3 MB
view hashes)
Built Distribution
Close
Hashes for dry_pipe-0.2.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6fd03d93a0604d67a7d9d4d470ac9924dac425d0460abcabb5bff70b6dbbc0 |
|
MD5 | 33f70c118ecd46479a0b4ac3055a08c9 |
|
BLAKE2b-256 | 64f7d54cdb20e073eb7e6871edf2a32be6ac691fd53256a8dd8c5467cab39ca8 |