API Reference
This reference maps the curated public surface of jax_morph. For end-to-end examples, start with
Basic Usage or the example notebooks.
Core#
StateFieldSpecandBaseStatedeclare and hold model state;build_state_from_modelsynthesizes a typed state class.- Geometry utilities: displacement, distance, and neighbourhood helpers.
SimulationStep,StochasticStep, andStepTypedefine validated steps;check_stochastic_stepvalidates a stochastic step's trace contract.Model: compose steps into a validated simulation pipeline.simulate: sample a pathwise-differentiable rollout.trajectory_logpandtransition_logp: score sampled rollouts.- Autodiff utilities: straight-through and numerical helpers.
- Field constants: prefilled state and physics field specs for custom steps.
Physics#
- Interaction potentials: force-free, pairwise, Morse, compact-repulsion, harmonic, and Lennard-Jones energy laws.
- Relaxation:
MechanicalRelaxationandrelax_equilibrium, FIRE relaxation with implicit equilibrium gradients. - Dynamics:
BrownianDynamicsandActiveBrownianDynamics2D, scorable stochastic motion. VirialStress: per-cell mechanical stress sensing.FreeScreenedDiffusion: screened-diffusion signalling.SaturatingCellGrowth: saturating radial growth.- Birth and death:
Death,Division, andreconstruct_lineage, discrete population events and lineage recovery.
Control#
ODEController: base class for continuous-time controllers.GeneNetworkConnectionist,NeuralODE, andGeneNetworkMWC: concrete controller families.
Serialization#
TrajectoryRecord: a loaded complete trajectory and its step size.save_modelandload_model: persist model numeric leaves against a caller-provided template.save_stateandload_state: persist generated state snapshots.save_trajectoryandload_trajectory: persist complete histories with metadata.
Visualization#
- Visualization: static cell-cluster rendering, trajectory animation, and per-cell field
time series. Install the optional
vizextra to render with matplotlib.