slitherFlow
¶
Subway maps for Snakemake pipelines.
slitherFlow turns a Snakemake pipeline into a subway-map figure, in the style of the nf-core pipeline diagrams. It reads your pipeline's rule graph, writes a first draft of the map as a YAML file, and draws it as an SVG (plus PNG or PDF if you want them). You then edit the YAML until the map is to your liking.
The GDSC miRNA-seq pipeline, drawn with slitherFlow. Click to enlarge.
What slitherFlow does¶
-
Drafts the map for you
From your pipeline's rule graph, with no setup.
-
Shows every optional step
With
--scanor whatever your pipeline config passes. -
Keeps maps as plain YAML
So the map is fully flexible and customizable.
-
Writes SVG, PNG, and PDF
With fully editable vector text.
-
Draws light or dark maps
Or an SVG that follows the viewer's setting, for READMEs and websites.
-
Previews as you edit
A live view in your browser that redraws every time you save the YAML.
-
Works from Python
Draw maps in a notebook and see them inline.
In four commands¶
pixi global install -c conda-forge -c bioconda --git https://github.com/mikemartinez99/slitherFlow.git --expose slitherflow
slitherflow auto /path/to/my-pipeline --png # draft a map
slitherflow preview my-pipeline_subway.yaml # edit the YAML with a live view in your browser
slitherflow render my-pipeline_subway.yaml --png # draw the final map
No pixi? See Installation for installing with pip.
Where to next¶
- Installation: install slitherFlow and the optional tools it uses.
- Quick start: draw your first map, or try the bundled example.
- Customizing your map: rename steps, add tools and outputs, connect lines, change colours, switch to dark mode.
- Python and notebooks: draw and tweak maps from Python or Jupyter.
- Commands: every command and option, including the live preview.
- Spec reference: every option the YAML file accepts.
- Citing slitherFlow: how to cite it, who helped build it, and its license.
