Skip to content

slitherFlow slitherFlow logo

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.

Subway map of the GDSC miRNA-seq pipeline: isomiR, alignment, QC, UMI and spike-in lines run from the input FASTQ to a MultiQC report

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 --scan or 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