Skip to content

Render Labelwrap Row Gap

A QC section whose lower row crowds `sambamba markdup` against `RNA-SeQC` and a dir-icon terminus. The two-word name wraps at its space onto `sambamba` / `markdup` rather than splitting mid-word into a hyphen the tool name never carried (issue #1768), while single-token `RNA-SeQC` stays whole on one line. That wrap clears the crowding on its own: the spacing search widens neither the column nor the row pitch, and the QC box is drawn at the depth layout reserved for it, so the sections stacked below it keep their gap without being pushed down.

Mermaid source
examples/topologies/render_labelwrap_row_gap.mmd
%%metro title: label-wrap row gap
%%metro style: dark
%%metro dir: metrics_out | RNA-SeQC
%%metro file: sexcheck_out | TSV | Sex check
%%metro line: qc | QC | #e6550d
%%metro line: quant | Quantification | #0570b0
%%metro line: fusion | Fusion detection | #38b927
graph LR
subgraph align_sec [Alignment]
reads_in[ ]
bbduk[BBDuk trim]
star[STAR 2-pass]
cram_out[ ]
reads_in -->|qc,quant,fusion| bbduk
bbduk -->|qc,quant,fusion| star
star -->|qc,quant,fusion| cram_out
end
subgraph qc_sec [QC]
flagstat[flagstat + mosdepth]
markdup[sambamba markdup]
rnaseqc[RNA-SeQC]
sexcheck_out[ ]
metrics_out[ ]
star -->|qc| flagstat
flagstat -->|qc| sexcheck_out
star -->|qc| markdup
markdup -->|qc| rnaseqc
rnaseqc -->|qc| metrics_out
end
subgraph quant_sec [Quantification]
rsem[RSEM]
geneann[Gene annotation]
expr_out[ ]
star -->|quant| rsem
rsem -->|quant| geneann
geneann -->|quant| expr_out
end
subgraph fusion_sec [Fusion detection]
arriba[Arriba]
starfusion[STAR-Fusion]
fusions_out[ ]
star -->|fusion| arriba
arriba -->|fusion| starfusion
starfusion -->|fusion| fusions_out
end
CLI command
Terminal window
nf-metro render examples/topologies/render_labelwrap_row_gap.mmd -o render_labelwrap_row_gap.svg
Rendered map
label-wrap row gap 1 2 3 4 TSV Sex check RNA-SeQC flagstat + mosdepth sambambamarkdup RSEM Arriba BBDuk trim RNA-SeQC Gene annotation STAR-Fusion STAR 2-pass QC Quantification Fusion detection created with nf-metro v2.0.0+dev