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

12 lines
329 B
Plaintext

def criteria = branchCriteria { v ->
small: v < 10
large: v > 10
}
channel.of(1, 2, 30).branch(criteria).set { ch1 }
channel.of(10, 20, 3).branch(criteria).set { ch2 }
ch1.small.view { v -> "$v is small" }
ch1.large.view { v -> "$v is large" }
ch2.small.view { v -> "$v is small" }
ch2.large.view { v -> "$v is large" }