add nextflow d30e48d
This commit is contained in:
11
nextflow/docs/snippets/branch-with-fallback.nf
Normal file
11
nextflow/docs/snippets/branch-with-fallback.nf
Normal file
@@ -0,0 +1,11 @@
|
||||
channel.of(1, 2, 3, 40, 50)
|
||||
.branch { v ->
|
||||
small: v < 10
|
||||
large: v < 50
|
||||
other: true
|
||||
}
|
||||
.set { result }
|
||||
|
||||
result.small.view { v -> "$v is small" }
|
||||
result.large.view { v -> "$v is large" }
|
||||
result.other.view { v -> "$v is other" }
|
||||
Reference in New Issue
Block a user