feat: allow exponentiation post agg for log-fold-change in rank_genes_groups#4037
feat: allow exponentiation post agg for log-fold-change in rank_genes_groups#4037
rank_genes_groups#4037Conversation
rank_genes_groups
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4037 +/- ##
==========================================
+ Coverage 78.60% 78.63% +0.02%
==========================================
Files 118 118
Lines 12756 12767 +11
==========================================
+ Hits 10027 10039 +12
+ Misses 2729 2728 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Regarding 1: I didn’t look at the math, but I assume to get both accurate logfoldchanges and correct t-test results, the t-test needs the means of the data, and the logfoldchanges need the means of e^data. So we’d have to calculate means twice I think. If @eroell doesn’t chime in I’ll re-learn the math …
Regarding 3: maybe lfc_estim_fast or so?
I think it would be confusing if the option only applied to one of them, but of course I don’t know what people expect. |
|
That's a pretty good reason! Nothing in the issue is focused on wilcoxon, I guess! |
Looking back at things, I think this setting was created for a time when the code looked very different. It is only faster for |
|
I think you’re right, but |
|
No changes in benchmarks. Comparison: https://github.com/scverse/scanpy/compare/063262b7c2f6f7e6ca675e5efc2603e21d22df22..39712198c255e2a603c2dcfdcc8a7279f7d410e4 More details: https://github.com/scverse/scanpy/pull/4037/checks?check_run_id=71803666404 |
|
huh, I didn’t expect it to have zero impact. OK then, let’s see what @eroell says |
My three questions here:
illicoto compare? I added a very simple test.exp_post_aggmake sense?exp_post_mean?