A tool for gene set enrichment (GSEA) plots and analysis in Python. Built on top of Enrichr API.
Project description
enrichrpy
A tool for gene set enrichment (GSEA) plots and analysis in Python. Built on top of Enrichr API.
Installation
enrichrpy is easily installed with the pip package manager.
Python>=3.6 required.
pip install enrichrpy
Basic Usage
A collab notebook with basic usage examples is available here.
Note, all plots generated by enrichrpy are created by altair, so they can be easily downloaded as either .svg or .png files from your browser.
Enrichr GSEA statistics
import enrichrpy.enrichr as een
import enrichrpy.plotting as epl
genes = [
'TYROBP', 'HLA-DRA', 'SPP1', 'LAPTM5', 'C1QB',
'FCER1G', 'GPNMB', 'FCGR3A', 'RGS1', 'HLA-DPA1',
'ITGB2', 'C1QC', 'HLA-DPB1', 'IFI30', 'SRGN',
'APOC1', 'CD68', 'HLA-DRB1', 'C1QA', 'LYZ',
'APOE', 'HLA-DQB1', 'CTSB', 'HLA-DQA1', 'CD74',
'AIF1', 'FCGR2A', 'CD14', 'S100A9', 'CTSS'
]
df = een.get_pathway_enrichment(genes, gene_set_library='GO_Biological_Process_2021')
df
Enrichment bar plot
epl.enrichment_barplot(df, n=20)
Enrichment dot plot
epl.enrichment_dotplot(df, n=20, hue='Z-score', log=True)
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
enrichrpy-0.1.0.tar.gz
(4.5 kB
view details)
File details
Details for the file enrichrpy-0.1.0.tar.gz
.
File metadata
- Download URL: enrichrpy-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f95a034678c62d126c4679efe2531d753a0e165b5e98afcbd1495cdd8ae0c24d |
|
MD5 | 7409e92ad787d6ad49b9ebc6430bd903 |
|
BLAKE2b-256 | 47953561e697b821712ebe2ecdd8a11c990c326659a7bf9c9528b956bc4737ea |