Skip to main content

A python implementation of DESeq2.

Reason this release was yanked:

Bug in DeseqStats: the contrast is not symmetrical

Project description

PyDESeq2

Table of Contents

Overview

This package is a python implementation of the DESeq2 method [1] for differential expression analysis (DEA) with bulk RNA-seq data, originally in R. It aims to facilitate DEA experiments for python users.

As PyDESeq2 is a re-implementation of DESeq2 from scratch, you may experience some differences in terms of retrieved values or available features.

Currently, available features broadly correspond to the default settings of DESeq2 (v1.34.0) for single-factor and paired multi-factor analysis (with bi-level factors), but we plan to implement more in the near future. In case there is a feature you would particularly like to be implemented, feel free to open an issue.

Installation

PyDESeq2 can be installed from PyPI:

pip install pydeseq2

We recommend installing within a conda environment:

conda env create -n pydeseq2
conda activate pydeseq2
pip install pydeseq2

If you're interested in contributing or want access to the development version, please see the contributing section.

Requirements

The list of package version requirements is available in setup.py.

For reference, the code was tested with python 3.8 and the following package versions:

- numpy 1.23.0
- pandas 1.4.3
- scikit-learn 1.1.1
- scipy 1.8.1
- statsmodels 0.13.2

Please don't hesitate to open an issue in case you encounter any issue due to possible deprecations.

Getting started

The notebooks directory contains minimal examples on how to use PyDESeq2, in the form of jupyter notebooks.

You can also try them from your browser (on synthetic data only):

Binder

Documentation

The documentation is hosted here on ReadTheDocs. If you want to have the latest version of the documentation, you can build it from source. Please go to the dedicated README.md for information on how to do so.

TCGA Data

The quick start notebooks either use synthetic data (provided in this repo) or data from The Cancer Genome Atlas.

For more information on how to obtain and organize TCGA data, see datasets.

Contributing

1 - Download the repository

git clone https://github.com/owkin/PyDESeq2.git

2 - Create a conda environment

Run conda env create -n pydeseq2 python=3.8 (or higher python version) to create the pydeseq2 environment and then activate it: conda activate pydeseq2.

cd to the root of the repo and run pip install -e ."[dev]" to install in developer mode.

Then, run pre-commit install.

The pre-commit tool will automatically run black and isort, and check flake8 compatibility

PyDESeq2 is a living project and any contributions are welcome! Feel free to open new PRs or issues.

Citing this work

@article{muzellec2022pydeseq2,
  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={2022},
  doi = {10.1101/2022.12.14.520412},
  journal={bioRxiv},
}

References

[1] Love, M. I., Huber, W., & Anders, S. (2014). "Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2." Genome biology, 15(12), 1-21. https://genomebiology.biomedcentral.com/articles/10.1186/s13059-014-0550-8

[2] Zhu, A., Ibrahim, J. G., & Love, M. I. (2019). "Heavy-tailed prior distributions for sequence count data: removing the noise and preserving large differences." Bioinformatics, 35(12), 2084-2092. https://academic.oup.com/bioinformatics/article/35/12/2084/5159452

License

PyDESeq2 is released under an MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydeseq2-0.2.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydeseq2-0.2.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file pydeseq2-0.2.0.tar.gz.

File metadata

  • Download URL: pydeseq2-0.2.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for pydeseq2-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4b879f27cc3603dce92161fec61762855b04e9dc17be5a5284e1285a74fc196d
MD5 1bc81d0e8b3fba10600c2e7c99a7daca
BLAKE2b-256 3a7fb1822adefa98674d9706b37def5de30cb68394107af0088489d6377ea365

See more details on using hashes here.

File details

Details for the file pydeseq2-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pydeseq2-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for pydeseq2-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a79d3c89a4e17fd2ea9a7b20d164827a7aa742f2b3b0df5da2cab2edd6ae12d4
MD5 992e04ca5651aee27bb940bdca1941ab
BLAKE2b-256 b4e530779418b356b50396c191bff80616a04b74aac723760d16721eeddf5b77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page