Close

Expressive modeling and fast simulation for dynamic compartments

Till Köster, Philipp Henning, Tom Warnke, Adelinde Uhrmacher

Preprint posted on 3 April 2024 https://www.biorxiv.org/content/10.1101/2024.04.02.587672v1

Running dynamic compartment mathematical models faster and directly in your browser with the third generation of the multi-level modelling and simulation framework (ML-Rules).

Selected by Benjamin Dominik Maier

Background: Rule-based Modelling

Biomolecules like proteins typically have multiple post-translational modification sites and binding partners. Traditional modelling approaches individually define reactions for each possible interaction, which quickly becomes unfeasible considering their combinatorial complexity (Chylek et al., 2015). When looking at a protein with just three phosphorylation sites (○) which can be phosphorylated (●), 12 reactions are needed to describe all possible states explicitly (Fig. 1, left). However, employing implicit reaction templates in rule-based modelling reduces this to just 3 patterns (Fig. 1, right). For instance, the pink rule states that if the left phosphorylation site is unphosphorylated, it can be phosphorylated. This pattern can then be applied to input states fulfilling these defined contextual prerequisites to update their state whenever they are selected. For proteins with more sites and binding partners like the epidermal growth factor receptor (EGFR) complex the difference becomes even more striking, as 1.9×108 states can be described implicitly with just 20 reactions (Blinov et al., 2006). More information about rule-based modelling can be found in a review paper from Chylek et al. (2013).

Fig. 1: Explicit vs. implicit network representation. Figure created with PowerPoint.

Key Findings

In this preprint, Köster and colleagues built on previous work and have improved their multi-level modelling and simulation framework of cellular systems (ML-Rules) (Maus et al. 2011; Warnke et al., 2015). Their study aimed to 1) account for flexible modelling of compartmental dynamics, 2) optimise the performance of the simulation routine with a new simulation engine and 3) enable web browser-based simulations.

Dynamic Compartments

Most modelling frameworks consider reactions confined to specific compartments, with their reaction dynamics influenced by factors like compartmental volume, temperature, pH, and reactant density. However, they typically treat compartments as static entities, simplifying simulations but preventing modellers to realistically represent structural compartment changes like fission/fusion, formation/disintegration and translocation processes (Fig. 2). In 2011, John et al. proposed React(C) to express dynamic compartments through hyperedges (concept outlined in Suppl. Fig. 1). Yet no hypergraph-rewriting-based simulator exists due to computational complexity and model specification challenges.

Fig. 2: Dynamic structural compartment changes. Figure created with PowerPoint.

ML-Rules version 3 used in this study is based on an alternative approach called multiset term rewriting, where the model is represented by n-ary trees (see GeeksForGeeks Tutorial and slides by Paolo Milazzo). Let us take a three species system S={A, B, C } with multiset rewriting rules {AB  → C , C  → AB}, we can compute its traces in advance; e.g. A5B3 → A4B2C → A3BC2 → A2C3 → A3BC2 → A4B2C  → A5B3 and then just apply these operations on those multiset of entities involved whenever needed.

Performance Updates

As part of this study, ML-Rules has been re-implemented in the Rust programming language to improve its performance. Additionally, a new hybrid rule-based simulation method has been developed, allowing individual attributes to be simulated in a network-free manner: Following consistency checks, all possible species and reactions are enlisted in a flat representation to speed up the actual simulation (in-advance enumeration). Attributes that cannot be easily represented in a network-based manner are not explicitly enumerated before simulation execution but instead instantiated with appropriate values only once the actual rule is selected and applied. After some optimization steps, the model is simulated using the stochastic simulation algorithm (SSA) (outlined in my previous preLights post). Whenever structural compartment changes occur (see Fig. 2), the model is transformed back into a tree-like hierarchical representation to apply them before reinitiating the routine.

Web Server-based Simulations

ML-Rules 3 comes with a web server for running model simulations directly in the browser, eliminating the need for software installation or browser extensions. Executable models can be shared and executed using custom URLs, which enhances accessibility and reproducibility. Unlike other web server-based simulation tools, ML-Rules 3 operates directly on the user’s machine, cutting costs associated with server or cloud systems.

Case Study I: Fission Yeast Model

In order to show the improved performance of ML-Rules 3, Köster and colleagues turned to their multi-cellular model of fission yeast from Maus et al. 2011. This model describes the yeast cell cycle, mating type switching, cell cycle inhibition mechanisms between cells of opposite mating type as well as cell division (Fig. 3) and consists of 15 rules. Simulating the model with ML-Rules 3 was shown to be 100x faster than the old Java-based implementation of ML-Rules 2. While running the simulation in the web browser (link to run it yourself) slows down the simulation slightly, it remains more than 50x faster.

Fig. 3 Fission Yeast Model from Maus et. al (2011). Figure taken from Köster et al. (2024), BioRxiv published under the CC-BY 4.0 International licence.

Case Study II: mRNA Delivery Model

Next, Köster and colleagues revised a previously published multi-level kinetic model of mRNA delivery via the transfection of small lipid spheres containing mRNA (so called lipoplexes) (Ligon et al., 2014) to demonstrate the improved versatility of ML-Rules 3 regarding dynamic compartments. In the model, extracellular lipoplexes attach to the cell surface to enter the cell via endocytosis (Fig. 4). This leads to the formation of endosomes inside the cell which can either lyse or degrade. If they lyse, the internal lipoplex can release their mRNA content into the cell. Subsequently, the mRNA can undergo translation within the cell, leading to protein synthesis. Meanwhile, endosomes, lipoplexes, mRNA, immature as well as mature proteins are constantly degraded.

Fig. 4 Lipoplex Transfection Model from Ligon et al. (2014). Figure taken from Köster et al. (2024), BioRxiv published under the CC-BY 4.0 International licence.

Ligon and colleagues had to make multiple simplifications to make their COPASI model implementation and simulation feasible. These include setting a fixed number of mRNA molecules per lipoplex despite experimental data showing large variations and not accounting for lipoplexes unpacking their mRNA directly into endosomes where it is degraded. In the reimplemented model presented in this preprint, the lipoplexes can be treated as individual dynamic compartments allowing for varying mRNA amounts as well as the unpacking of mRNA into the endosome for degradation. This thereby overcomes the two key limitations of the earlier model. When re-running the model, the authors found that it behaved more realistically and in better accordance with the experimental wet-lab data. Moreover, the simulation time was shown to be 6x faster in the ML-Rules 3 implementation compared to the previous COPASI implementation.

References

Blinov ML, Faeder JR, Goldstein B, Hlavacek WS. A network model of early events in epidermal growth factor receptor signaling that accounts for combinatorial complexity. Biosystems. 2006;83(2):136-151. https://doi.org/10.1016/j.biosystems.2005.06.014

Chylek, L. A., Harris, L. A., Tung, C. S., Faeder, J. R., Lopez, C. F., & Hlavacek, W. S. (2014). Rule-based modeling: a computational approach for studying biomolecular site dynamics in cell signaling systems. Wiley interdisciplinary reviews. Systems biology and medicine, 6(1), 13–36. https://doi.org/10.1002/wsbm.1245

Chylek, L. A., Harris, L. A., Faeder, J. R., & Hlavacek, W. S. (2015). Modeling for (physical) biologists: an introduction to the rule-based approach. Physical Biology, 12(4), 045007. https://doi.org/10.1088/1478-3975/12/4/045007

John, M., Lhoussaine, C., Niehren, J., & Versari, C. (2011). Biochemical Reaction Rules with Constraints. Programming Languages and Systems, 338–357. https://doi.org/10.1007/978-3-642-19718-5_18

Ligon, T. S., Leonhardt, C., & Rädler, J. O. (2014). Multi-Level Kinetic Model of mRNA Delivery via Transfection of Lipoplexes. PLOS ONE, 9(9), e107148. https://doi.org/10.1371/journal.pone.0107148

Maus, C., Rybacki, S., & Uhrmacher, A. M. (2011). Rule-based multi-level modeling of cell biological systems. BMC Systems Biology, 5(1), 166. https://doi.org/10.1186/1752-0509-5-166

Warnke, T., Helms, T., & Uhrmacher, A. M. (2015). Syntax and Semantics of a Multi-Level Modeling Language. Proceedings of the 3rd ACM SIGSIM Conference on Principles of Advanced Discrete Simulation, 133–144. Presented at the ACM SIGSIM Conference London, United Kingdom. https://doi.org/10.1145/2769458.2769467

Supplementary Materials

Suppl. Fig. 1 Difference between graphs and hypergraphs in expressiveness. Unlike traditional binary graphs (either two nodes/vertices are connected by an edge or not), hypergraphs allow multi-way connections between any number of vertices. Figure created with PowerPoint.

 

Posted on: 18 April 2024 , updated on: 19 April 2024

doi: https://doi.org/10.1242/prelights.37158

Read preprint (No Ratings Yet)

Author's response

The author team shared

Q1: What are the differences in memory requirements/usage for running models between ML-Rules 2, 3 and the webserver?

We have not explicitly measured the memory usage, but we can provide a general understanding. ML-Rules 2, being implemented in Java, typically has a larger memory footprint. However, for large and sparse models, ML-Rules 2’s dynamic algorithm may require less memory. As for the web version, the web assembly version has some overhead compared to the locally executed version. However, as the web assembly of ML-Rules 3 runs locally, it avoids any memory load on the web server.

Q2: When playing a bit with ML-Rules web, I wondered whether it is  possible to run multiple trajectories at the same time and whether it is possible to download the underlying data for the created plot. Another useful feature would be a revert button to go back to the original model after changing/playing around with some parameters/settings without the need of clicking the browser refresh button.

Currently, the ML-Rules web does not support running multiple trajectories or downloading the data. For these experiments, you will need to use the local version. However, you can revert to the original model using the ctrl-z command.

Q3: If a model developer makes updates to their executable model, must the modeller generate a new custom URL? Is there a version control system available to connect to previous or newer versions of the model?

You can create a single link to every publically available model by using url= in the url. E.g. “https://mlrules.pages.dev/url=%22raw.githubusercontent.com%2FBaltic-Cod%2FEBC_IBM%2Fmain%2FBasic_asph%2FBasic_asphyx.mlrj” will link to this git model “https://raw.githubusercontent.com/Baltic-Cod/EBC_IBM/main/Basic_asph/Basic_asphyx.mlrj“. You can use that to link to, e.g., different GitHub versions of models.

Q4: Are you intending to develop a Graphics processing units  (GPUs)-based simulation tool in future?

No, not for executing individual ML-Rules runs. We found GPU/parallel execution can make sense for spatial SSA (e.g. https://doi.org/10.1145/3573900.3591115) or model ensembles (https://doi.org/10.1109/WSC57314.2022.10015448) however we have no plans to integrate this into ML-Rules.

Have your say

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sign up to customise the site to your preferences and to receive alerts

Register here

preLists in the bioinformatics category:

‘In preprints’ from Development 2022-2023

A list of the preprints featured in Development's 'In preprints' articles between 2022-2023

 



List by Alex Eve, Katherine Brown

9th International Symposium on the Biology of Vertebrate Sex Determination

This preList contains preprints discussed during the 9th International Symposium on the Biology of Vertebrate Sex Determination. This conference was held in Kona, Hawaii from April 17th to 21st 2023.

 



List by Martin Estermann

Alumni picks – preLights 5th Birthday

This preList contains preprints that were picked and highlighted by preLights Alumni - an initiative that was set up to mark preLights 5th birthday. More entries will follow throughout February and March 2023.

 



List by Sergio Menchero et al.

Fibroblasts

The advances in fibroblast biology preList explores the recent discoveries and preprints of the fibroblast world. Get ready to immerse yourself with this list created for fibroblasts aficionados and lovers, and beyond. Here, my goal is to include preprints of fibroblast biology, heterogeneity, fate, extracellular matrix, behavior, topography, single-cell atlases, spatial transcriptomics, and their matrix!

 



List by Osvaldo Contreras

Single Cell Biology 2020

A list of preprints mentioned at the Wellcome Genome Campus Single Cell Biology 2020 meeting.

 



List by Alex Eve

Antimicrobials: Discovery, clinical use, and development of resistance

Preprints that describe the discovery of new antimicrobials and any improvements made regarding their clinical use. Includes preprints that detail the factors affecting antimicrobial selection and the development of antimicrobial resistance.

 



List by Zhang-He Goh
Close