-
Notifications
You must be signed in to change notification settings - Fork 58
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
ENH Added lfc under null and alt hypothesis #172
Conversation
Hi @vcabeli, Thanks a lot for this PR! A few comments:
|
Thanks for the review @BorisMuzellec, |
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.
LGTM, thanks for the PR
Reference Issue or PRs
Resolves #158
PR description
This PR aims to implement the option to specify an alternative test for producing Wald statistics and p-values.
It corresponds to the 'lfcThreshold' and 'altHypothesis' parameters of the original DESeq2
results(dds)
, but not exactly :lfcThreshold
whenaltHypothesis = less
as explained in the vignette. If you want to have the same behavior in pyDESeq2, you will have to specify the correct sign forlfc_null
compared to pyDESeq2 :
> 0
are in agreement up totol=0.02
, as shown in tests/test_pydeseq2.py:test_alt_hypothesis()lfc_null
that corresponds to the (log2) LFC under the null hypothesis and no alternative hypothesis, i.e. use the classic Wald test to test for deviation from the null value.The test results used for comparison were generated using the R DESeq2 version 1.34.0 and
results(dds, lfcThreshold=.5, altHypothesis=altHypothesis)