Remove support for legacy sample sheet and adjust multiregion sheet#1028
Conversation
There was a problem hiding this comment.
Looks good.
I have converted "my" pipelines to initialize all channels from parameters in the PIPELINE_INITIALISATION function and let the main workflow take a list of arguments corresponding to those channels plus any value params, thus avoiding params.* in the code. I suppose the main advantage for this is if one wants to call the workflow from another pipeline or so, i.e. not only the root directory main.nf. But it's also cleaner, IMO, not to have params.* scattered deep into the file structure. I think Claude could probably be quite helpful with this type of task. This would of course be a different PR than this, but maybe a good time now that it's time for a major bump? If you agree, I could do this once you have merged this PR.
Thanks!
Yes I have also thought about that. A disadvantage seems to me that another layer of complexity is introduced into the code by the necessity to forward params at multiple places (from entry level to deep into the file structure). It sort of makes it transparent what is required for each step but also clunkier, imho. |
I'm using Claude for a lot of coding now, and this type of task is perfect. Should I give it a go? |
Yes! |
This depends on nf-core/test-datasets#2164.
Because we do anyway the next major version, we can also slim & adapt parsed input files and change requirement (to the better).
This is essentially reverting #981 to have only one standardized sample sheet available for the pipeline, making maintenance simpler.
Additionally, multi-region sheet is adapted to streamline with parameter changes in #1027, specifically renaming FW_primer to primer_fwd and RV_primer to primer_rev.
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).