Customizing your map¶
To customize the map, edit the YAML file and re-render it:
The examples below take pieces of the miRNA-seq draft and improve them. For every option, see the spec reference.
Edit with a live preview
Instead of re-rendering after every change, open a live view of the map:
It opens in your browser and redraws every time you save the YAML. It lists any overlaps, or the error in the spec if there is one. Point at the map to read off the x and row there, and click to copy x: <number>, ready to paste into a station. Press Ctrl-C in the terminal to stop it.
Rename steps and add tools¶
Every station has a name and a tool. The tool is shown in smaller grey text under the name.
isomirs:
name: "Isomir quantification" # the name shown in the legend
row: 1
stations:
- {name: "Collapse reads", tool: "seqcluster"}
- {name: "Hairpin alignment", tool: "Bowtie"}
- {name: "Isomir annotation", tool: "miRtop"}
You can rename line IDs too (line2 → isomirs). Just update every place that refers to them.
Show output files¶
Add outputs to a station to draw a file icon connected to it:
If an icon lands in an awkward spot, nudge it with dx and dy.
Mark optional steps¶
A station with optional: true is drawn with a dashed circle. A line with optional: true is drawn dashed, and "(optional)" is added to its legend entry.
- {name: "PCA", tool: "R", optional: true}
fastqc_config:
name: "FastQC config"
optional: true
from: input # starts from the raw input instead of the trunk
row: 1.6
stations: [{name: "Make config", tool: "Python"}]
Change colours¶
Lines use the colour-blind-friendly Okabe-Ito palette by default. To recolour every line at once, pick another palette (or list your own colours):
To try one without editing the spec, use slitherflow render my-pipeline_subway.yaml --palette tol-vibrant.
Here's the CUT&RUN draft in each palette:






okabe-ito, the tol- palettes and ibm are colour-blind safe; tab10 isn't. See Colour palettes for every colour in each one.
Set color on a line to give just that line its own colour:
Dark mode¶
Pick a theme for everything that isn't a line (the background, stations, labels and icons):
or set it on the command line, which wins over the spec:


| Theme | What it does |
|---|---|
light |
Dark text on white. The default. |
dark |
Light text on GitHub's dark background. PNG and PDF come out dark too. |
auto |
Follows the viewer's light or dark setting, in a browser or on GitHub. Only the SVG can switch; PNG and PDF come out light. |
Use auto for a map in a README or on a website, so it matches the page around it. On GitHub, show the SVG rather than the PNG:
Note
The last colour in the default okabe-ito palette is black, which doesn't show up on a dark background. On a dark map with eight or more lines, give that line its own color, or pick another palette.
Branches¶
A branch splits off a station partway along another line. It uses its parent line's colour and legend entry, unless you give it its own name and color.
mature:
from: {line: genome, station: "miRBase alignment"}
row: -0.6
stations: [{name: "Mature stats", tool: "samtools"}]
Connect lines together¶
By default a line just stops at its last station. Use to to send it somewhere:
to: terminus: the line runs into the end station.to: {line: peaks, station: "Peak filtering"}: the line joins a station on another line.
When a step also feeds into a station on a different line, add feeds to that step. This one is from the CUT&RUN draft, where the filtered alignments also go straight into the FRiP calculation:
The end station¶
The terminus is the big station at the right edge of the map, usually something like a MultiQC report. Add file to give it an output icon:
Titles, notes and style¶
title: "GDSC miRNA-seq pipeline"
subtitle: "v1.0 · Snakemake"
input: {label: "Input", sublabel: "Single-end", file: "FASTQ"}
footnote: "PCA runs only when there are enough samples."
style: {font: "Helvetica", line_width: 8}
Before and after¶
For a complete before-and-after, compare the CUT&RUN draft (cutrun_draft.yaml) with the finished map (cutrun.yaml).

