Update Syntax for Compatibility with Nextflow 23.04.4 #131
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This pull request addresses the need to update the pipeline's syntax to ensure compatibility with more recent versions of Nextflow (e.g., 23.04.4) and presumably future versions. While the previous syntax worked with previous versions of Nextflow, further introduction of DSL2 features and syntax requirements in newer releases necessitate some adjustments.
Changes Made:
In this pull request, the following changes have been made:
main.nf:
Changed the syntax for enabling DSL2 for the pipeline using:
nextflow.enable.dsl = 2
modules/illumina.nf, modules/qc.nf, modules/upload.nf:
In these modules, I replaced instances where we used sampleName with val(sampleName). This change is necessary to make our code compatible with Nextflow version 23.04.4, which requires this specific syntax adjustment, as "Unqualified input value declaration has been deprecated". Additionally, I added explicit parentheses '()' around tuple arguments for consistency in code style.
Testing:
I have tested the updated pipeline on my local data and it performed as expected.
Request for Review:
I kindly request that the maintainers review these changes or provide feedback. It's crucial to ensure that these updates align with the project's goals and standards.
Possible Additional Changes:
Similar changes may be needed for other .nf files. As I focused on the --illumina workflow, i did not alter any other .nf files relating to nanopore processing.
Additional Information:
If you have any questions or need further clarification on any aspect of these changes, please feel free to reach out. I am committed to addressing any concerns and collaborating to ensure the successful integration of these updates.
Thank you for considering this pull request. Conforming the ncov2019-artic-nf pipeline with updated Nextflow versions should benefit future users of the pipeline.