Skip to content

Reversed Section Junction Reseat

A two-line bundle drops near-vertically into a reversing section's RIGHT entry, so the section carries the reversed lane order. It hands the bundle to a downstream reversing section whose exit-port divergence junction re-seats onto that reversed order before fanning the two lines out to separate report sections (issue

Mermaid source
examples/topologies/reversed_section_junction_reseat.mmd
%%metro title: Reversed Section Junction Re-seat
%%metro style: nfcore
%%metro line: main | Reference | #2db572
%%metro line: a | Expression | #e63946
%%metro line: b | Fusion | #7b2d3b
%%metro grid: align | 3,0
%%metro grid: genome | 4,0
%%metro grid: quant | 3,1
%%metro grid: collate | 2,1
%%metro grid: report_a | 1,0
%%metro grid: report_b | 1,2
graph LR
subgraph align [Align]
s1[Trim]
s2[Map]
s3[Sort]
s1 -->|main,a,b| s2
s2 -->|main,a,b| s3
end
subgraph genome [Genome]
g1[Index]
end
subgraph quant [Quantify]
%%metro direction: RL
%%metro entry: right | a, b
%%metro exit: left | a, b
q1[Count]
q2[Filter]
q3[Split]
q1 -->|a,b| q2
q2 -->|a,b| q3
end
subgraph collate [Collate]
%%metro direction: RL
c1[Collect]
end
subgraph report_a [Expression Report]
%%metro entry: bottom | a
ra1[Summarise]
end
subgraph report_b [Fusion Report]
%%metro entry: top | b
rb1[Summarise]
end
s3 -->|main| g1
s3 -->|a,b| q1
q3 -->|a,b| c1
c1 -->|a| ra1
c1 -->|b| rb1
CLI command
Terminal window
nf-metro render examples/topologies/reversed_section_junction_reseat.mmd -o reversed_section_junction_reseat.svg
Rendered map
Reversed Section Junction Re-seat 1 2 3 4 5 6 Trim Count Index Collect Summarise Summarise Map Filter Sort Split Reference Expression Fusion created with nf-metro v2.0.0+dev