<monospace> <bold>mhn</bold> </monospace>: a Python package for analyzing cancer progression with Mutual Hazard Networks
OPEN ACCESS
Loading...
Author / Producer
Date
2026
Publication Type
Journal Article
ETH Bibliography
yes
OPEN ACCESS
Data
Rights / License
Abstract
Mutual Hazard Networks (MHNs) are statistical models for analyzing (genetic) cancer progression. Many cancers develop silently and are only noticeable when they have significantly progressed, creating an observational gap until diagnosis. MHNs bridge this gap by reconstructing the underlying dynamics of disease progression. We present mhn, a Python package for dynamic cancer progression analysis using MHNs. It trains an MHN model from tumor genotypes. mhn overcomes challenges of numerical efficiency in model training by making use of state space restriction, allowing training MHNs with >100 mutational events, 5 times more than was possible before. The package offers (i) reconstruction of the most likely evolutionary history of tumors, (ii) sampling of artificial tumor histories, and (iii) visualization of genomic interactions and likely progression trajectories. These features substantially extend earlier implementations, providing a fast and user-friendly framework for researchers and clinicians to study cancer dynamics.Availability and implementation mhn can be installed from PyPI using pip and is available under the MIT License on GitHub (https://github.com/spang-lab/LearnMHN). Installation instructions and package functionalities are detailed on GitHub and PyPI, with a comprehensive guide on Read the Docs (https://learnmhn.readthedocs.io/en/latest/index.html) and a Jupyter notebook on GitHub to help users explore the package.
Permanent link
Publication status
published
External links
Editor
Book title
Journal / series
Volume
6 (1)
Pages / Article No.
Publisher
Oxford University Press
Event
Edition / version
Methods
Software
Geographic location
Date collected
Date created
Subject
Organisational unit
03790 - Beerenwinkel, Niko / Beerenwinkel, Niko
