Skip to main content

Integrated Differential Expression and Annotation

Project description

IDEA

logo

Integrated Differential Expression and Annotation

Introduction

This is a python module to perform GO analysis using Enrichr and visualize the bipartite graph of terms and genes as an interactive force-directed graph.

This uses pyvis as the force-directed graph backend and ggetrs to perform the gene set enrichment using Enrichr's API.

Installation

You can install this like other python packages using pip:

pip install idea-bio

Usage

The basic workflow for this tool is made up of 3 steps:

  1. Performing the gene set enrichment analysis
  2. Constructing the network
  3. Visualizing the network
import idea
import pandas as pd

#################
# Preprocessing #
#################

# Load in our example dataframe
url = "https://github.com/noamteyssier/idea/raw/main/example_data/AP2S1.tab.gz"
deg_frame = pd.read_csv(url, sep="\t")

# Filter to significant enrichments
sig_degs = deg_frame[
    (deg_frame.log2FoldChange > 0) &
    (deg_frame.padj < 0.05)
]

# Select the gene names
geneset = sig_degs.gene.values

########################################
# Perform Gene Set Enrichment Analysis #
########################################

gsea = idea.run_go(
    geneset,
    threshold=0.05,
    library="BP",
)

###############################
# Build and Visualize Network #
###############################

# Build Network
id = idea.IDEA(
    sig_degs,
    gsea.head(30),
)

# Write HTML of network to `network.html`
id.visualize("network.html")

Visualization

We can then visualize and interact with our network by opening the created *.html in our favorite browser.

Here is a static image of an example network:

network.png

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

idea_bio-0.1.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

idea_bio-0.1.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file idea_bio-0.1.4.tar.gz.

File metadata

  • Download URL: idea_bio-0.1.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/6.4.3-arch1-1

File hashes

Hashes for idea_bio-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b3353efa680d2188ef99fa4c4a2c19750c607ceff3da63c57542b071f841d1cf
MD5 1af5bd1820277c59ace45b9fa0641982
BLAKE2b-256 a1fe1bb07cca9372f44a341d8b97146f004504e82873a6e955b91b8dac6f8ce1

See more details on using hashes here.

File details

Details for the file idea_bio-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: idea_bio-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/6.4.3-arch1-1

File hashes

Hashes for idea_bio-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a723323ec897e12c88491cd4adbacbe693670a7d614ced4e23a36cac4b853e9
MD5 026b5cd88e95b2608360567dad5b6143
BLAKE2b-256 20d7dcd5b12c2bd6edc3067b87d221febfcb535149b48be3a20b39717c1e7c94

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