theislab / diffxpy

Differential expression analysis for single-cell RNA-seq data.
https://diffxpy.rtfd.io
BSD 3-Clause "New" or "Revised" License
191 stars 23 forks source link

Can't set which group to compare to which using de.test.t_test or any other test #188

Open Gabi86 opened 3 years ago

Gabi86 commented 3 years ago

Hi,

I'm trying to test '3m' and '24m' age RNA-seq data from Tabula Muris Senis dataset. When I'm using de.test.wald() it uses '3m' as a baseline to calculate the '24m' log2fold change and p-values However, when I'm using any other test, it uses '24m' as a baseline to calculate changes in '3m' age data. Which unfortunately yields completely different results. I believe it might be an issue whether the the test sets control condition by reading the names alphabetically or numerically?..

Is it possible to manually set the control condition in the tests, and how?

Thanks!