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)
Metadata
Release files for enrichrpy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| enrichrpy-0.1.0.tar.gz | 4.5 kB | Without provenance | Details for enrichrpy-0.1.0.tar.gz |
Release files / enrichrpy-0.1.0.tar.gz
| Download URL | enrichrpy-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f95a034678c62d126c4679efe2531d753a0e165b5e98afcbd1495cdd8ae0c24d
|
|
BLAKE2b-256 checksum How to use checksums |
47953561e697b821712ebe2ecdd8a11c990c326659a7bf9c9528b956bc4737ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for enrichrpy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.