PyDESeq2 is a Python implementation of the DESeq2 method for differential expression analysis with bulk RNA-seq data, originally written in R. It works on AnnData objects and is part of the scverse ecosystem.
Current features broadly correspond to the default settings of DESeq2 for single-factor and multi-factor analysis, with categorical or continuous factors, using Wald tests, plus an optional apeGLM log fold-change shrinkage step. Because PyDESeq2 is a reimplementation from scratch, you may see differences in retrieved values or available features.
Please refer to the documentation, in particular the tutorials and the API documentation.
You need to have Python 3.12 or newer installed on your system. There are several options to install PyDESeq2:
-
Install the latest release of
pydeseq2from PyPI:pip install pydeseq2
-
Install the latest release from Bioconda:
conda install bioconda::pydeseq2
-
Install the latest development version:
pip install git+https://github.com/scverse/PyDESeq2.git@main
See the release notes on GitHub.
For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.
If you use PyDESeq2, please cite the PyDESeq2 paper:
@article{muzellec2023pydeseq2,
title={PyDESeq2: a python package for bulk RNA-seq differential expression analysis},
author={Muzellec, Boris and Telenczuk, Maria and Cabeli, Vincent and Andreux, Mathieu},
year={2023},
doi = {10.1093/bioinformatics/btad547},
journal={Bioinformatics},
}The citation page of the documentation lists the methods that PyDESeq2 implements.
PyDESeq2 has been originally developed by Boris Muzellec, Maria Teleńczuk, Vincent Cabeli, and Mathieu Andreux and funded by Owkin. In Dec 2025, the maintenance of PyDESeq2 was taken over by the scverse community.
