Workflow issue with DSL2 #2560
-
Hello everyone, I have a pipeline that I wrote with DSL2, and I am having an issue with defining workflows. The issue started when I wanted to convert my pipeline to using singularity images rather than conda environments. I updated my
However, when I added this, I got the warnings:
I read on some github issues that this is fixed in a newer version of nextflow (as mentioned here), so I updated to the newest version (21.10.6). However, now I got another warning that I cannot seem to get around: My workflow looks like this (a condensed version at least):
I tried to look in the update log for any changes in the syntax here, but I cannot seem to find anything. Has there been an update changing the way we define/use workflows? Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @hkaspersen, With DSL2 you must define an entry point of execution, the entry workflow. More or less it's like the
See here for details. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
You might want to do not include the process you're not using. For that, I'd define the 2 sub-workflows in 2 external modules and import each process in its respective module. |
Beta Was this translation helpful? Give feedback.
Hi @hkaspersen,
With DSL2 you must define an entry point of execution, the entry workflow. More or less it's like the
main
static method in a Java app. There are two ways to define it:workflow {}
block).-entry
.See here for details.