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 v0.1.0

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

Installation

pip install ppi-net-builder

Usage

from ppi_net_builder import NetworkBuilder

genes = ["p53", "BRCA1", "cdk2", "Q99835"]
annot_file_name = "./annotation.csv"  # this will be created later
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)

# do enrichment analysis on the main network or subnets
enrich_df = nb.get_enrichment_table()
print(enrich_df.head())


nb.save_enrichment_plot(img_file_name="enrichment.png")

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.0.tar.gz (7.0 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.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppi_net_builder-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 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.0.tar.gz
Algorithm Hash digest
SHA256 eeefceb9cd181dbab6c74b5de93f78507fafd0b503e55982d38d8a129b28c1b0
MD5 214e25371e9c773ce3e54652f8dba5c8
BLAKE2b-256 962ece8a7fefd11ee08051b7ddf7e3d79ccd93d12161280a3423f7023ea2d188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ppi_net_builder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b76f6adcee8642b38c1ddd55d42fb2c70a44c174a774f30b3a6ba2ff6072e1e
MD5 e42873bd2d924584b4a1be0410cdd42f
BLAKE2b-256 869c2e496c191aec82ad8c304c6f1b5d21aa304d3d08d63a3afc968a7c1124cf

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