Skip to content

Instantly share code, notes, and snippets.

@TomHarrop
Created August 4, 2020 02:03
Show Gist options
  • Save TomHarrop/3030f5e1957f6cdda799444194a83efb to your computer and use it in GitHub Desktop.
Save TomHarrop/3030f5e1957f6cdda799444194a83efb to your computer and use it in GitHub Desktop.
Snakemake dag/rulegraph without printing target
#!/usr/bin/env bash
snakemake \
--dag \
--forceall \
| grep -v "^[[:space:]+]0" | grep -v "\->[[:space:]]0" \
| dot -Tsvg \
> graph.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment