Lattice Microbes#

Lattice Microbes is a high-performance simulation package for modeling stochastic biochemical kinetics in living cells. By leveraging GPUs, LM accelerates sampling of the chemical master equation (CME) and the reaction–diffusion master equation (RDME), enabling studies that range from well-mixed reaction networks to spatially resolved cellular environments. LM supports thousands of reactions among hundreds of species, integrates with Python for interactive model construction, and allows hybrid approaches to connect processes across length and concentration scales. Researchers use LM to explore how molecular interactions and spatial organization give rise to emergent cellular behaviors in both prokaryotic and eukaryotic systems.

Lattice Microbes can simulate trajectories following either a chemical master equation (CME),

\[\frac{\mathrm{d}P(\mathbf{x},t)}{\mathrm{d}t} = \sum_{r}^{R} \Big[-a_r(\mathbf{x}) P(\mathbf{x},t) + a_r(\mathbf{x}-\mathbf{S_r}) P(\mathbf{x}-\mathbf{S_r},t)\Big],\]

or a reaction–diffusion master equation (RDME),

\[\begin{split}\frac{\mathrm{d} P(\mathbf{x},t)}{\mathrm{d}t} &= \sum_{\nu}^{V}\sum_{r}^{R} \Big[-a_r(\mathbf{x}_\nu) P(\mathbf{x}_\nu,t) + a_r(\mathbf{x}_\nu-\mathbf{S_r}) P(\mathbf{x}_\nu-\mathbf{S_r},t)\Big] \\ &\quad+ \sum_{\nu}^{V}\sum_{\xi}^{\pm\hat{i},\pm\hat{j},\pm\hat{k}}\sum_{\alpha}^{N} \Big[-d^{\alpha} x_{\nu}^{\alpha} P(\mathbf{x},t) + d^{\alpha} (x_{\nu+\xi}^{\alpha}+1) P(\mathbf{x}+1_{\nu+\xi}^{\alpha}-1_{\nu}^{\alpha},t)\Big],\end{split}\]

using a variety of solvers. Both CME and RDME simulations support multiple reaction types (zeroth, first, and second order), and the Python interface enables interactive construction of geometries for spatial simulations.

For help and general discussion please submit your problems in the github repository issues section. issues.