-
Notifications
You must be signed in to change notification settings - Fork 375
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
compute DE+ and DE- separately #2826
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
Fixed the wrong behavior that we have seen in different models (high significance despite low mean LFC but high standard deviation). It still requires a release note and it would be good to check in our DE tutorial whether things are changing there. I’m not sure that the Bayes factor computation is correct @PierreBoyeau? |
Hi, LGTM. I am unsure about the Bayes factor here, since we don't have two, but three competing models now(equally expressed, upreg, and downreg). I would be in favor of not computing BFs in this case. |
I guess it's fine to remove. I would assume we do two tests: upregulated vs rest and downregulated vs rest. We output only the winner of the test for upregulated/downregulated. I guess the corresponding Bayes factor for the returned FDR is then: |
src/scvi/model/base/_differential.py
Outdated
@@ -360,7 +365,8 @@ def m1_domain_fn(samples): | |||
res = dict( | |||
proba_de=proba_m1, |
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.
Why not return probe_de?
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.
updated
… into maximum_bayes_factor
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2826 +/- ##
==========================================
- Coverage 89.43% 82.67% -6.77%
==========================================
Files 185 185
Lines 16182 16182
==========================================
- Hits 14473 13379 -1094
- Misses 1709 2803 +1094 |
@canergen @PierreBoyeau can we merge to main? I put the new proba_de computation in mode='change_threeway' and kept 'vanilla' as default. Just need to think about how we explain the fix in the documentation |
for more information, see https://pre-commit.ci
Put in other fixes, that we discussed when we met. Especially the threshold was computed wrong. Subset_idx is something that I need for resolVI and it needs to be in this function. The argument is also different now with two and three. |
…i-tools into maximum_bayes_factor
for more information, see https://pre-commit.ci
…i-tools into maximum_bayes_factor
for more information, see https://pre-commit.ci
…i-tools into maximum_bayes_factor
we need to rerun all tutorials that use DE once merged. |
this branch was already merged in this PR: #3144 |
No description provided.