-
Notifications
You must be signed in to change notification settings - Fork 37
Skip RUNDIRPARSER if no rundir information is available #167
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
base: dev
Are you sure you want to change the base?
Conversation
|
nf-core/test-datasets#1836 Needs to be merged before I can add a nf-test. |
| // From samplesheet channel serving (sampleMetaObj, sampleReadsPath) tuples: | ||
| // --> Create new rundir channel serving (rundirMetaObj, rundirPath) tuples | ||
| ch_rundir = ch_samplesheet | ||
| .filter { meta, _reads -> meta.rundir.size() > 0 } |
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.
why not printing the warning here so that we know for which sample we have no rundir?
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.
Yeah I had it like that first, but it results in a lot of warning if there are a lot of samples. Since some users might run this pipeline without ever providing any rundir information, I thought it might be cleaner to just report if the rundirparser step is skipped completely.
|
@beatrizsavinhas Since you reported the issue it would be nice to have your input as well. Is the automatic skip enough or do we need more information about the run directory? 🙂 |
|
I think this is great! 🌟
|
Sounds great, will fix! Thank you! 🙏 |
Fixes #166. The RUNDIRPARSER module is now skipped if there is no rundir information.
With this in place, I see no need to further document the rundir. It currently says it is optional and now it can be left empty without the pipeline breaking.
We probably should add a test for this (basically have a sample sheet with no rundir information), I have not done this (yet).
PR checklist
If you've added a new tool - have you followed the pipeline conventions in the contribution docsIf necessary, also make a PR on the nf-core/seqinspector branch on the nf-core/test-datasets repository.nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).Usage Documentation indocs/usage.mdis updated.Output Documentation indocs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).