Overview & Roadmap#
This page is a map. It explains what braincell does, how the pieces fit
together, and — most importantly — where to go next depending on what you
want to accomplish.
What problem does braincell solve?#
Computational neuroscience often needs to simulate the electrical behavior of
neurons in biophysical detail: the flow of ions through voltage-gated channels,
the spread of voltage along dendrites, and the resulting spikes. braincell
provides this in a way that is:
Detailed — from a single isopotential compartment to a full morphological reconstruction with hundreds of compartments.
Fast and portable — every model compiles with JAX and runs on CPU, GPU, or TPU without code changes.
Differentiable — gradients flow through whole simulations, so you can fit parameters with gradient descent.
The two kinds of cell#
Almost everything in braincell is organized around two cell classes:
Class |
Use it when… |
Built from |
|---|---|---|
the neuron can be treated as a single isopotential point (a “ball”), or you are prototyping channel dynamics. |
ion species ( |
|
dendritic geometry matters — voltage attenuation, distributed channels, synaptic integration. |
a |
Both inherit from braincell.HHTypedNeuron and share the same ion,
channel, and integrator machinery — so concepts you learn for one transfer to
the other.
The pipeline#
A multi-compartment model moves through four conceptual stages. Understanding this pipeline makes the rest of the docs click into place:
Morphology Cell Discretization Runtime + Solver RunResult
(geometry) ──▶ (declaration) ──▶ (control volumes) ──▶ (time integration) ──▶ (traces)
paint / place
Morphology — the geometry (branches, radii, connectivity), loaded from a file or built programmatically. See Morphology.
Declaration — you create a
Celland paint density mechanisms (channels, ions, cable properties) onto regions and place point mechanisms (clamps, synapses, probes) at locations. See Mechanisms and Regions & Locsets.Discretization — the continuous cable is divided into control volumes (CVs) by a
CVPolicy. See Discretization.Integration — a solver from
braincell.quadadvances the system in time, producing aRunResultof probe traces. See Integration.
Single-compartment models skip the morphology and discretization stages: the cell is one compartment.
Where to go next#
If you want to… |
Go to |
|---|---|
Run something immediately |
|
Understand the vocabulary and design |
|
Build and simulate point neurons |
|
Build morphological cells |
|
Pick or write a numerical solver |
|
Load a morphology from a file |
|
Look up an exact class or function |
|
Contribute or extend the library |
|
Diagnose an error |