Protein-Protein Interaction (PPI) network construction and analysis using STRING-db (https://string-db.org/) in Python.
Project description
PPI-net-builder
PPI-net-builder is a Python package for constructing and analyzing protein-protein interaction (PPI) networks using the STRING-db database.
Features
- Construct PPI networks from a list of genes.
- Extract high-modality subnetworks.
- Perform enrichment analysis on the main network or its subnetworks.
- Save enrichment plots for visualization.
Installation
Install the package using pip:
pip install ppi-net-builder
Usage
Here is an example demonstrating how to use PPI-net-builder:
from ppi_net_builder import NetworkBuilder
# List of genes to construct the network
genes = ["p53", "BRCA1", "cdk2", "Q99835"]
# Specify the annotation file name (this will be created later)
annot_file_name = "./annotation.csv"
# Initialize the NetworkBuilder
nb = NetworkBuilder(genes,
annot_file_name=annot_file_name,
add_color_nodes=10)
# Construct a PPI network and find high-modality subnetworks
nb.construct_network()
nb.extract_subnets()
print(nb.subnets)
# Perform enrichment analysis on the main network or subnetworks
enrich_df = nb.get_enrichment_table()
print(enrich_df.head())
# Save enrichment analysis plots
nb.save_enrichment_plot(img_file_name="enrichment.png")
Requirements
- Python 3.9 or higher
- Dependencies are automatically installed with the package.
Contributing
Contributions are welcome! Feel free to submit issues or pull requests to improve the package.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ppi_net_builder-0.1.2.tar.gz.
File metadata
- Download URL: ppi_net_builder-0.1.2.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d36429abf3a8cabc58383bfa4d1527b5ef47416efd2255f82b37fd10de7627a8
|
|
| MD5 |
2cab018c2ae7a86e9865c0d337170a3e
|
|
| BLAKE2b-256 |
5aecd7f745bcdd6dbbf64e01c63d9cb0fecdc609830b88f867f2fc66ea909c0a
|
File details
Details for the file ppi_net_builder-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ppi_net_builder-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f595114a944925ab2f0e9bb148dab22a6079512651efce350bd1a6f3587e39d
|
|
| MD5 |
10fbc69392450773c1a73924c97cda38
|
|
| BLAKE2b-256 |
e8b66a2c94d7fd4ae10e6d707b1c8422e6c2972ffaad75bf0b749af74e5dea63
|