Skip to main content

Package to perform enrichment analysis in python using EnrichR and OpenTargets APIs

Project description

Enrich_Omics: A Python wrapper for EnrichR and OpenTargets

Status License GitHub Issues GitHub Pull Requests

Table of Contents

About

Python wrapper for EnrichR and OpenTargets API. Allows for visualisation of enriched pathways or diseases associated to a given target

EnrichR

  • Choose from all EnrichR libraries (Transcription, Pathways, Drugs, etc). Default library is KEGG_pathways_2021
  • Get table with enrichment results
  • Plot enrichment results and export it

OpenTargets

Open Target is currently only supporting the search of a single target

Target endpoint

  • Convert Entrez to Ensemble if needed (OpenTargets API accepts only Ensemble IDs)
  • Get description of the function of the target
  • Get diseases associated to a certain target
  • Plot diseases associated to a certain target
  • Get table drugs associated to a certain target
  • Plot the drugs that work for a given target and the diseases associated to it
  • Plot the drugs associated to a given target and the trial phase they are currently in

Plots

  • Export plots in SVG and PNG

Installation

pip install enrich-omics

Tutorial

EnrichR API

import enrich_omics
from enrich_omics import EnrichR
from enrich_omics import OpenTargets

# get all available libraries
EnrichR.get_libraries()

# get enrichment for a list of genes/proteins
# default library is 'KEGG_2021_Human' but other libraries can be specified using the 'library_name' argument.
# check out available libraries with the command above
# library_type, height, width and max_hits arguments are optional. See source code for details or docs for examples.

gene_list = ['LMNA', 'MYH7', 'TNNT2', 'ACE2']
EnrichR.plot_enrichment(gene_list)

image

# specifying a different library
EnrichR.plot_enrichment(gene_list, library_name = 'BioPlanet_2019', height = 200, width = 300, max_hits= None)

image

# get results as table for downstream analysis/ pipeline integration
EnrichR.get_table_enrichment(['LMNA', 'MYH7', 'TNNT2', 'ACE2'], library_name='KEGG_2021_Human')

image

Open Targets API (Open Targets currently only supports single target enrichment. More information on the OpenTargets website)

# OpenTargets takes EnsembleIDs by default, but entrez ids can be passed using the argument entrez = True
# Export plots easily in png or svg
OpenTargets.plot_diseases(target_id = 'PLG', entrez = True) 

image

OpenTargets.get_table_drugs(target_id = 'PLG', entrez = True)

image

# Plot drugs and diseases associated to a given target
OpenTargets.plot_drugs_disease(target_id = 'PLG', entrez = True)

image

Docs

Documentation for this package can be found here

Contributions always welcome!

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

enrich_omics-0.2.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

enrich_omics-0.2.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file enrich_omics-0.2.1.tar.gz.

File metadata

  • Download URL: enrich_omics-0.2.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for enrich_omics-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d6b6f4b0b9f1b5c283b33f971436174a7783f654e06b07705e4eea932668f843
MD5 e3a218d68659b39e60a13afefc2386f7
BLAKE2b-256 913293c6c5ef45cf8741594ebf68e024b536a52353c885910c7a3d1b159a55d9

See more details on using hashes here.

File details

Details for the file enrich_omics-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: enrich_omics-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for enrich_omics-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c41c6b57688deb6fc26884df3f3c365e8560b166a2d90998b4d5d7f957f4d781
MD5 a54efadb6ce5ade3ad6e1582c48f7d13
BLAKE2b-256 33ebd978df90021711d8cc842f191957496ff6d4e5db7eebba0cca669a8fdc06

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