-
Notifications
You must be signed in to change notification settings - Fork 203
Refactor iGenomes handling to expose params object pipeline-wide #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.2.1. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
|
Hi @LeonHafner, thanks for the PR. Implementationwise this looks good. I'm not sure though if it is desirable to not pass parameters to the subworkflow separately. If all params are explicitly passed to the subworkflow (I'm aware this is currently anyway not the case), it would make it easier to import that subworkflow as-is into another pipeline. Maybe @nictru is aware if there's any official nf-core recommendations about parameter handling at the workflow level? |
|
I kicked off a discussion in the nf-core slack. As of writing this comment the opinion seems to be that it is still okay to directly use the However there will be a new nextflow guideline which recommends using I think it’s up to the pipeline maintainer to decide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then let's get this in.
If we want to isolate the workflow better, we anyway need to refactor a couple of other things.
This PR builds on: #469
It moves the
getGenomeAttributefunction tomain.nf, making igenomes-derived parameters available pipeline-wide rather than just within main.nf as described by @nictru in the linked PR. This eliminates the need to manually pass parameters to subworkflows, simplifying the addition of new iGenomes attributes. Currently, onlyfasta,gtf, andstar_indexare supported.Additionally I had to move the imports below the igenomes fetching, as the
getGenomeAttributeis otherwise not available.The changes align with implementations in nf-core/tfactivity (nf-core/tfactivity#30)
and nf-core/rnaseq (nf-core/rnaseq/main.nf#L184).
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).