add nextflow d30e48d
This commit is contained in:
12
nextflow/docs/snippets/branch-criteria.nf
Normal file
12
nextflow/docs/snippets/branch-criteria.nf
Normal file
@@ -0,0 +1,12 @@
|
||||
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" }
|
||||
Reference in New Issue
Block a user