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

Add design to report #189

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Add design to report #189

merged 5 commits into from
Nov 22, 2023

Conversation

WackerO
Copy link
Collaborator

@WackerO WackerO commented Nov 8, 2023

This PR adds the design formulas to the contrasts table in the report file as in this example:
SRP254919_design.html.zip

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/differentialabundance 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).

@WackerO WackerO mentioned this pull request Nov 8, 2023
10 tasks

# If DESeq2 was run instead of Limma, add designs to report
if (params$study_type %in% c('rnaseq')) {
contrasts_to_print[["DESeq2 models"]] <- paste('~ 0 + ', ifelse(contrasts_to_print$Blocking != '', make.names(contrasts_to_print$Blocking), ''), '+ ', make.names(contrasts_to_print$Variable))
Copy link
Member

Choose a reason for hiding this comment

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

I'm not a fan of this, since it will require careful attention if the DESeq2 module is updated.

If you really want this, suggest you have DESeq2 (and, ideally, Limma) modules output the models in some way, so we can retrieve it here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I also considered that...Alright, will for now have a look at adding some DESeq2 output

Copy link
Member

@pinin4fjords pinin4fjords left a comment

Choose a reason for hiding this comment

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

Sorry, I worry about keeping this up to date with module code- reject for now.

@WackerO WackerO marked this pull request as draft November 9, 2023 12:09
@WackerO WackerO marked this pull request as ready for review November 14, 2023 09:23
Copy link

github-actions bot commented Nov 21, 2023

nf-core lint overall result: Passed ✅

Posted for pipeline commit 8d5ea35

+| ✅ 160 tests passed       |+

✅ Tests passed:

Run details

  • nf-core/tools version 2.10
  • Run at 2023-11-21 15:44:52

@WackerO WackerO requested a review from pinin4fjords November 21, 2023 14:35
Copy link
Member

@pinin4fjords pinin4fjords left a comment

Choose a reason for hiding this comment

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

Looking pretty good- don't forget the changelog, and could you post an example report from this?

@WackerO
Copy link
Collaborator Author

WackerO commented Nov 21, 2023

Here you go: SRP254919.html.zip

Copy link
Member

@pinin4fjords pinin4fjords left a comment

Choose a reason for hiding this comment

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

Noticing we have the '+ +' we should fix in the d/e modules, but looks good.

@WackerO WackerO merged commit 4587680 into nf-core:dev Nov 22, 2023
14 checks passed
@WackerO WackerO deleted the design branch November 22, 2023 09:20
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