Conversation
PR checklist
|
|
| <!-- TODO nf-core: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file. --> | ||
| <!-- If you use Clinical-Genomics/oncorefiner for your analysis, please cite it using the following doi: [10.5281/zenodo.XXXXXX](https://doi.org/10.5281/zenodo.XXXXXX) --> | ||
|
|
||
| <!-- TODO nf-core: Add bibliography of tools and data used in your pipeline --> |
There was a problem hiding this comment.
Added to CITATIONS.md which is mentioned in the next line.
If we use additional data in the pipeline in the future, we should document that here.
Co-authored-by: Eva C <29628428+fevac@users.noreply.github.com>
There was a problem hiding this comment.
I think this logic with overriding citations and bibliography is not the best... Do you have an idea for a cleaner solution?
There was a problem hiding this comment.
Would this be updated with new TEMPLATE releases? I do agree that its not a good solution, but if its from the template, idk if we can do much?
There was a problem hiding this comment.
I don't think so since the template simply contains a section that should be modified by the user.
What I was referring to here is about the overriding of the citations and bibliography variables in the code I wrote!
|
|
||
| ### Channels | ||
|
|
||
| - **Conditional channels**: always initialize to `channel.empty()` before any `if` block that may or may not assign them. Never leave a channel potentially undefined. |
There was a problem hiding this comment.
Does this need to be updated now? 🤔 I mean regarding what you were saying at the meeting about if statements for channels always being true
There was a problem hiding this comment.
No, this is just referring to if statements that determine if the channel is populated or not, for example:
ch_example = channel.empty()
if (<condition_to_populate_the_channel>):
ch_example = channel.of(<something>)So that if down the line this channel is used for something, you are always sure the channel is at least an empty channel (never undefined).
What we discussed in the meeting is that if statements like if (ch_example) always return true because even if the channel is empty, it exists.
Hope that clears it out for you!
| def vcfanno = "<li>Pedersen BS, Layer RM, Quinlan AR. Vcfanno: fast, flexible annotation of genetic variants. Genome Biol. 2016 Jun 1;17(1):118. doi: 10.1186/s13059-016-0973-5. PMID: 27250555; PMCID: PMC4888505.</li>" | ||
| def bcftools_view = "<li>Danecek P, Bonfield JK, Liddle J, Marshall J, Ohan V, Pollard MO, Whitwham A, Keane T, McCarthy SA, Davies RM, Li H. Twelve years of SAMtools and BCFtools. Gigascience. 2021 Feb 16;10(2):giab008. doi: 10.1093/gigascience/giab008. PMID: 33590845; PMCID: PMC7898596.</li>" | ||
| def ensemblvep_vep = "<li>McLaren W, Gil L, Hunt SE, Riat HS, Ritchie GR, Thormann A, Flicek P, Cunningham F. The Ensembl Variant Effect Predictor. Genome Biol. 2016 Jun 6;17(1):122. doi: 10.1186/s13059-016-0974-4. PMID: 27268795; PMCID: PMC4893825.</li>" | ||
| def svdb = "<li>svdb. https://github.com/J35P312/svdb.</li>" | ||
| def multiqc = "<li>Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics , 32(19), 3047–3048. doi: /10.1093/bioinformatics/btw354</li>" |
There was a problem hiding this comment.
Interesting that this text is here! I would have thought it would be referenced maybe from some type of constants file. But I assume this is the best practices!
There was a problem hiding this comment.
Yeah, I agree that something like a constants file or, even better, parsing from CITATIONS.md would be better! But for now it seems like this is the idea in the updated nf-core template.
mathiasbio
left a comment
There was a problem hiding this comment.
This looks good from my point of view! 🌟 Awesome job! I will approve! But with a disclaimer and full understanding that you might want to wait for someone with more experience : )
| 6. Add sanity checks and validation for all relevant parameters. | ||
| 7. Perform local tests to validate that the new code works as expected. | ||
| 8. If applicable, add a new test in the `tests` directory. | ||
| 9. Update MultiQC config `assets/multiqc_config.yml` so relevant suffixes, file name clean up and module plots are in the appropriate order. If applicable, add a [MultiQC](https://https://multiqc.info/) module. |
There was a problem hiding this comment.
We already have a MultiQC module, so the use case of latter part of this is a little confusing to me?
There was a problem hiding this comment.
This sentence was taken from the original template and I believe it is referring to these MultiQC modules: https://docs.seqera.io/multiqc/modules/.
docs/CONTRIBUTING.md
Outdated
|
|
||
| ### Configuration | ||
|
|
||
| - Process-level options go in `conf/modules/<subworkflow_name>.config`, not inline in the subworkflow `.nf` file. |
There was a problem hiding this comment.
As of now, process-level options are added to conf/modules.config right? I do like the idea of having it like this instead though (maybe in conf/subworkflows/<subworkflow_name>.config instead but still)! (If I understand this correctly?). Should we create an issue to convert it to this?
There was a problem hiding this comment.
Ah good catch! We have recently updated to using conf/subworkflows/<subworkflow_name>.config so I'll change these instructions.
About the issue to refactor the current code to adhere to this logic, we will already fix that for the new subworkflows in https://github.com/Clinical-Genomics/CancerBioInfo/issues/104 and the only one that is left is PREPARE_REFERENCES. Since you will work on this subworkflow soon, could you fix that config too?
There was a problem hiding this comment.
Nice!
Perfect! Yes, I can do that!
Closes #28.
Changed
.github/CONTRIBUTING.mdto the list of files for lint ignore since it no longer follows the nf-core template.ISSUE_TEMPLATE/config.yml.Fixed
.nf-core.yml.parameters.mdby running pre-commit.CHANGELOG.md..github/CONTRIBUTING.md:docsdirectory to make the file easier to find.nf-core/raredisease.README.md:Usagesection.CITATIONS.md.docs/usage.md. Input information will be updated when the input file structure is decided.docs/output.mdwith an example. To be expanded when output file structure is decided.pr_checklist_comment_body.mdto reflect updated contributing guidelines.