Coder Social home page Coder Social logo

pydeg's Introduction

PyDEG is a python implementation of the differential expression analysis(DEA) with bulk RNA-seq data. You have to note that it is just a mimic of DESeq2 of python and DESeq2 of R. We are neither majors nor experts.

Please refer to the following links : https://github.com/owkin/PyDESeq2 & https://hbctraining.github.io/DGE_workshop/lessons/04_DGE_DESeq2_analysis.html

Currently, PyDEG uses median of ratios as the size factors, like DESeq2. However, there are many differeces between PyDEG and DESeq2(or PyDESeq2). For instance, We use the likelihood-ratio test unlike DESeq2 which mainly uses the wald test.

There may be many errors and the code may reflect things we know are wrong. We will fix these things. If you notice anything strange, please feel free to contact me at any time.

Contents

  1. Installation
  2. How to use
  3. License

Installation

PyDEG can be installed from PyPI using pip

pip install PyDEG

How to use

Import pydeg_dataset and results from pydeg. You may need import pandas.

import pandas as pd
from pydeg.pdd import pydeg_dataset, results

Create pydeg_dataset object where count_data is a pandas.DataFrame containing raw counts, metadata is a pandas.DataFrame containing information about samples and the design is string design formula.

pdd = pydeg_dataset(count_data, metadata, design)

Estimate size factors, dispersions and fit GLM for each gene.

pdd.DEA()

Test for differential expression with contrast = [condition, control, treat]

res = results(pdd, contrast)

pydeg's People

Contributors

labjc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.