Skip to main content

PPI-net-builder

PyPI version Python version License

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.

Metadata

Release files for ppi-net-builder 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ppi-net-builder 0.1.2
File Size Uploaded
ppi_net_builder-0.1.2.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ppi-net-builder 0.1.2
File Interpreter ABI Platform
ppi_net_builder-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 24.8 kB

Release files / ppi_net_builder-0.1.2.tar.gz

Download URL ppi_net_builder-0.1.2.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d36429abf3a8cabc58383bfa4d1527b5ef47416efd2255f82b37fd10de7627a8
BLAKE2b-256 checksum
How to use checksums
5aecd7f745bcdd6dbbf64e01c63d9cb0fecdc609830b88f867f2fc66ea909c0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.3

Release files / ppi_net_builder-0.1.2-py3-none-any.whl

Download URL ppi_net_builder-0.1.2-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f595114a944925ab2f0e9bb148dab22a6079512651efce350bd1a6f3587e39d
BLAKE2b-256 checksum
How to use checksums
e8b66a2c94d7fd4ae10e6d707b1c8422e6c2972ffaad75bf0b749af74e5dea63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page