Skip to content
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

Added option to add a custom annotation, clarified multiQC results and fixed issues #401

Merged
merged 31 commits into from
Apr 22, 2024

Conversation

svarona
Copy link
Contributor

@svarona svarona commented Oct 23, 2023

Included issue #390, issue #336 enhancements and issue #419

  • Added new param to add a custom annotation (gtf or gff format)
  • Added new subworkflow to perform the additional annotation
  • Allowed SNPEFF_BUILD process to detect wether annotation is in gtf or gff format
  • Fixed variants_long_table so it won't select first annotation feature only, but remove the features that are not upstream or downstream
  • Added a clearly description of variants_long_table formats and content for both nanopore and illumina.
  • Clarify #SNPs and #INDELS in the illumina's multiqc

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@github-actions
Copy link

github-actions bot commented Oct 23, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 9cacdc2

+| ✅ 176 tests passed       |+
#| ❔   3 tests were ignored |#
!| ❗   8 tests had warnings |!

❗ Test warnings:

  • files_exist - File not found: assets/multiqc_config.yml
  • files_exist - File not found: conf/igenomes.config
  • readme - README contains the placeholder zenodo.XXXXXXX. This should be replaced with the zenodo doi (after the first release).
  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
  • system_exit - System.exit in nanopore.nf: System.exit(1) [line 247]

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.13.1
  • Run at 2024-04-22 13:26:43

@svarona svarona marked this pull request as ready for review January 18, 2024 16:57
@svarona svarona changed the title Added option to add a custom annotation Added option to add a custom annotation and clarified multiQC results Feb 16, 2024
Comment on lines 87 to 90
- name: Download GTF for additional annotation
run: |
wget https://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/009/858/895/GCA_009858895.3_ASM985889v3/GCA_009858895.3_ASM985889v3_genomic.gtf.gz

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm not misunderstanding, you're downloading this every time in this matrix.
Can you add an if statement on the params for this step?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! I also added it in nanopore when it downloads the medaka model. Thanks for the suggestion!

Copy link
Member

@maxulysse maxulysse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superb work, I'm not a super fan of the name for this new params: --additional_annot
Why not --additional_annotation, it's not that much longer.

"format": "file-path",
"mimetype": "text/plain",
"pattern": "^\\S+(\\.gff|\\.gtf)(\\.gz)?$",
"description": "Full path to additional annotation file in GTF or GFF format.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could mention the optional .gz.
I assume there's no need to decompress in such case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same format as the --gff param

Should I add the .gz in the description for both? Both of them have a GUNZIP_GFF process in the case they are compressed.

@svarona
Copy link
Contributor Author

svarona commented Apr 22, 2024

Superb work, I'm not a super fan of the name for this new params: --additional_annot Why not --additional_annotation, it's not that much longer.

Done! ✔️

@svarona svarona changed the title Added option to add a custom annotation and clarified multiQC results Added option to add a custom annotation, clarified multiQC results and fixed issues Apr 22, 2024
@svarona svarona merged commit 6dee7cb into nf-core:dev Apr 22, 2024
24 checks passed
@svarona svarona deleted the custom_gtf branch April 22, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants