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. Muting reaches the interchange the two optional routes share and the banner file icon they end at, both greyed to match. 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
%%metro marker: sortmerge | square, #6a4c93
%%metro interchange: sortmerge | salmon | sv
%%metro files: sv_vcf | VCF | | banner
graph LR
reads[Reads]
qc[QC]
star_align[STAR]
salmon_align[Salmon]
sortmerge[Samtools sort]
manta[Manta]
quant[tximport]
sv_vcf[ ]
report[MultiQC]
reads -->|star,salmon| qc
qc -->|star| star_align
qc -->|salmon| salmon_align
star_align -->|star| quant
star_align -->|sv| sortmerge
salmon_align -->|salmon| sortmerge
sortmerge -->|salmon| quant
sortmerge -->|sv| manta
manta -->|sv| sv_vcf
quant -->|star,salmon| report
CLI command
Terminal window
nf-metro render examples/inactive_lines.mmd -o inactive_lines.svg
Rendered map
Inactive Lines VCF Reads QC STAR Salmon Samtools sort tximport Manta MultiQC STAR alignment (default) Salmon pseudo-alignment (inactive) Structural variants (inactive) created with nf-metro v2.0.0+dev