Interactive anatomy of a C. elegans neural model

A 3D explorer of a 300-cell Brian2 model, showing ion channels, receptors, pumps, synapses, and the integration status of each modeled component.

At a glance

Question
What exactly is represented inside a biophysical neural model?
My contribution
Built a 3D inspection interface for a 300-cell Brian2 model and its channels, receptors, pumps, and synapses.
Result & scope
An anatomy and integration-status explorer. Component presence does not establish biological validation of the complete model.
In this write-up

What this is

A code-grounded 3D anatomy of the C. elegans Tier4 whole-cell electrical substrate — the Brian2 model that puts CeNGEN-scaled ion channels, ligand-gated receptors, pumps, transporters, gap junctions, and single-pool ion dynamics onto 300 cells at their real morphological positions.

The explorer distinguishes implemented components from missing ones. Every structure is rendered with a status read straight from the assemble path:

  • ON — integrated and active on the default assemble path
  • default-OFF — integrated but a build flag is needed to flip it on
  • ORPHANED — module exists / registers but is not on the assemble path
  • NOT INTEGRATED — known-missing structure, diagnosed by audit

Nothing is illustrative unless it is explicitly flagged as such. The voltage colour and Ca²⁺ glow are driven by a real Brian2 trajectory emitted from the model, not hand-authored.

Code and data: github.com/rohit-ravi2/substrate-anatomy. The model build is model/network/layer2/assemble.py, and model/tests/emit_substrate_inventory.py regenerates the explorer’s data from that code.

How to read it

Two views share one data bundle:

  • Hero cell — AVA at full molecular detail: per-segment morphology (soma / axon / dendrite) plus its channel, receptor, and pump complement with per-channel gbar (CeNGEN TPM × γ × C_global).
  • Network — 300 cells at their real µm soma positions, wired by the actual connectome (chemical + gap-junction edges), coloured live by the substrate’s own voltage trajectory.

The completeness panel on the right is the audit, rendered: status chips filter the inventory, and every structure carries its file:line provenance.

Known-missing structure

Four structures are deliberately marked NOT INTEGRATED, each cited in the inventory to the substrate audit that diagnosed it:

  1. Spatial glial K-siphon — current glia is a K sink only, with no return path to the cell interior.
  2. Multi-compartment cleft ↔ reservoir with a grounded K_in source (the local-nkcc route was ruled out).
  3. Grounded γ_NCA — a regenerative inward N-shape with a first-principles conductance rather than a stability-floor placeholder.
  4. Ca-K brake relief — a grounded balance so the SLO-1 (BK) and KCNL-1 (SK) brakes do not erase that regenerative N-shape. It has to land together with the grounded K_in source; either alone is insufficient.

These are the foundation gaps the substrate work is converging on, shown in red rather than hidden.