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

Pipeline summary report #558

Merged
merged 100 commits into from
Aug 11, 2023
Merged

Conversation

tillenglert
Copy link
Contributor

@tillenglert tillenglert commented Mar 24, 2023

This PR adds a report module to the nf-core/ampliseq Pipeline. The report should include short text snippets for each module and either graphs or tables depicting the output of the corresponding tool.

The report is written in Rmarkdown and is generated using an external R script using a template .Rmd file. It is still work in progress, as I first wrote everything to be working on the results directory. Currently I'm adding each individual file which is used in the report to the input of the module, R script and into the template.

This draft PR should also enable @d4straub to help me when he has some time.

(Second PR as the first one was a bit messy.)

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- [ ] If necessary, also make a PR on the nf-core/ampliseq branch on the nf-core/test-datasets repository.
  • 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 Mar 24, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 75a497b

+| ✅ 152 tests passed       |+
#| ❔   3 tests were ignored |#
!| ❗   2 tests had warnings |!

❗ Test warnings:

  • readme - README did not have a Nextflow minimum version badge.
  • schema_lint - Parameter input is not defined in the correct subschema (input_output_options)

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.9
  • Run at 2023-08-11 11:11:13

@d4straub d4straub changed the title Initial commit for draft PR HTML Summary report Mar 24, 2023
@d4straub
Copy link
Collaborator

Curiously with -profile test the DADA2 QC plots are broken but with -profile test_single they are fine. Needs to be investigated and fixed eventually!

@tillenglert
Copy link
Contributor Author

Copy link
Contributor Author

@tillenglert tillenglert left a comment

Choose a reason for hiding this comment

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

Some comments already

assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
max_disc <- round( 100 - min(passed_col), 1 )
avg_passed <- round(mean(passed_col),1)

cutadapt_text_unch <- "Primers were trimmed using cutadapt"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe this sentence can be omitted if the flag retain untrimmed is set.

Copy link
Collaborator

@d4straub d4straub Aug 4, 2023

Choose a reason for hiding this comment

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

I would argue that even if untrimmed are retained, the trimming was attempted and therefore that text snippet is fine I think.

assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
nextflow.config Outdated Show resolved Hide resolved
nextflow.config Outdated Show resolved Hide resolved
nextflow_schema.json Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
assets/report_template.Rmd Outdated Show resolved Hide resolved
@d4straub d4straub changed the title HTML Summary report Pipeline summary report Aug 8, 2023
Copy link
Collaborator

@d4straub d4straub left a comment

Choose a reason for hiding this comment

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

Approving here. Code was written by 2 devs and reviewed by a third.
The product of that addition, the pipeline summary report itself, was also reviewed several times by multiple people. While its never finished, it seems in a good state to be added to the pipeline imho.

@d4straub d4straub merged commit c801a21 into nf-core:dev Aug 11, 2023
16 checks passed
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.

3 participants