Skip to main content

A Python package for visualizing protein interaction networks from STRING database.

Project description

pronet

pronet is a Python library for fetching protein interactions from STRING database, building protein networks, visualizing them, and generating reports.

1- Installation

pip install pronet

2-  Usage

Here is a simple example of how to use pronet: 
from pronet import get_string_interactions, build_network, generate_report

proteins = ["BRCA1", "MDM2", "EGFR"]
data = get_string_interactions(proteins)
G = build_network(data, proteins, show_plot=True, layout="circular")
generate_report(G, proteins, data, save_path="protein_report.txt")

3-  Requirements

Python >= 3.8

requests

networkx

matplotlib
 
4- Features

Fetch interactions for a list of proteins using STRING API.

Build and visualize protein interaction networks using NetworkX and Matplotlib.

Generate detailed reports including main proteins, top interactions, and network statistics.

Choose different network layouts: spring, circular, or shell.

License

MIT License

Copyright (c) 2025 Sarah

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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

pronet-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

pronet-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pronet-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pronet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 56dd3e70b41ffa4afb7b17a683d46d4d7620f748941ba81b4f7d76020c00f5a5
MD5 d6bb83baeedbe2a2cd89d9b8a2ecdf10
BLAKE2b-256 7a066b7f4a3780db02c25e05bd4a8bf7b8b1379e2dd3f66d6e328cf7d50c9fe8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pronet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pronet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 005018fc04ac741c9c1ee31434b4bb5c3689e8594b1f5416ee64717384b6091a
MD5 2e38c5fde8c8e5ceebf59f3cdb432079
BLAKE2b-256 f5cd74a56c78e775a0063c714112fc505d15becbd48c6d01099a7393fa0d1f10

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