Nextflow strict syntax for non-nf-core-modules/workflows#942
Nextflow strict syntax for non-nf-core-modules/workflows#942d4straub merged 6 commits intonf-core:devfrom
Conversation
|
Linting issues are: so either I satisfy linting with nextflow or linting wit nf-core... Edit:
|
erikrikarddaniel
left a comment
There was a problem hiding this comment.
I don't understand the leading underscores in variable names, but otherwise this looks fine.
| //Get folder information | ||
| ch_reads | ||
| .flatMap { meta, reads -> [ meta.run ] } | ||
| .flatMap { meta, _reads -> [ meta.run ] } |
There was a problem hiding this comment.
Why did you add an underscore to reads here but not to meta, but you did add to meta elsewhere? (Not to mention why add leading underscores at all, but that's some new guideline I suppose.)
There was a problem hiding this comment.
Whenever a variable is not used, i.e. here "reads" is dropped, nextflow lint gives a warning. This warning can be avoided by prepending an underscore. So its driven by the nextflow linting, as in the opening post. However, it seems to me to have also practical value by visualizing what information is dropped/not used (trivial here in that example, but can be more informative e.g. in subworkflow input).
There was a problem hiding this comment.
I see, that makes sense.
|
Thanks! |
All warnings and errors with
were fixed in non nf-core modules and subworkflows. Some modules and the nf-core subworkflow
fasta_newick_epang_gappaare still having warnings.NXF_VER=25.12.0-edge NXF_SYNTAX_PARSER=v2 nextflow run ampliseq --helpwas fixed via an update of the subworkflow
utils_nfschema_plugin, but it still warns about:PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).