Skip to content

Out Of Section Retag Fan

A section's symmetric dead-end fan (Salmon peels up, Split strand to Genome cov runs straight, Coverage peels down) stays intact even though Salmon sends two lines off to a downstream section on IDs used nowhere inside the section. Fan eligibility keys off the lines that traverse the section's own trunk, not the raw union crossing its ports, so a downstream-only retag never disqualifies the fan.

Mermaid source
examples/topologies/out_of_section_retag_fan.mmd
%%metro title: Out-of-section retag preserves in-section fan
%%metro diamond_style: symmetric
%%metro file: cov_out | BW | Coverage
%%metro line: a | A | #e6007e
%%metro line: b | B | #2db572
%%metro line: c | C | #2b6cb0
%%metro line: x | X | #f2a900
%%metro line: y | Y | #7c3aed
%%metro grid: input | 0,0
%%metro grid: secA | 1,0
%%metro grid: secB | 2,0
graph LR
subgraph input [Align]
%%metro exit: right | a, b, c
dedup[Dedup]
end
subgraph secA [Quant]
%%metro entry: left | a, b, c
s_split[Split strand]
s_gc[Genome cov]
s_peel[Salmon]
s_split -->|a,b,c| s_gc
s_gc -->|a,b,c| cov_out
end
subgraph secB [TE]
te[TE]
end
dedup -->|a,b,c| s_split
dedup -->|a,b,c| s_peel
s_gc -->|a,b,c| te
s_peel -->|x,y| te
CLI command
Terminal window
nf-metro render examples/topologies/out_of_section_retag_fan.mmd -o out_of_section_retag_fan.svg
Rendered map
Out-of-section retag preserves in-section fan 1 2 3 BW Coverage Split strand Salmon Dedup TE Genome cov A B C X Y created with nf-metro v2.0.0+dev