add message for dag rule

This commit is contained in:
Fabian Neumann 2023-03-08 18:45:11 +01:00
parent 76dcf43993
commit 6763dbaacc

View File

@ -69,14 +69,15 @@ rule purge:
rule dag: rule dag:
output: message: "Creating DAG of workflow."
dot=RESOURCES + "dag.dot", output:
pdf=RESOURCES + "dag.pdf", dot=RESOURCES + "dag.dot",
png=RESOURCES + "dag.png" pdf=RESOURCES + "dag.pdf",
conda: "envs/environment.yaml" png=RESOURCES + "dag.png"
shell: conda: "envs/environment.yaml"
""" shell:
snakemake --rulegraph all | sed -n "/digraph/,\$p" > {output.dot} """
dot -Tpdf -o {output.pdf} {output.dot} snakemake --rulegraph all | sed -n "/digraph/,\$p" > {output.dot}
dot -Tpng -o {output.png} {output.dot} dot -Tpdf -o {output.pdf} {output.dot}
""" dot -Tpng -o {output.png} {output.dot}
"""