Files
ma/nextflow/docs/snippets/branch-with-mapper.nf
2026-04-29 23:01:54 +02:00

16 lines
330 B
Plaintext

channel.of(1, 2, 3, 40, 50)
.branch { v ->
alpha: v < 10
return v + 2
beta: v < 50
return v - 2
other: true
return 0
}
.set { result }
result.alpha.view { v -> "$v is alpha" }
result.beta.view { v -> "$v is beta" }
result.other.view { v -> "$v is other" }