6
votes

I have a long snakemake workflow processing 9 samples with many parallel rules. When I create a picture for the DAG with:

snakemake --forceall --dag | dot -Tpdf > dag.pdf

the resulting dag plot is huge and very redundant (and ugly because of complex node placement).

Is it possible to produce a canonical dag plot that will not show the 9 nodes for each task but only the main path through all steps?

I thought od simplifying my sample list to one sample but hope there is a better method without touching the snakefile (secret parameters?)

Thanks

1

1 Answers

11
votes

Use the flag --rulegraph instead of --dag.