mhn: A Python Package for Analyzing Cancer Progression with Mutual Hazard Networks#

Mutual Hazard Networks (MHN) were first introduced by Schill et al. (2019) and are used to model cancer progression. This Python package provides tools to work with MHNs. It includes optimizer classes that enable training an MHN with just a few lines of code. Additionally, it offers utility functions such as plotting MHNs and generating artificial tumor histories for a given MHN. The package also incorporates state space restriction, allowing the training of MHNs with well over 100 events, provided that individual samples contain no more than about 25 active events.

Indices and tables#