# R limma alternatives in Python

The R package limma is ideal to perform differential expression analysis. Is there any limma alternative in Python?

I'm trying to use statsmodels and scikitlearn in conjunction with some other cool tools (such as pycombat) to get limma-like workflows. However, I'm missing many capabilities from the limma toolbox.

• Is there a possibility for you to call R from Python? If so you can try Rpy2 (pypi.org/project/rpy2)
– plat
Aug 11, 2021 at 6:24
• That's true. You can always wrap Python around R. For example, if working with limma, you can use Python to prepare the pieces that limma needs to create an Expression Set object with the ExpressionSet() function (expression, phenotype and feature data). However you will be always forced to write the limma workflow using R syntax. In any case I will give it a try! Many Thanks! Aug 11, 2021 at 8:44
• I am working on EXACTLY this thing. My methylize python package supports some of these functions, but I found this while looking for packages that might give me idea about what features people want. Feb 18 at 17:27

To date, it seems that the response to this question is "No". However, there is a GitHub repository called edgePy, aiming to "become an implementation of edgeR for differential expression analysis in the Python language" (edgeR is somewhat similar to limma).
PS: Many thanks to @ATpoint90 (the Twitter "hive mind" summoner) and @sridnona6 (edgePy developer).