Skip to content

v0.4.0

2026-02-19 · GitHub release · Diff

nf-metro can now import Mermaid files produced by Nextflow’s --with-dag flag directly, without manual editing. The importer detects unsupported DAG constructs and reports them clearly.

Terminal window
nextflow run mypipeline.nf --with-dag dag.mmd
nf-metro render dag.mmd -o pipeline.svg

Nextflow DAG files use a flat graph (no subgraphs), so the auto-layout engine places sections automatically.

Rendered map
Preprocess / Alignment / Variant Calling Pipeline 1 2 3 4 Bwa Index Gatk Haplotypeca Deepvariant Fastqc Multiqc Fastp Bwa Mem Bcftools Stats Samtools Sort Samtools Index Main Preprocess - Reporting created with nf-metro v1.1.0+dev
Rendered map
Preprocess / Alignment / Quantification Pipeline 1 2 3 4 Star Genomegener Fastqc Salmon Quant Multiqc Trimgalore Star Align Samtools Sort Samtools Index Main Alignment - Reporting Preprocess - Reporting Spur created with nf-metro v1.1.0+dev

Lines that skip over one or more sections now route below those sections rather than diagonally through them, keeping bypasses visually separate from the section content they skip.

Rendered map
Around Section Below 3 2 1 Input Process Process Output Output Output A B created with nf-metro v1.1.0+dev

%%metro line_order: span sorts lines in the legend by their total span across the graph.

Stations prefixed with _ are hidden during rendering but still participate in layout. Useful for routing control points that shouldn’t appear as stations on the final map.

  • Minimum inter-section gap enforced for smooth bypass corners
  • Separate bypass routes sharing the same inter-column gap
  • Uniform corner radius for bypass U-shape routes
  • Bypass gap1 vertical shifted toward source for section clearance
  • Terminus stations nudged away from passing lines
  • Vertical centering of section content
  • Empty subgraphs (containing only edges) handled correctly
  • A fix-issue Claude Code skill added for maintainer workflow