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