Skip to content

Commit

Permalink
feat(snakemake): produce DAG of run
Browse files Browse the repository at this point in the history
Add step to pipeline to produce a DAG of the pipeline. As a workflow
manager is already in use (Snakemake), there is no reason not to make it
self documenting.
  • Loading branch information
rbpatt2019 committed Jun 11, 2021
1 parent 5c34730 commit 27d420c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,19 @@ RESULTS = config["results_dir"]

rule all:
input:
RESULTS + "dag.png",
RESULTS + "process/sorted_isoforms.xlsx",

rule dag:
output:
dag = RESULTS + "dag.png",
conda:
ENVS + "dag.yml"
shell:
"snakemake -np --dag &> /dev/null | "
"dot -Tpng "
"> {output.dag}"

rule ids:
params:
url = config["gencode_url"],
Expand Down
7 changes: 7 additions & 0 deletions environments/dag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: mane
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- snakemake==6.4.0

0 comments on commit 27d420c

Please sign in to comment.