MaBoSS toy example

MaBoSS toy example#

In this notebook, we show how to reproduce part of the analyses of the “Toy Model” example available on https://maboss.curie.fr/.

Note that simulations can take a moment to execute.

import maboss
fast_sim = maboss.load("Four_cycle.bnd", "Four_cycle_FEscape.cfg")
#maboss.wg_set_istate(fast_sim)
maboss.set_nodes_istate(fast_sim, ["A", "B"], [0, 1])
fast_res = fast_sim.run()
fast_res.plot_trajectory()
../../_images/1be0530dafeebe0ab7ea907b7a49bad485e5ef6b3b69f56d7e663783e8e554ea.png
slow_sim = fast_sim.copy()
slow_sim.param["$escape"] = 0.00001
slow_res = slow_sim.run()
slow_res.plot_trajectory()
../../_images/cd9a9acb737dc2ecd27dd40dbb8b2a037cad673e85c298daf99e6e15c6fed274.png