• Stars
    star
    569
  • Rank 78,369 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 2 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Python implementation of the DESeq2 pipeline for bulk RNA-seq DEA.

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 n-level multi-factor analysis (with categorical factors), but we plan to implement more in the future. In case there is a feature you would particularly like to be implemented, feel free to open an issue.

Installation

PyPI

PyDESeq2 can be installed from PyPI using pip:

pip install pydeseq2

We recommend installing within a conda environment:

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

Bioconda

PyDESeq2 can also be installed from Bioconda with conda:

conda install -c bioconda 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 is being tested in a github workflow (CI) with python 3.8-3.11 and the following package versions:

- anndata 0.8.0
- 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 Getting Started section of the documentation contains downloadable examples on how to use PyDESeq2.

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.

Data

The quick start examples use synthetic data, provided in this repo (see datasets.)

The experiments described in our preprint rely on data from The Cancer Genome Atlas, which may be obtained from this portal.

Contributing

Please the Contributing section of the documentation to see how you can contribute to PyDESeq2.

1 - Download the repository

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

2 - Create a conda environment

Run conda 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.

Development Roadmap

Here are some of the features and improvements we plan to implement in the future:

  • Integration to the scverse ecosystem:
  • Variance-stabilizing transformation
  • Improving multi-factor analysis:
    • Allowing n-level factors (only bi-level for now)
    • Implementing interaction terms

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.

More Repositories

1

FLamby

Cross-silo Federated Learning playground in Python. Discover 7 real-world federated datasets to test your new FL strategies and try to beat the leaderboard.
Python
199
star
2

HistoSSLscaling

Code associated to the publication: Scaling self-supervised learning for histopathology with masked image modeling, A. Filiot et al., MedRxiv (2023). We publicly release Phikon πŸš€
Jupyter Notebook
140
star
3

HE2RNA_code

Train a model to predict gene expression from histology slides.
Python
90
star
4

GrAIdient

GrAIdient is a deep learning framework that aims at challenging the way we train and run models.
Swift
82
star
5

DSB2017

Data Science Bowl 2017 : Lung Cancer Detection
Python
44
star
6

grad-cnns

Code and manuscript for "Efficient Per-Example Gradient Computations in Convolutional Neural Networks"
TeX
29
star
7

charts

Helm charts maintained by Owkin
Mustache
18
star
8

scancovia

Python
8
star
9

idash-2020

iDASH 2020 - Owkin submission
7
star
10

fedeca

Code repository associated with the FedECA article
Python
7
star
11

SRATTA

Implementation of the SRATTA paper
Python
4
star
12

benchmark_flamby

This is an example to showcase how one can use benchopt in combination with FLamby in order to be able to create and share reproducible reports about performance of new FL strategies.
Python
4
star
13

hte

Python
3
star
14

EUCAIM_Substra_demo

Substra demo for EUCAIM project
Python
2
star
15

drl-evaluation

Robust evaluation of DRL methods for survival and gene essentiality prediction on bulk RNAseq
Python
2
star
16

CovadjustSim

Simulation Studies of the effect of covariate adjustment on the statistical power of treatment effect estimation in a clinical tiral
R
2
star
17

docker-dependency-updater

Checks system dependencies and update them if required
TypeScript
1
star