Skip to main content

A Python package for scalable network analysis and high-quality visualization.

Project description

RISK

Python pypiv License DOI Tests

RISK (Regional Inference of Significant Kinships) is a next-generation tool for biological network annotation and visualization. It integrates community detection algorithms, rigorous overrepresentation analysis, and a modular framework for diverse network types. RISK identifies biologically coherent relationships within networks and generates publication-ready visualizations, making it a useful tool for biological and interdisciplinary network analysis.

For a full description of RISK and its applications, see:
Horecka, I. and Röst, H. (2025). RISK: a next-generation tool for biological network annotation and visualization. Bioinformatics. https://doi.org/10.1093/bioinformatics/btaf669

Documentation and Tutorial

Full documentation is available at:

Installation

RISK is compatible with Python 3.8 or later and runs on all major operating systems. To install the latest version of RISK, run:

pip install risk-network --upgrade

Key Features of RISK

  • Broad Data Compatibility: Accepts multiple network formats (Cytoscape, Cytoscape JSON, GPickle, NetworkX) and user-provided annotations formatted as term–to–gene membership tables (JSON, CSV, TSV, Excel, Python dictionaries).
  • Flexible Clustering: Offers Louvain, Leiden, Markov Clustering, Greedy Modularity, Label Propagation, Spinglass, and Walktrap, with user-defined resolution parameters to detect both coarse and fine-grained modules.
  • Statistical Testing: Provides permutation, hypergeometric, chi-squared, and binomial tests, balancing statistical rigor with speed.
  • High-Resolution Visualization: Generates publication-ready figures with customizable node/edge properties, contour overlays, and export to SVG, PNG, or PDF.

Example Usage

We applied RISK to a Saccharomyces cerevisiae protein–protein interaction (PPI) network (Michaelis et al., 2023; 3,839 proteins, 30,955 interactions). RISK identified compact, functional modules overrepresented in Gene Ontology Biological Process (GO BP) terms (Ashburner et al., 2000), revealing biological organization including ribosomal assembly, mitochondrial organization, and RNA polymerase activity.

RISK analysis of the yeast PPI network RISK workflow overview and analysis of the yeast PPI network. Clusters are color-coded by enriched GO Biological Process terms (p < 0.01).

Citation

Primary citation (paper)

Horecka, I. and Röst, H. (2025) RISK: a next-generation tool for biological network annotation and visualization. Bioinformatics. https://doi.org/10.1093/bioinformatics/btaf669

Software archive (used for publication figures)

RISK software archive corresponding to the published manuscript. Zenodo. https://doi.org/10.5281/zenodo.17257418

Contributing

We welcome contributions from the community:

Support

If you encounter issues or have suggestions for new features, please use the Issues Tracker on GitHub.

License

RISK is open source under the GNU General Public License v3.0.

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

risk_network-0.1.0.tar.gz (103.4 kB view details)

Uploaded Source

Built Distribution

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

risk_network-0.1.0-py3-none-any.whl (97.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: risk_network-0.1.0.tar.gz
  • Upload date:
  • Size: 103.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for risk_network-0.1.0.tar.gz
Algorithm Hash digest
SHA256 664258e630fc0ee62cf4ec70d581841242d38f37606549a143b5ed92020cbc76
MD5 110c793519543a3a0366a04f350e1ee5
BLAKE2b-256 9a8d36fcc1c9900d8ebaa0eadd559f812d32c6430f2f0bba99a458e70a9cb9f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: risk_network-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 97.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for risk_network-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e43a57b2dcf862e29341b48b6434db2919b1ac553018b7411a995e7513c8d319
MD5 973404be3bf0a86fddebd4deb95c24c7
BLAKE2b-256 1ec2f378f8341e9b084f08d92f2285cc60d387d9362fd6e27ea1bcb51d0d837f

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