A simple library for differential expression analysis
Project description
DEA
DEA stands for differential expression analysis, a common analysis in bioinformatics done to explore the most significantly differentially expressed genes between 2 predefined groups. DEA is a simple python package that implements related-tools for differential expression analysis as well as visualizing the output on a volcano plot.
Download Package
Download the DEA package by:
pip install git+https://github.com/jeffliu6068/DEA.git
or
pip install DEA
Import
Once installed, import the package by:
import DEA
Intuition: How DEA Works to Identify Differentially Expressed Genes
During DEA, the input group of samples will be compared to the rest of the samples. The degree of difference is measured in fold change which is the mean(group1) divided by the mean(group2) and the significance of the difference is measured using a Student t-test with Bonferroni multiplicity correction as an option. This returns a dataframe with the p-value and fold change of each differentially expressed gene. P-value > 0.05 are removed. This output is then plotted onto a volcano plot for easy visualization.
Available Tools in the DEA Package
Differentially Expressed Genes
import DEA
dea_df = DEA.compare_clusters(df, X_label, correction=False)
df is the input dataframe with genes (row) x samples (columns) and X_label is a list of samples part of df that is compared to the rest of the df
Volcano Plot
DEA.volcano_plot(dea_df, 5,2)
Volcano plots the log2(fold change) on the x-axis and -log10(p-value) on the y-axis. The last 2 parameters 5, 2 in this case are the -log10(p-value) threshold and log2(fold change) threshold used to define the points that will be annotated on the graph.
Authors
- Ta-Chun (Jeff) Liu - jeffliu6068
- Sir Walter Fred Bodmer FRS FRSE - Supervision
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Hat tip to anyone whose code was used
- Inspiration: Thank you for all that has contributed ideas and expertise to make this possible. Let's advance science together.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file DEA-0.2.tar.gz
.
File metadata
- Download URL: DEA-0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f25ac3081d69aa7029aa65d884993d2c1d0e5490e9773e25953b3160ec3652 |
|
MD5 | 57fca232da5a2db86b806f0a68afe6c7 |
|
BLAKE2b-256 | 48b8d98bef3cacfd6d9b37df95f89f0be35c8b9d44f2b8cf6ef9ca0b8683a833 |
File details
Details for the file DEA-0.2-py3-none-any.whl
.
File metadata
- Download URL: DEA-0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f29329d4c0113480e176324c1fe9fb043057b2dd169538d168135eaf27e526 |
|
MD5 | 1ccac4df8af9b5c48c586c8a09de4b60 |
|
BLAKE2b-256 | e44ae5bb05825a0f4be1f9a364b19c4ffa6701c6f942a59d337e6f1c61db4ee6 |