Caution
This repository is designed to work with risk-network==0.0.11
, the version submitted for publication. To ensure compatibility with these notebooks and figures, please run:
pip install risk-network==0.0.11
This repository provides Jupyter notebooks and datasets necessary to reproduce all figures from the RISK and SAFE analyses described in:
Horecka et al., "RISK: a next-generation tool for biological network annotation and visualization", Bioinformatics, 2025.
DOI: 10.1234/zenodo.xxxxxxx
Full documentation (with examples and usage guidance) is available at https://riskportal.github.io/network-tutorial/.
This repository contains the notebooks and data needed to reproduce figures from the RISK and SAFE analyses. The full RISK source code is available at riskportal/network.
Jupyter notebooks and processed datasets for RISK-based clustering, annotation, and visualization:
fig_1_supp_fig_3_6_7_8.ipynb
– Yeast PPI network analysis, RISK workflow overview, GO BP enrichment, and comparison to SAFEsupp_fig_1_4.ipynb
– GI network analysis (RISK) and side-by-side comparison with SAFEsupp_fig_2_5.ipynb
– RISK analysis of the full yeast PPI network and comparative clustering (RISK vs SAFE)supp_fig_9.ipynb
– RISK analysis of a high-energy physics citation network (non-biological validation)supp_fig_10.ipynb
,supp_fig_10.py
– Benchmarking: execution time and memory usage for RISK (vs SAFE) using synthetic networks
Jupyter notebooks and datasets for SAFE-based overrepresentation analysis and benchmarking:
supp_fig_3_4_5.ipynb
– SAFE-based annotation and domain export for GI and PPI networks, including pruned/full networkssupp_fig_10.ipynb
,supp_fig_10.py
– Benchmarking: execution time and memory usage for SAFE (vs RISK) on synthetic networkssafepy/
– Lightweight Python implementation of SAFE, includes core logic and utilities
To run the notebooks locally, follow these steps:
Download and install Python 3.8 or higher from the official website.
💡 Windows Tip: Check the box for Add Python to PATH during install. If you missed it, this guide can help.
- Windows
python -m venv risk-env
risk-env\Scripts\activate
- macOS/Linux
python3 -m venv risk-env
source risk-env/bin/activate
pip install -r requirements.txt
pip install jupyter
git clone https://github.com/riskportal/network-publication.git
cd network-publication
jupyter notebook
Use the following notebooks to regenerate all manuscript figures:
fig_1_supp_fig_3_6_7_8.ipynb
– Yeast PPI network annotation and layoutsupp_fig_1_4.ipynb
– GI network module analysissupp_fig_2_5.ipynb
– PPI comparisons (RISK vs SAFE)supp_fig_9.ipynb
– Citation network validationsupp_fig_10.ipynb
– Benchmarking RISK vs SAFE
supp_fig_3_4_5.ipynb
– SAFE-based GO BP overrepresentation (GI and PPI)supp_fig_10.ipynb
– Benchmarking SAFE (comparative execution time, memory usage)
If you use RISK or SAFE benchmarking in your research, please reference the following:
Horecka et al., "RISK: a next-generation tool for biological network annotation and visualization", 2025.
DOI: 10.1234/zenodo.xxxxxxx
This repository is distributed under the GNU General Public License v3.0.