API reference¶
These pages are generated from the docstrings of the code, one page per module. The names that the
package vertax exports are listed at the end of vertax/__init__.py (__all__), and can be
imported from vertax directly, for example from vertax import PbcMesh, cost_v2v.
| Module | Contents |
|---|---|
vertax.meshes.mesh |
Mesh, the base class of the meshes |
vertax.meshes.pbc_mesh |
PbcMesh, periodic meshes |
vertax.meshes.bounded_mesh |
BoundedMesh, bounded meshes with arcs |
vertax.meshes.plot |
plot_mesh, get_plot_mesh, FacePlot, EdgePlot, VertexPlot |
vertax.bilevelopt.bilevelopt |
_BilevelOptimizer, the settings and methods shared by the optimizers |
vertax.bilevelopt.pbcbop |
PbcBilevelOptimizer |
vertax.bilevelopt.boundedbop |
BoundedBilevelOptimizer |
vertax.bilevelopt.rheobop |
ShearRheologyOptimizer, ShearState |
vertax.method_enum |
BilevelOptimizationMethod, EPVariant |
vertax.energy |
energies: shape factor, line tensions (periodic and bounded) |
vertax.cost |
costs and measurements: cost_v2v, the Hessian-weighted cost \(\mathcal C_W\) (hessian_at_target, make_cost_hessian_weighted) and its staged schedule (switch_cost_at_target_topology), cost_areas, the bounded design costs (aspect_ratio_along_x, aspect_ratio_principal, make_cost_aspect_ratio_along_x, make_cost_aspect_ratio, cost_ratio, cost_checkerboard), topological_distance |
vertax.opt |
relaxation (minimize) and the four estimators, periodic meshes |
vertax.opt_bounded |
relaxation and the four estimators, bounded meshes, with the reports of the T1 tension reset (T1Resets, T1ResetReport) |
vertax.cg |
cg_linesearch, gd_linesearch |
vertax.topo |
T1 transitions: update_T1, update_T1_bounded (with reopen_margin), T1TensionReset |
vertax.geo |
lengths, perimeters, areas, and the second moments of a bounded cluster (get_cluster_moments_bounded) |
vertax.rheology |
shear rheometry and its diagnostics |
vertax.trace |
tracing a label mask into a mesh |
vertax.clamped |
mechanics of a clamped patch |
vertax.mask_analysis |
segmentation and mask helpers used by PbcMesh.from_mask |
The package¶
A differentiable JAX-based framework for vertex modeling and inverse design of epithelial tissues.
Epithelial tissues dynamically reshape through local mechanical interactions among cells. Understanding, inferring, and designing these mechanics is a central challenge in developmental biology and biophysics. VertAX is a computational framework built to address this challenge.
VertAX is a framework for vertex-based modeling: it represents epithelial tissues as two-dimensional polygonal meshes in which cells are faces, junctions are edges, tricellular contacts are vertices, and mechanical equilibrium is defined by the minimum of a user-specified energy.
Built on JAX, VertAX is designed not only for forward simulation, but also for inverse problems such as parameter inference and tissue design.
In VertAX, a Mesh represents a vertex model of an epithelial tissue. It is made of faces (cells), edges (interface between cells) and vertices (where 3 cells or more meet).
More specifically, two types of meshes are currently supported:
PbcMeshhave Periodic Boundary Conditions, and are used for bulk tissue dynamics without explicit external boundaries.BoundedMeshare designed for finite tissue clusters, with curved free interfaces.
The other first class objects of VertAX are called Bilevel Optimizers. They allow to formulate inverse problems as nested optimizations:
Here, \(X\) denotes the tissue configuration, i.e. the vertex positions of the mesh, and \(\theta\) denotes the model parameters, such as line tensions, target areas, or shape factors.
In other words, VertAX repeatedly solves a mechanical equilibrium problem for a given parameter set \(\theta\), then updates those parameters to better match data or a design objective.
In symmetry with meshes, a base abstract class _BilevelOptimizer defines common hyper-parameters and methods for the bilevel optimization, but you need to use the specialized classes:
PbcBilevelOptimizerforPbcMesh,BoundedBilevelOptimizerforBoundedMesh.
VertAX comes with pre-defined energy and cost functions but you can easily define your own functions. See the examples folder in the repository to have a typical example on how to use VertAX.
Finally, there are plot functions to easily see the results of your experiments. See plot_mesh for example.
Users can define their own energy functions for the inner optimization and cost function for the outer optimization, however we provide some basic ones. If you use your own make sure to use the exact same signature as we do for these functions, otherwise it won't work. See the cost and energy functions we provide in this documentation.