theislab / single-cell-best-practices

https://www.sc-best-practices.org
https://www.sc-best-practices.org
Other
732 stars 170 forks source link

Switch size factor analysis to pyDESeq2 #267

Open abearab opened 4 months ago

abearab commented 4 months ago

Here there is a size factor calculation in R which can be painful (i.e. setting up stable environment, etc.) ! I would use pyDESeq2 since it's now a well maintained python tool.

from pydeseq2 import preprocessing
_, size_factors = preprocessing.deseq2_norm(adata.X)
Zethson commented 4 months ago

Hey,

generally in favor of this. It will happen at some point. PRs are generally welcome!

abearab commented 4 months ago

Cool!