Skip to main content

Protein-Protein Interaction (PPI) network construction and analysis using STRING-db (https://string-db.org/) in Python.

Project description

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.

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

ppi_net_builder-0.1.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

ppi_net_builder-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file ppi_net_builder-0.1.1.tar.gz.

File metadata

  • Download URL: ppi_net_builder-0.1.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.10

File hashes

Hashes for ppi_net_builder-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c286db706c00b2a1fa62ea0e68af1dc25d601566493ebfae9764acad459d5739
MD5 606a39e8aefdeb5fcecc73630cb2a15c
BLAKE2b-256 2cea2cd526a4c570d94c18fca6e471d80519924755cd9f6da1e9263c8534f232

See more details on using hashes here.

File details

Details for the file ppi_net_builder-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ppi_net_builder-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba98b81b31ccc786d8e53ec7e1ec174185226ce0eb11c537c0f484e3f6c4080a
MD5 c416e8dd34675436e24cc91102c8ee9d
BLAKE2b-256 7ed899933cebb16c03851c03083fbfb3dde58d25196d358bf8ca3f5b5de4e530

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