-
Notifications
You must be signed in to change notification settings - Fork 707
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
Clarify design formula and blind dispersion estimation #1367
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
pinin4fjords
requested changes
Sep 2, 2024
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.
Agree with everything except restating defaults in the function calls.
pinin4fjords
approved these changes
Sep 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I think it could be useful to explicitly mention what the design formula
~1
is doing (= specifying an intercept-only model) and how this relates to the dispersion estimation that happens during the variance stabilizing transformation (= the default argument of both rlog and vst isblind=TRUE
, which does the same thing as setting an intercept-only model).Source: https://www.bioconductor.org/packages/release/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#blind-dispersion-estimation
This tripped me up a bit as I was exploring the code, although in hindsight it makes perfect sense: it is mentioned explicitly in several places that the rnaseq pipeline does not take into account any sample metadata, so
~1
is the only possible design to use, and the deseq2 docs clearly recommend usingblind=T
(the default) for exploratory quality control plots.Since
blind=TRUE
is the default, I guess specifying it in the code is a bit redundant, but personally I like explicit code more than implicit.Cheers!
PR checklist
nf-core lint
). => lint test keeps failing locally onfiles_unchanged: docs/images/nf-core-rnaseq_logo_dark.png does not match the template
nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).