Is there an easy way to make the processes/workflows in a dsl2 fork, change based on a condition? #2112
Answered
by
dileep-kishore
dileep-kishore
asked this question in
Q&A
-
Consider this example:
What I want to do is to change the processes in the fork based on a condition or variable:
Is there any way other than writing if and switch statements for every possible combination? |
Beta Was this translation helpful? Give feedback.
Answered by
dileep-kishore
May 14, 2021
Replies: 2 comments 2 replies
-
The branch operator may help https://www.nextflow.io/docs/latest/operator.html#branch |
Beta Was this translation helpful? Give feedback.
2 replies
-
I realized that I can use the
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dileep-kishore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I realized that I can use the
when
directive on processes. Eg: