Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

corneto logo

CORNETO: Unified knowledge-driven network inference from omics data.

Paper | Documentation | Notebooks

GitHub stars main


CORNETO is a Python framework for inferring biological networks from omics data by framing them as optimisation problems. It provides a unified, flexible, and extensible API to solve a wide range of network inference problems, including signalling pathway and metabolic model reconstruction.

Why CORNETO?

Feature Why it matters
🧩 Unified optimisation core Express causal signaling, FBA, PCSF & more with the same primitives.
🎯 Exact, solver-backed answers LP/MILP formulations guarantee optimality
📊 Multi-sample power Borrow strength across conditions for cleaner, comparable subnetworks.
🔧 Modular & extensible Plug-in new constraints, priors, or scoring functions in a few lines of code.
⚡ Multi-backend Supports CVXPY and PICOS backends with dozens of mathematical solvers.

🚀 Installation

For most users, we recommend creating a conda environment and installing the research flavor:

conda create -n corneto python>=3.11
conda activate corneto
conda install python-graphviz
pip install corneto[research]

This installs CORNETO with all research dependencies including Gurobi, PICOS, and visualization libraries.

Standard Installation

The minimal installation via pip provides core functionalities:

pip install corneto

Optional dependencies

CORNETO provides several optional dependency groups:

  • plot: Graphviz, NetworkX, and Matplotlib visualization support
  • research: Full research stack with Gurobi, PICOS, visualization, and network tools
  • os: Open-source solvers (SCIP, HiGHS) with visualization and network tools
  • ml: Machine learning dependencies (JAX, Keras, scikit-learn)

Install any combination with:

pip install corneto[plot]         # Visualization without the full research stack
pip install corneto[research,ml]  # Multiple extras

Gurobi Installation

For research problems, we strongly recommend using the Gurobi solver. Gurobi is a commercial solver that offers free academic licences. To install and configure Gurobi, please refer to the official Gurobi documentation. After installation, you can verify that Gurobi is correctly set up by running:

from corneto.utils import check_gurobi
check_gurobi()

Development Installation

If you plan to contribute to CORNETO, we recommend using Poetry for dependency management.

git clone https://github.com/saezlab/corneto.git
cd corneto
poetry install --with dev

Legacy Compatibility

The stable version used by LIANA+ and NetworkCommons remains available. However, we recommend using the latest version for new projects to access the latest features and improvements described in our manuscript.

🧪 Experiments

Notebooks with the experiments presented in the manuscript are available here: https://github.com/saezlab/corneto-manuscript-experiments

🎓 How to cite

@article{Rodriguez-Mier2025,
	author = {Rodriguez-Mier, Pablo and Garrido-Rodriguez, Martin and Gabor, Attila and Saez-Rodriguez, Julio},
	title = {Unifying multi-sample network inference from prior knowledge and omics data with CORNETO},
	journal = {Nature Machine Intelligence},
	year = {2025},
	doi = {10.1038/s42256-025-01069-9},
	url = {https://www.nature.com/articles/s42256-025-01069-9}
}

🙏 Acknowledgements

CORNETO is developed at the Institute for Computational Biomedicine (Heidelberg University). We acknowledge funding from the European Unions Horizon 2020 Programme under the grant agreement No 951773 (PerMedCoE https://permedcoe.eu/) and under grant agreement No 965193 (DECIDER https://www.deciderproject.eu/)

Saez lab logo UKHD logo PerMedCoE logo UKHD logo

Release files for corneto 1.0.0rc6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for corneto 1.0.0rc6
File Size Uploaded
corneto-1.0.0rc6.tar.gz 237.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for corneto 1.0.0rc6
File Interpreter ABI Platform
corneto-1.0.0rc6-py3-none-any.whl Python 3 none any Details

Total release size: 533.2 kB

Release files / corneto-1.0.0rc6.tar.gz

Download URL corneto-1.0.0rc6.tar.gz
Size 237.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a91ac8d9b12f0c7b2172b36e9d89b7ad05fbea4e5d262fb8f3c53a0114a2eacc
BLAKE2b-256 checksum
How to use checksums
23fc9fb6cd70310602aeb70b0023671e5844cacb21fc0d2477bec72313f3a88c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / corneto-1.0.0rc6-py3-none-any.whl

Download URL corneto-1.0.0rc6-py3-none-any.whl
Size 295.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a05ea403635107525815950b6d5ac688fce35a01552237fe926f3ef6e8962af6
BLAKE2b-256 checksum
How to use checksums
bec2df8eb7ed60ff7b1e17d90e5d4156e43e4d92c41fac39087fb4874742779c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page