API reference#
Modules#
A single compartment. |
|
A branch made up of one or multiple compartments (without branchpoints). |
|
A cell made up of one or multiple branches (with branchpoints). |
|
A network made up of multiple cells, connected by synapses. |
Simulation#
Solves ODE and simulates neuron model. |
|
Return |
|
Return functions which extract the dynamic (ODE) states of a |
Morphologies#
Reads SWC file into a Cell. |
|
Returns the direct distance between a root and other compartments. |
|
Returns the pathwise distance between a root and other compartments. |
|
Deletes part of a morphology. |
|
Combines two morphologies into a single cell. |
Channels#
Channel base class. |
|
Hodgkin-Huxley channel based on Sterratt, Graham, Gillies & Einevoll. |
|
Sodium channel based on Sterratt, Graham, Gillies & Einevoll. |
|
Potassium channel based on Sterratt, Graham, Gillies & Einevoll. |
|
Leak channel. |
|
Izhikevich neuron model. |
|
Rate-based, unit-less, neuron model. |
|
Mechanism to reset the voltage when it crosses a threshold. |
Pumps#
Pump base class. |
|
Update the intracellular calcium ion concentration depending on calcium current. |
|
Compute Calcium reversal from inner and outer concentration of calcium. |
|
Calcium dynamics based on Destexhe et al. 1994. |
Synapses#
Base class for a synapse. |
|
A current-based synapse. |
|
A conductance based synapse. |
|
A state-based synapse with fixed time constant. |
|
A state-based synapse with voltage dependent time constant. |
|
Synapse to be used in networks of LIF neurons. |
|
Alpha synapse which responds to binary pre-synaptic spike trains. |
Connectivity#
Connect specific compartments of a network with a synapse. |
|
Connect cells of a network with synapses via a boolean connectivity matrix. |
|
Fully (densely) connect cells of a network with synapses. |
|
Sparsely connect cells of a network with synapses. |
Optimization#
Sigmoid transformation. |
|
Softplus transformation. |
|
Negative softplus transformation. |
|
Chaining together multiple transformations |
|
Custom transformation. |
|
optax wrapper which allows different argument values for different params. |
Graph backend#
Read a SWC file and return a SWC graph via networkX. |
|
Return a networkX graph that indicates the compartment structure. |
|
Visualize a compartment graph. |
|
Return a Jaxley module from a compartmentalized networkX graph. |
|
Export a jx.Module as a networkX compartment graph. |
Utilities#
Clip the input to a maximum value and return its exponential. |
|
An exact solver for the linear dynamical system dx = -(x - x_inf) / x_tau. |
|
Compute the heaviside step function with a custom derivative. |