Skip to content

Inactive Lines

Grey out optional routes to highlight what actually ran. The two optional subworkflows carry the `inactive` fifth field on their `%%metro line:` directive, so they (and the stations, labels, and legend swatches only they touch) render muted while the default STAR path stays full colour. Override per-render with `--inactive-lines` (an empty value forces every line active).

Mermaid source
examples/inactive_lines.mmd
%%metro title: Inactive Lines
%%metro style: nfcore
%%metro line: star | STAR alignment (default) | #2db572
%%metro line: salmon | Salmon pseudo-alignment (inactive) | #ff8c00 | solid | inactive
%%metro line: sv | Structural variants (inactive) | #e63946 | dashed | inactive
graph LR
reads[Reads]
qc[QC]
star_align[STAR]
salmon_align[Salmon]
manta[Manta]
quant[tximport]
report[MultiQC]
reads -->|star,salmon| qc
qc -->|star| star_align
qc -->|salmon| salmon_align
star_align -->|star| quant
salmon_align -->|salmon| quant
star_align -->|sv| manta
manta -->|sv| report
quant -->|star,salmon| report
CLI command
Terminal window
nf-metro render examples/inactive_lines.mmd -o inactive_lines.svg
Rendered map
Inactive Lines Reads QC STAR Salmon tximport Manta MultiQC STAR alignment (default) Salmon pseudo-alignment (inactive) Structural variants (inactive) created with nf-metro v2.0.0+dev