Coder Social home page Coder Social logo

peterlipan / de_rpy2 Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 0.0 118 KB

Differential expression analysis: DESeq2, edgeR, limma. Realized in python based on rpy2

License: MIT License

Python 25.99% Jupyter Notebook 74.01%
pandas deseq2 deseq2-analysis edger limma rlanguage differential-expression

de_rpy2's Introduction

DE_rpy2

Differential expression analysis: DESeq2, edgeR, limma.

Realized in python based on rpy2

Download R and required libraries

R: https://www.r-project.org/

Libraries: DESeq2, edgeR, limma

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("DESeq2")
BiocManager::install("edgeR")
BiocManager::install("limma")

Download python packages

rpy2, matplotlib_venn, matplotlib

pip install -r requirements.txt

Input data format

count matrix:

pandas.DataFrame object. 'id' is a column not index.

id sample1 sample2 sample3 sample4 sample5 sample6
gene1 808.77 878.44 1017.81 626.82 535.66 569.03
gene2 26.72 39.76 41.99 61.06 54.86 57.74
gene3 46.1 64.35 74.96 67.84 63.18 66.24

design matrix:

sample name as index.

It's OK not to contain this index as you give the conditions in the same order of the samples in count matrix's columns.

condition
sample1 treated
sample2 treated
sample3 treated
sample4 untreated
sample5 untreated
sample6 untreated

design formula:

string. Default= column name of design matrix.

'~ condition'

example

see example

de_rpy2's People

Contributors

peterlipan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.