Skip to content

Presets

The nine cell-type factories, the preset registries, and the protocol-preset dispatcher. See Neuron presets for the biology of each cell type.

neuroclamp.presets

Built-in preset configurations for the neuroclamp core library.

Aggregates per-cell-type preset modules. Each submodule owns a zero-arg factory function that returns a fully-configured :class:~neuroclamp.Neuron plus a PROTOCOL_ADJUSTMENTS dict listing protocol-parameter overrides specific to that cell type. Protocol presets and the dispatcher live in :mod:neuroclamp.presets.protocols.

make_ca1_pyramidal

make_ca1_pyramidal()

CA1 hippocampal pyramidal cell (Pospischil, Migliore, Storm).

Single-compartment CA1 pyramidal cell (~20 µm soma with 1.5 mm dendritic arbor, area_cm2=25e-6 cm²; C ≈ 25 pF). The preset reproduces spike-frequency adaptation (SFA) driven cooperatively by IM, IKCa, and slow Na inactivation, with a half-width of ~0.76 ms (band 0.7–1.5 ms; Spruston & Johnston 2008).

Na/K kinetics and temperature: Pospischil et al. (2008) Traub-Miles Na⁺/K⁺ kinetics (via make_nav12_channel and make_pospischil_k_channel) replace the HH52 defaults. Q10=1.0 with T_ref=307.15 K: the published kinetics already represent slice recording temperature; no further runtime scaling is applied. g_K=3 mS/cm² (low relative to HH52) keeps the delayed-rectifier current small enough that the slowed Pospischil K kinetics at Q10=1.0 broaden the AP into the 0.7–1.5 ms CA1 half-width band without switching K families.

Spike-frequency adaptation mechanism

Three overlapping adaptation mechanisms cooperate:

  1. IM (g=0.75 mS/cm²; Storm 1990; Madison & Nicoll 1984) accumulates M-current over the spike train to progressively reduce firing rate.
  2. ICaL + ICaN + ICaT (g=0.5, 0.3, 0.3 mS/cm²) load [Ca²⁺]ᵢ per spike; IKCa (g=2.0 mS/cm²) activates gradually over the train (IKCa K_d=1 µM, Hill n=2), contributing additional AHP and SFA. alpha_ca=5e-6 and tau_ca=100 ms keep peak [Ca²⁺]ᵢ below K_d initially so IKCa builds progressively rather than saturating at the first AP.
  3. Slow Na inactivation (sNa12 and sNaP; see below) accumulates across spikes and reduces effective Na⁺ drive through the train.

INaP (g=0.1 mS/cm²; Magistretti & Alonso 1999) provides a persistent Na⁺ window current that overcomes post-AP IKCa hyperpolarization, ensuring prompt second-AP recovery and maintaining a monotonic SFA ramp rather than a long post-burst pause.

Slow Na inactivation and depolarization-block recovery

Two complementary slow gates ensure the cell repolarizes after sustained suprathreshold drive rather than hanging on a plateau:

  1. Fast-Na slow inactivation (sNa12, via make_nav12_channel) — closes the residual fast-Na h-tail during prolonged depolarization. Mickus, Jung & Spruston (1999) characterised this gate directly in CA1 pyramidal cells. g_Na=60 mS/cm² compensates for the train-long sNa12 accumulation.
  2. INaP slow inactivation (sNaP, via make_inap_channel) — removes the persistent Na⁺ window current that otherwise sustains the plateau (Magistretti & Alonso 1999).

K_ATP is intentionally excluded: CA1 pyramidal cells are not autonomous pacemakers; the two slow gates suffice for depol-block recovery.

Passive properties

g_NaL + g_KL = 0.05 mS/cm² gives τ_m ≈ 20 ms and R_in ≈ 20 kΩ·cm², matching the high input resistance of CA1 pyramidal cells in slice recordings. ca_init is the coupled (V, ca_i) equilibrium at v_rest=−65 mV (ICaT window current elevates ca_i above ca_rest); use find_coupled_equilibrium to recompute if channel parameters change.

References
  • Pospischil et al. (2008), Biol. Cybern. 99:427 (Traub-Miles Na/K)
  • Migliore et al. (1999), J. Neurophysiol. 81:1379 (ModelDB #2796)
  • Storm (1990), J. Physiol. 422:327 (IM-driven SFA in CA1)
  • Madison & Nicoll (1984), J. Physiol. 354:319 (SFA mechanism)
  • Mickus, Jung & Spruston (1999), Biophys. J. 76:846 (slow Na inactivation directly in CA1 pyramidal cells — primary source)
  • Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP slow inactivation)
  • Spruston & Johnston (2008), in Dendrites (AP-shape bands)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~20 µm soma

Neuron

(area_cm2=25e-6 cm²) with Nav1.2/Pospischil-K core, slow Na

Neuron

inactivation, IKa/IM/Ih/ICaL/ICaN/ICaT/IKCa/INaP auxiliary channels,

Neuron

and tuned CalciumDynamics.

Source code in neuroclamp/presets/ca1.py
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
def make_ca1_pyramidal() -> Neuron:
    """CA1 hippocampal pyramidal cell (Pospischil, Migliore, Storm).

    Single-compartment CA1 pyramidal cell (~20 µm soma with 1.5 mm dendritic
    arbor, area_cm2=25e-6 cm²; C ≈ 25 pF).  The preset reproduces
    spike-frequency adaptation (SFA) driven cooperatively by IM, IKCa, and
    slow Na inactivation, with a half-width of ~0.76 ms (band 0.7–1.5 ms;
    Spruston & Johnston 2008).

    Na/K kinetics and temperature:
        Pospischil et al. (2008) Traub-Miles Na⁺/K⁺ kinetics (via
        ``make_nav12_channel`` and ``make_pospischil_k_channel``) replace the
        HH52 defaults.  Q10=1.0 with T_ref=307.15 K: the published kinetics
        already represent slice recording temperature; no further runtime
        scaling is applied.  g_K=3 mS/cm² (low relative to HH52) keeps the
        delayed-rectifier current small enough that the slowed Pospischil K
        kinetics at Q10=1.0 broaden the AP into the 0.7–1.5 ms CA1 half-width
        band without switching K families.

    Spike-frequency adaptation mechanism:
        Three overlapping adaptation mechanisms cooperate:

        1. IM (g=0.75 mS/cm²; Storm 1990; Madison & Nicoll 1984) accumulates
           M-current over the spike train to progressively reduce firing rate.
        2. ICaL + ICaN + ICaT (g=0.5, 0.3, 0.3 mS/cm²) load [Ca²⁺]ᵢ per
           spike; IKCa (g=2.0 mS/cm²) activates gradually over the train
           (IKCa K_d=1 µM, Hill n=2), contributing additional AHP and SFA.
           alpha_ca=5e-6 and tau_ca=100 ms keep peak [Ca²⁺]ᵢ below K_d
           initially so IKCa builds progressively rather than saturating at
           the first AP.
        3. Slow Na inactivation (sNa12 and sNaP; see below) accumulates
           across spikes and reduces effective Na⁺ drive through the train.

        INaP (g=0.1 mS/cm²; Magistretti & Alonso 1999) provides a persistent
        Na⁺ window current that overcomes post-AP IKCa hyperpolarization,
        ensuring prompt second-AP recovery and maintaining a monotonic SFA
        ramp rather than a long post-burst pause.

    Slow Na inactivation and depolarization-block recovery:
        Two complementary slow gates ensure the cell repolarizes after
        sustained suprathreshold drive rather than hanging on a plateau:

        1. Fast-Na slow inactivation (sNa12, via ``make_nav12_channel``) —
           closes the residual fast-Na h-tail during prolonged depolarization.
           Mickus, Jung & Spruston (1999) characterised this gate directly
           in CA1 pyramidal cells.  g_Na=60 mS/cm² compensates for the
           train-long sNa12 accumulation.
        2. INaP slow inactivation (sNaP, via ``make_inap_channel``) — removes
           the persistent Na⁺ window current that otherwise sustains the
           plateau (Magistretti & Alonso 1999).

        K_ATP is intentionally excluded: CA1 pyramidal cells are not
        autonomous pacemakers; the two slow gates suffice for depol-block
        recovery.

    Passive properties:
        g_NaL + g_KL = 0.05 mS/cm² gives τ_m ≈ 20 ms and R_in ≈ 20 kΩ·cm²,
        matching the high input resistance of CA1 pyramidal cells in slice
        recordings.  ca_init is the coupled (V, ca_i) equilibrium at
        v_rest=−65 mV (ICaT window current elevates ca_i above ca_rest); use
        ``find_coupled_equilibrium`` to recompute if channel parameters change.

    References:
        - Pospischil et al. (2008), Biol. Cybern. 99:427 (Traub-Miles Na/K)
        - Migliore et al. (1999), J. Neurophysiol. 81:1379 (ModelDB #2796)
        - Storm (1990), J. Physiol. 422:327 (IM-driven SFA in CA1)
        - Madison & Nicoll (1984), J. Physiol. 354:319 (SFA mechanism)
        - Mickus, Jung & Spruston (1999), Biophys. J. 76:846 (slow Na
          inactivation directly in CA1 pyramidal cells — primary source)
        - Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP slow
          inactivation)
        - Spruston & Johnston (2008), in Dendrites (AP-shape bands)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~20 µm soma
        (area_cm2=25e-6 cm²) with Nav1.2/Pospischil-K core, slow Na
        inactivation, IKa/IM/Ih/ICaL/ICaN/ICaT/IKCa/INaP auxiliary channels,
        and tuned CalciumDynamics.
    """
    return Neuron(
        Q10=1.0,
        T_ref=307.15,
        channels=(
            make_nav12_channel(g_max=60.0),
            make_pospischil_k_channel(g_max=3.0),
            make_na_leak_channel(g_max=0.020854),
            make_k_leak_channel(g_max=0.029146),
            make_ika_channel(g_max=0.5),
            make_im_channel(g_max=0.75),
            make_ih_channel(g_max=0.05),
            make_ical_channel(g_max=0.5),
            make_ican_channel(g_max=0.3),
            make_icat_channel(g_max=0.3),
            make_ikca_channel(g_max=2.0),
            make_inap_channel(g_max=0.1),
        ),
        # alpha_ca=5e-6 / tau_ca=100 ms: three Ca sources (ICaL + ICaN + ICaT)
        # feed the pool; the small alpha_ca keeps the per-AP rise below IKCa
        # K_d=1 µM so IKCa activates gradually over the train as a SFA driver.
        # ca_init is the coupled (V, ca_i) equilibrium at v_rest=−65 mV.
        # Use find_coupled_equilibrium to recompute if channel parameters change.
        calcium_dynamics=CalciumDynamics(
            alpha_ca=5e-6, tau_ca=100.0, ca_rest=1e-4, ca_init=2.5845e-4
        ),
        area_cm2=25e-6,
    )

make_cortical_pyramidal

make_cortical_pyramidal()

Cortical RS pyramidal cell (Pospischil 2008, Mainen-Sejnowski 1996).

Single-compartment regular-spiking (RS) L5 pyramidal cell (~20 µm soma, area_cm2=20e-6 cm²). The preset reproduces the broad AP (half-width 1.0–2.5 ms), spike-frequency adaptation via IM/IKCa, and voltage sag from Ih that are characteristic of RS cortical pyramidal cells.

Na/K kinetics and temperature: Pospischil et al. (2008) Traub-Miles Na⁺ kinetics (VT = −56.2 mV, via make_nav12_channel) provide the fast spike upstroke. Mainen & Sejnowski (1996) Kv kinetics (make_mainen_sejnowski_kv_channel) serve as the sole delayed rectifier; the HH-style core "K" channel is omitted from the preset's channels tuple entirely (#311 / #320). The M-S Kv is essentially closed at rest (n_inf 50 % point near +4 mV) and deactivates on a τ ~1–2 ms scale — this slow-K balance is what broadens the AP into the 1.0–2.5 ms McCormick et al. (1985) half-width band. A fast K (Pospischil n⁴) narrows the spike below 1 ms and is therefore excluded. Q10=1.0 with T_ref=307.15 K: Pospischil (2008) publish their kinetics at 34 °C without a Q10 correction; the M-S Kv rate constants are pre-scaled from 23→34 °C internally. No further runtime scaling is applied.

Slow Na inactivation and depolarization-block recovery

Two complementary slow gates ensure the cell repolarizes after sustained suprathreshold drive rather than hanging on a plateau:

  1. Fast-Na slow inactivation (sNa12, via make_nav12_channel) — closes the residual fast-Na h-tail during prolonged depolarization. Fleidervish & Gutnick (1996) characterised this gate directly in cortical pyramidal cells; g_Na=70 mS/cm² compensates for the ~8 % rest-state availability reduction (sNa12_inf ≈ 0.92 at −70 mV).
  2. INaP slow inactivation (sNaP, via make_inap_channel) — removes the persistent Na⁺ window current that otherwise sustains the plateau (Magistretti & Alonso 1999).

K_ATP is intentionally excluded: cortical pyramidal cells are not autonomous pacemakers, so the metabolic-safety K_ATP rescue is not biologically motivated.

Additional subthreshold currents

Ih (g_h=0.3 mS/cm²) produces voltage sag and accelerates return from AHP; INaP (g_NaP=0.1 mS/cm²) provides a small persistent window current; IM (g_max=0.075 mS/cm²) drives spike-frequency adaptation.

Passive properties

g_NaL + g_KL = 0.05 mS/cm² gives τ_m ≈ 20 ms and R_in ≈ 20 kΩ·cm², reflecting the high input resistance (200–400 MΩ in vivo) of RS cortical pyramidal cells. M-S Kv is essentially closed at rest, so the split is nearly pure K⁺ leak (g_KL ≈ 0.0496, g_NaL ≈ 0.0004). K_out=3.32 gives E_K ≈ −100 mV (Pospischil target).

Known limitations
  • find_zero_current_voltage with the default bracket [−100, −20] cannot find a unique zero: the slow M-S Kv contributes little outward current at −20 mV, so the bracket is not bounded by opposite-sign currents. The cell rests stably at −70 mV in simulation, but the static-gating equilibrium analysis fails — see the test_find_zero_current_voltage_all_presets exclusion.
References
  • Pospischil et al. (2008), Biol. Cybern. 99:427 (Traub-Miles Na)
  • Mainen & Sejnowski (1996), Nature 382:363 (Kv kinetics)
  • McCormick et al. (1985), J. Neurophysiol. 54:782 (RS AP-shape bands)
  • Fleidervish & Gutnick (1996), J. Physiol. 493:83 (slow Na inactivation in cortical pyramidal cells — primary source)
  • Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP slow inactivation)
  • Mickus, Jung & Spruston (1999), Biophys. J. 76:846 (slow Na inactivation, CA1 pyramidal — same Na-channel family)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~20 µm soma

Neuron

(area_cm2=20e-6 cm²) with Nav1.2/M-S Kv core, slow Na inactivation,

Neuron

Ih/INaP/IM/M-S Kv auxiliary channels, and a high-resistance leak.

Source code in neuroclamp/presets/cortical.py
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
def make_cortical_pyramidal() -> Neuron:
    """Cortical RS pyramidal cell (Pospischil 2008, Mainen-Sejnowski 1996).

    Single-compartment regular-spiking (RS) L5 pyramidal cell (~20 µm soma,
    area_cm2=20e-6 cm²).  The preset reproduces the broad AP (half-width
    1.0–2.5 ms), spike-frequency adaptation via IM/IKCa, and voltage sag from
    Ih that are characteristic of RS cortical pyramidal cells.

    Na/K kinetics and temperature:
        Pospischil et al. (2008) Traub-Miles Na⁺ kinetics (VT = −56.2 mV,
        via ``make_nav12_channel``) provide the fast spike upstroke.
        Mainen & Sejnowski (1996) Kv kinetics (``make_mainen_sejnowski_kv_channel``)
        serve as the sole delayed rectifier; the HH-style core ``"K"`` channel
        is omitted from the preset's ``channels`` tuple entirely (#311 / #320).
        The M-S Kv is essentially closed at rest
        (n_inf 50 % point near +4 mV) and deactivates on a τ ~1–2 ms scale —
        this slow-K balance is what broadens the AP into the 1.0–2.5 ms
        McCormick et al. (1985) half-width band.  A fast K (Pospischil n⁴)
        narrows the spike below 1 ms and is therefore excluded.
        Q10=1.0 with T_ref=307.15 K: Pospischil (2008) publish their kinetics
        at 34 °C without a Q10 correction; the M-S Kv rate constants are
        pre-scaled from 23→34 °C internally.  No further runtime scaling is
        applied.

    Slow Na inactivation and depolarization-block recovery:
        Two complementary slow gates ensure the cell repolarizes after
        sustained suprathreshold drive rather than hanging on a plateau:

        1. Fast-Na slow inactivation (sNa12, via ``make_nav12_channel``) —
           closes the residual fast-Na h-tail during prolonged depolarization.
           Fleidervish & Gutnick (1996) characterised this gate directly in
           cortical pyramidal cells; g_Na=70 mS/cm² compensates for the ~8 %
           rest-state availability reduction (sNa12_inf ≈ 0.92 at −70 mV).
        2. INaP slow inactivation (sNaP, via ``make_inap_channel``) — removes
           the persistent Na⁺ window current that otherwise sustains the
           plateau (Magistretti & Alonso 1999).

        K_ATP is intentionally excluded: cortical pyramidal cells are not
        autonomous pacemakers, so the metabolic-safety K_ATP rescue is not
        biologically motivated.

    Additional subthreshold currents:
        Ih (g_h=0.3 mS/cm²) produces voltage sag and accelerates return from
        AHP; INaP (g_NaP=0.1 mS/cm²) provides a small persistent window
        current; IM (g_max=0.075 mS/cm²) drives spike-frequency adaptation.

    Passive properties:
        g_NaL + g_KL = 0.05 mS/cm² gives τ_m ≈ 20 ms and R_in ≈ 20 kΩ·cm²,
        reflecting the high input resistance (200–400 MΩ in vivo) of RS
        cortical pyramidal cells.  M-S Kv is essentially closed at rest, so
        the split is nearly pure K⁺ leak (g_KL ≈ 0.0496, g_NaL ≈ 0.0004).
        K_out=3.32 gives E_K ≈ −100 mV (Pospischil target).

    Known limitations:
        - ``find_zero_current_voltage`` with the default bracket [−100, −20]
          cannot find a unique zero: the slow M-S Kv contributes little outward
          current at −20 mV, so the bracket is not bounded by opposite-sign
          currents.  The cell rests stably at −70 mV in simulation, but the
          static-gating equilibrium analysis fails — see the
          ``test_find_zero_current_voltage_all_presets`` exclusion.

    References:
        - Pospischil et al. (2008), Biol. Cybern. 99:427 (Traub-Miles Na)
        - Mainen & Sejnowski (1996), Nature 382:363 (Kv kinetics)
        - McCormick et al. (1985), J. Neurophysiol. 54:782 (RS AP-shape bands)
        - Fleidervish & Gutnick (1996), J. Physiol. 493:83 (slow Na inactivation
          in cortical pyramidal cells — primary source)
        - Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP slow
          inactivation)
        - Mickus, Jung & Spruston (1999), Biophys. J. 76:846 (slow Na
          inactivation, CA1 pyramidal — same Na-channel family)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~20 µm soma
        (area_cm2=20e-6 cm²) with Nav1.2/M-S Kv core, slow Na inactivation,
        Ih/INaP/IM/M-S Kv auxiliary channels, and a high-resistance leak.
    """
    return Neuron(
        v_rest=-70.0,
        K_out=3.32,
        Q10=1.0,
        T_ref=307.15,
        channels=(
            make_nav12_channel(g_max=70.0),
            # No HH-style core K — Mainen-Sejnowski Kv is the sole delayed
            # rectifier (added below).  See preset docstring.
            make_na_leak_channel(g_max=0.000391),
            make_k_leak_channel(g_max=0.049609),
            make_ih_channel(g_max=0.3),
            make_inap_channel(g_max=0.1),
            make_im_channel(g_max=0.075),
            make_mainen_sejnowski_kv_channel(g_max=1.8),
        ),
        area_cm2=20e-6,
    )

make_dopaminergic

make_dopaminergic()

Substantia nigra pars compacta dopaminergic neuron (Putzier+Drion).

Single-compartment somatic model (~20 µm soma, area_cm2=50e-6 cm²; C ≈ 50 pF, R_in ≈ 500 MΩ, τ_m ≈ 25 ms — matching Wolfart et al. 2001 and Lacey et al. 1989). The preset reproduces autonomous tonic pacemaking at ~7 Hz, within the in-vitro SNc DA band of 1–8 Hz.

Pacemaking mechanism

Drion et al. (2011) showed that Cav1.3 and INaP_SNc are interchangeable negative-slope conductances; both are required for a faithful model. Pacemaking proceeds as:

  1. INaP_SNc (V½ = −65 mV) initiates the subthreshold depolarizing ramp from the AHP; Cav1.3 (V½ = −31.1 mV) takes over near threshold and loads Ca²⁺ into the cell.
  2. An AP fires; ca_i peaks at ~0.6 µM (α_ca = 5e-5 mM·cm²/µA).
  3. SK (K_d = 0.3 µM, Hill n=4, g=1.75 mS/cm²) opens rapidly, driving a clean medium AHP at ~−90 mV within <5 ms. Without strong SK activation the Komendantov Na window current (m_inf=0.79 at −30 mV) holds V on a ~20 ms plateau — SK is essential to terminate each AP cleanly.
  4. ca_i decays (τ_ca = 30 ms), SK closes, INaP_SNc + Cav1.3 ramp resumes. Cycle repeats at ~7 Hz.

Na/K kinetics and temperature: Canavier (1999) / Komendantov (2004) kinetics (VT = −67 mV) replace the HH52 defaults. Q10=1.0 with T_ref=308.15 K (35 °C) holds the rate constants at the published Komendantov reference temperature. Repolarization is carried by the Komendantov Kdr alone; IM and M-S Kv are excluded as cortical-specific channels inappropriate for SNc DA.

Slow Na inactivation

make_dopaminergic_na_channel carries a cumulative slow Na gate (sNa_da; Khaliq & Bean 2010; Tucker et al. 2012) and make_snc_inap_channel carries a slow INaP gate (sNaP_snc; Magistretti & Alonso 1999, V½ tuned to the Drion 2011 SNc fit). These gates improve biological accuracy and would provide an escape from depol-block in a more complete model.

Known limitations

Real SNc DA neurons enter depolarization block above ~100 pA sustained drive (Tucker et al. 2012). This single-compartment somatic model does not reproduce block onset: empirical sweeps confirm tonic firing at all tested amplitudes. Block onset requires the dendritic Na inactivation pool absent from this somatic reduction. Tracked in issue #323.

References
  • Putzier, Kullmann & Roeper (2009), J. Neurosci. 29:15414 (Cav1.3 drives SNc pacemaking)
  • Drion, Massotte, Sepulchre & Seutin (2011), PLOS Comput. Biol. 7:e1002050 (Cav1.3 + INaP both required)
  • Komendantov et al. (2004), J. Neurophysiol. 91:346 (Na/K kinetics)
  • Wolfart, Neuhoff, Franz & Roeper (2001), J. Neurosci. 21:3443 (SK)
  • Tucker, Huertas, Horn et al. (2012), J. Neurophysiol. 108:288 (depol-block onset ~100 pA)
  • Khaliq & Bean (2010), J. Neurosci. 30:7558 (slow Na inactivation, SNc DA)
  • Grace & Bunney (1984), J. Neurosci. 4:2877 (1–5 Hz in vitro)
  • Lacey, Mercuri & North (1989), J. Physiol. 415:55 (interspike V trough −55 to −65 mV)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~20 µm soma

Neuron

(area_cm2=50e-6 cm²) with Komendantov Na/K core, slow Na inactivation,

Neuron

Cav1.3/SK/INaP_SNc/Ih auxiliary channels, and tuned CalciumDynamics.

Source code in neuroclamp/presets/dopaminergic.py
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
def make_dopaminergic() -> Neuron:
    """Substantia nigra pars compacta dopaminergic neuron (Putzier+Drion).

    Single-compartment somatic model (~20 µm soma, area_cm2=50e-6 cm²;
    C ≈ 50 pF, R_in ≈ 500 MΩ, τ_m ≈ 25 ms — matching Wolfart et al. 2001
    and Lacey et al. 1989).  The preset reproduces autonomous tonic pacemaking
    at ~7 Hz, within the in-vitro SNc DA band of 1–8 Hz.

    Pacemaking mechanism:
        Drion et al. (2011) showed that Cav1.3 and INaP_SNc are
        interchangeable negative-slope conductances; both are required for a
        faithful model.  Pacemaking proceeds as:

        1. INaP_SNc (V½ = −65 mV) initiates the subthreshold depolarizing
           ramp from the AHP; Cav1.3 (V½ = −31.1 mV) takes over near threshold
           and loads Ca²⁺ into the cell.
        2. An AP fires; ca_i peaks at ~0.6 µM (α_ca = 5e-5 mM·cm²/µA).
        3. SK (K_d = 0.3 µM, Hill n=4, g=1.75 mS/cm²) opens rapidly, driving
           a clean medium AHP at ~−90 mV within <5 ms.  Without strong SK
           activation the Komendantov Na window current (m_inf=0.79 at −30 mV)
           holds V on a ~20 ms plateau — SK is essential to terminate each AP
           cleanly.
        4. ca_i decays (τ_ca = 30 ms), SK closes, INaP_SNc + Cav1.3 ramp
           resumes.  Cycle repeats at ~7 Hz.

    Na/K kinetics and temperature:
        Canavier (1999) / Komendantov (2004) kinetics (VT = −67 mV) replace
        the HH52 defaults.  Q10=1.0 with T_ref=308.15 K (35 °C) holds the
        rate constants at the published Komendantov reference temperature.
        Repolarization is carried by the Komendantov Kdr alone; IM and M-S Kv
        are excluded as cortical-specific channels inappropriate for SNc DA.

    Slow Na inactivation:
        ``make_dopaminergic_na_channel`` carries a cumulative slow Na gate
        (sNa_da; Khaliq & Bean 2010; Tucker et al. 2012) and
        ``make_snc_inap_channel`` carries a slow INaP gate (sNaP_snc;
        Magistretti & Alonso 1999, V½ tuned to the Drion 2011 SNc fit).
        These gates improve biological accuracy and would provide an escape
        from depol-block in a more complete model.

    Known limitations:
        Real SNc DA neurons enter depolarization block above ~100 pA sustained
        drive (Tucker et al. 2012).  This single-compartment somatic model does
        not reproduce block onset: empirical sweeps confirm tonic firing at all
        tested amplitudes.  Block onset requires the dendritic Na inactivation
        pool absent from this somatic reduction.  Tracked in issue #323.

    References:
        - Putzier, Kullmann & Roeper (2009), J. Neurosci. 29:15414 (Cav1.3
          drives SNc pacemaking)
        - Drion, Massotte, Sepulchre & Seutin (2011), PLOS Comput. Biol.
          7:e1002050 (Cav1.3 + INaP both required)
        - Komendantov et al. (2004), J. Neurophysiol. 91:346 (Na/K kinetics)
        - Wolfart, Neuhoff, Franz & Roeper (2001), J. Neurosci. 21:3443 (SK)
        - Tucker, Huertas, Horn et al. (2012), J. Neurophysiol. 108:288
          (depol-block onset ~100 pA)
        - Khaliq & Bean (2010), J. Neurosci. 30:7558 (slow Na inactivation,
          SNc DA)
        - Grace & Bunney (1984), J. Neurosci. 4:2877 (1–5 Hz in vitro)
        - Lacey, Mercuri & North (1989), J. Physiol. 415:55 (interspike V
          trough −55 to −65 mV)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~20 µm soma
        (area_cm2=50e-6 cm²) with Komendantov Na/K core, slow Na inactivation,
        Cav1.3/SK/INaP_SNc/Ih auxiliary channels, and tuned CalciumDynamics.
    """
    return Neuron(
        v_rest=-55.0,
        Q10=1.0,
        T_ref=308.15,
        channels=(
            make_dopaminergic_na_channel(g_max=10.0),
            make_dopaminergic_k_channel(g_max=0.5),
            make_na_leak_channel(g_max=0.012),
            make_k_leak_channel(g_max=0.028),
            make_cav13_channel(g_max=0.04),
            make_sk_channel(g_max=1.75),
            make_snc_inap_channel(g_max=0.012),
            make_ih_channel(g_max=0.20),
        ),
        calcium_dynamics=CalciumDynamics(
            alpha_ca=5.0e-5, tau_ca=30.0, ca_rest=1e-4, ca_init=1.0e-4
        ),
        area_cm2=50e-6,
    )

make_fast_spiking_interneuron

make_fast_spiking_interneuron()

Cortical fast-spiking interneuron (Erisir 1999, Pospischil 2008).

Single-compartment model of a cortical FS basket/chandelier interneuron (~10 µm soma, area_cm2=3e-6 cm²). The preset reproduces non-adapting high-frequency firing (100–500 Hz) with a narrow AP (half-width ≈ 0.30 ms) and a shallow AHP, matching recorded FS phenotypes.

Na/K kinetics: Pospischil et al. (2008) Traub-Miles kinetics replace the HH52 defaults. HH52 kinetics were characterised at room temperature and over-accelerate Na⁺ inactivation at mammalian temperature (Q10=3.0, 22→37 °C, factor ~5.2×), causing depolarization block after the first AP in a fast-spiking cell. Pospischil kinetics were characterised at 34 °C; T_ref=307.15 K limits the runtime Q10 correction to ~1.4×, preserving the published non-adapting phenotype.

Slow Na inactivation (Nav1.1 isoform): make_nav11_channel adds a Nav1.1-flavoured slow inactivation gate (V½ = −45 mV, τ_floor = 5000 ms). Nav1.1 is the dominant Na⁺ channel isoform in FS interneurons (Patel et al. 2015); the slow gate is too slow to accumulate significantly at FSI firing rates, so the overall FS phenotype is preserved. At v_rest = −65 mV, sNa11_inf ≈ 0.92; g_Na=88 mS/cm² compensates for this small rest-availability reduction.

IKv3.1 delayed rectifier: Kv3.1-type K⁺ channel (V₁/₂ = −12.4 mV, fast deactivation) drives the late-AP repolarization and enables non-adapting high-frequency firing (Erisir et al. 1999; Wang & Buzsáki 1996). The Pospischil delayed rectifier handles early repolarization; IKv3.1 sharpens the trailing edge and prevents inter-spike Na⁺ channel inactivation accumulation.

Passive properties

g_NaL + g_KL = 1.5 mS/cm² gives τ_m ≈ 0.67 ms — a highly leaky membrane that narrows the synaptic integration window, a hallmark of FS interneurons (Erisir et al. 1999). R_n ≈ 220 MΩ and C ≈ 3 pF match reported FS interneuron values.

AP-shape acceptance bands (Erisir et al. 1999; Kawaguchi 1995): - AP peak: ~+38 mV (band +10 to +40 mV) - AHP depth: ~−74 mV (band −78 to −60 mV) - Half-width: ~0.30 ms (band 0.25–0.7 ms) - Firing rate at 30 µA/cm²: ~235 Hz (band 100–500 Hz)

References
  • Erisir et al. (1999), J. Neurophysiol. 82:2476 (Kv3.1 kinetics, FS bands)
  • Pospischil et al. (2008), Biol. Cybern. 99:427 (Traub-Miles Na/K)
  • Kawaguchi (1995), J. Neurosci. 15:2638 (FS phenotype)
  • Wang & Buzsáki (1996), J. Neurosci. 16:6402 (IKv3.1 role)
  • Patel et al. (2015), Nat. Commun. 6:8249 (Nav1.1 slow inactivation)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~10 µm soma

Neuron

(area_cm2=3e-6 cm²) with Pospischil Na/K core, Nav1.1 slow

Neuron

inactivation, IKv3.1 auxiliary channel, and a high-leak membrane.

Source code in neuroclamp/presets/fast_spiking.py
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
def make_fast_spiking_interneuron() -> Neuron:
    """Cortical fast-spiking interneuron (Erisir 1999, Pospischil 2008).

    Single-compartment model of a cortical FS basket/chandelier interneuron
    (~10 µm soma, area_cm2=3e-6 cm²).  The preset reproduces non-adapting
    high-frequency firing (100–500 Hz) with a narrow AP (half-width ≈ 0.30 ms)
    and a shallow AHP, matching recorded FS phenotypes.

    Na/K kinetics:
        Pospischil et al. (2008) Traub-Miles kinetics replace the HH52
        defaults.  HH52 kinetics were characterised at room temperature and
        over-accelerate Na⁺ inactivation at mammalian temperature (Q10=3.0,
        22→37 °C, factor ~5.2×), causing depolarization block after the first
        AP in a fast-spiking cell.  Pospischil kinetics were characterised at
        34 °C; T_ref=307.15 K limits the runtime Q10 correction to ~1.4×,
        preserving the published non-adapting phenotype.

    Slow Na inactivation (Nav1.1 isoform):
        ``make_nav11_channel`` adds a Nav1.1-flavoured slow inactivation gate
        (V½ = −45 mV, τ_floor = 5000 ms).  Nav1.1 is the dominant Na⁺ channel
        isoform in FS interneurons (Patel et al. 2015); the slow gate is too
        slow to accumulate significantly at FSI firing rates, so the overall
        FS phenotype is preserved.  At v_rest = −65 mV, sNa11_inf ≈ 0.92;
        g_Na=88 mS/cm² compensates for this small rest-availability reduction.

    IKv3.1 delayed rectifier:
        Kv3.1-type K⁺ channel (V₁/₂ = −12.4 mV, fast deactivation) drives the
        late-AP repolarization and enables non-adapting high-frequency firing
        (Erisir et al. 1999; Wang & Buzsáki 1996).  The Pospischil delayed
        rectifier handles early repolarization; IKv3.1 sharpens the trailing
        edge and prevents inter-spike Na⁺ channel inactivation accumulation.

    Passive properties:
        g_NaL + g_KL = 1.5 mS/cm² gives τ_m ≈ 0.67 ms — a highly leaky
        membrane that narrows the synaptic integration window, a hallmark of
        FS interneurons (Erisir et al. 1999).  R_n ≈ 220 MΩ and C ≈ 3 pF
        match reported FS interneuron values.

    AP-shape acceptance bands (Erisir et al. 1999; Kawaguchi 1995):
        - AP peak: ~+38 mV  (band +10 to +40 mV)
        - AHP depth: ~−74 mV  (band −78 to −60 mV)
        - Half-width: ~0.30 ms  (band 0.25–0.7 ms)
        - Firing rate at 30 µA/cm²: ~235 Hz  (band 100–500 Hz)

    References:
        - Erisir et al. (1999), J. Neurophysiol. 82:2476 (Kv3.1 kinetics, FS bands)
        - Pospischil et al. (2008), Biol. Cybern. 99:427 (Traub-Miles Na/K)
        - Kawaguchi (1995), J. Neurosci. 15:2638 (FS phenotype)
        - Wang & Buzsáki (1996), J. Neurosci. 16:6402 (IKv3.1 role)
        - Patel et al. (2015), Nat. Commun. 6:8249 (Nav1.1 slow inactivation)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~10 µm soma
        (area_cm2=3e-6 cm²) with Pospischil Na/K core, Nav1.1 slow
        inactivation, IKv3.1 auxiliary channel, and a high-leak membrane.
    """
    return Neuron(
        T_ref=307.15,
        channels=(
            make_nav11_channel(g_max=88.0),
            make_pospischil_k_channel(g_max=30.0),
            make_na_leak_channel(g_max=0.3115),
            make_k_leak_channel(g_max=1.1885),
            make_ikv31_channel(g_max=20.0),
        ),
        area_cm2=3e-6,
    )

build_protocol_from_preset

build_protocol_from_preset(preset_name, neuron_preset=None, sampling_frequency=40000.0, **overrides)

Build a protocol array from a named preset.

Looks up preset_name in :data:PROTOCOL_PRESETS, applies any neuron-specific adjustments from :data:NEURON_PROTOCOL_ADJUSTMENTS when neuron_preset is supplied, then applies any caller-supplied overrides before dispatching to :func:build_current_protocol or :func:build_voltage_protocol.

Parameters:

Name Type Description Default
preset_name str

Key in :data:PROTOCOL_PRESETS.

required
neuron_preset str | None

Optional key in :data:NEURON_PRESETS. When given, neuron-specific parameter adjustments are merged on top of the base preset before overrides are applied.

None
sampling_frequency float

Sampling frequency in Hz. Defaults to the standard simulation rate (40 kHz).

40000.0
**overrides Any

Additional keyword arguments that override any preset or neuron-adjustment values. Use builder parameter names (e.g. min_stimulus, stimulus_step).

{}

Returns:

Type Description
ndarray

2-D array of shape (n_sweeps, n_samples).

Raises:

Type Description
KeyError

If preset_name is not in :data:PROTOCOL_PRESETS.

ValueError

If the resolved parameters are invalid for the chosen protocol type.

Source code in neuroclamp/presets/protocols.py
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
def build_protocol_from_preset(
    preset_name: str,
    neuron_preset: str | None = None,
    sampling_frequency: float = 40_000.0,
    **overrides: Any,
) -> np.ndarray:
    """Build a protocol array from a named preset.

    Looks up *preset_name* in :data:`PROTOCOL_PRESETS`, applies any
    neuron-specific adjustments from :data:`NEURON_PROTOCOL_ADJUSTMENTS` when
    *neuron_preset* is supplied, then applies any caller-supplied *overrides*
    before dispatching to :func:`build_current_protocol` or
    :func:`build_voltage_protocol`.

    Args:
        preset_name: Key in :data:`PROTOCOL_PRESETS`.
        neuron_preset: Optional key in :data:`NEURON_PRESETS`.  When given,
            neuron-specific parameter adjustments are merged on top of the base
            preset before *overrides* are applied.
        sampling_frequency: Sampling frequency in Hz.  Defaults to the
            standard simulation rate (40 kHz).
        **overrides: Additional keyword arguments that override any preset or
            neuron-adjustment values.  Use builder parameter names
            (e.g. ``min_stimulus``, ``stimulus_step``).

    Returns:
        2-D array of shape ``(n_sweeps, n_samples)``.

    Raises:
        KeyError: If *preset_name* is not in :data:`PROTOCOL_PRESETS`.
        ValueError: If the resolved parameters are invalid for the chosen
            protocol type.
    """
    # Deferred imports avoid circular dependencies at module load time:
    # neuroclamp.protocols.builders pulls in heavy numerical code, and
    # NEURON_PROTOCOL_ADJUSTMENTS lives in the parent package which itself
    # re-exports this function.
    from neuroclamp.presets import NEURON_PROTOCOL_ADJUSTMENTS
    from neuroclamp.protocols.builders import (
        build_current_protocol,
        build_voltage_protocol,
    )

    if preset_name not in PROTOCOL_PRESETS:
        raise KeyError(
            f"Unknown protocol preset {preset_name!r}. "
            f"Available: {list(PROTOCOL_PRESETS)}"
        )

    config: dict[str, Any] = dict(PROTOCOL_PRESETS[preset_name])

    if neuron_preset is not None:
        neuron_adjustments = NEURON_PROTOCOL_ADJUSTMENTS.get(neuron_preset, {})
        config.update(neuron_adjustments.get(preset_name, {}))

    config.update(overrides)

    clamp_mode: str = config.pop("clamp_mode", "Current Clamp")
    protocol_type: str = config.pop("protocol_type", "Step")

    if clamp_mode == "Current Clamp":
        return build_current_protocol(
            protocol_type=protocol_type,
            sampling_frequency=sampling_frequency,
            **config,
        )
    return build_voltage_protocol(
        protocol_type=protocol_type,
        sampling_frequency=sampling_frequency,
        **config,
    )

make_purkinje

make_purkinje()

Cerebellar Purkinje cell (De Schutter & Bower 1994, Carter & Bean 2009).

Single-compartment somatic reduction (~25 µm soma with massive dendritic tree, area_cm2=250e-6 cm²; C ≈ 250 pF, matching Roth & Häusser 2001 somatic recordings). The preset reproduces autonomous tonic simple-spike pacemaking at ~10–50 Hz (in vivo rate 50–100 Hz requires dendritic inputs and network drive not modeled here).

Pacemaking mechanism

INaP (Magistretti & Alonso 1999, V½ = −52.6 mV) provides a persistent Na⁺ window current that destabilizes any rest near −65 mV. Ih (Destexhe et al. 1993, V½ ≈ −82 mV, g=1.0 mS/cm²) activates during the deep post-AP AHP and drives slow depolarization back to threshold, sustaining autonomous rhythmic firing. v_rest=−65 mV is the simulation starting point; this cell has no stable zero-current resting potential.

Na/K kinetics and temperature: De Schutter & Bower (1994) Traub-Miles Na⁺/K⁺ kinetics (VT = −58 mV) replace the HH52 defaults. DSB94 channels were recorded at 32 °C; T_ref=305.15 K limits the runtime Q10 correction to ~1.73× (32→37 °C), preserving the published kinetics. g_Na=30 mS/cm² (lower end of the somatic NaF range reported by Khaliq et al. 2003) and g_K=10 mS/cm² (a lumped delayed-rectifier representing multiple DSB94 K compartments) place the AP peak inside the +10 to +40 mV band and the AHP near −68 mV (Häusser & Clark 1997; Raman & Bean 1999).

Slow Na inactivation and depolarization-block recovery

Two complementary slow gates ensure the cell repolarizes after sustained suprathreshold drive rather than hanging on a plateau:

  1. Fast-Na slow inactivation (sNa, via make_purkinje_na_channel) — closes the residual fast-Na h-tail during prolonged depolarization. Carter & Bean (2009) directly demonstrated cumulative slow inactivation in cerebellar Purkinje somatic Na⁺ channels.
  2. INaP slow inactivation (sNaP, via make_inap_channel) — removes the persistent Na⁺ window current that otherwise sustains the plateau (Magistretti & Alonso 1999).

K_ATP is intentionally excluded: Carter & Bean's (2009) demonstration of depol-block recovery uses the two slow gates alone; K_ATP is not biologically motivated for Purkinje cells.

Known limitations

Complex-spike "bursts" observed in vivo are climbing-fiber synaptic events (Raman & Bean 1997 — INaR-supported repriming under climbing-fiber EPSPs). They are NOT intrinsic and cannot be produced by this single-compartment current-clamp preset.

References
  • De Schutter & Bower (1994), J. Neurophysiol. 71:375 (Na/K kinetics)
  • Carter & Bean (2009), Neuron 64:898 (slow Na inactivation in Purkinje)
  • Raman & Bean (1997), Neuron 19:881 (INaR; complex-spike mechanism)
  • Raman & Bean (1999), J. Neurosci. 19:4663 (INaP/INaR pacemaking)
  • Häusser & Clark (1997), J. Neurosci. 17:2358 (interspike V range)
  • Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP slow inactivation)
  • Khaliq et al. (2003), J. Neurosci. 23:4899 (somatic NaF density)
  • Roth & Häusser (2001), J. Physiol. 535:445 (C and R_n)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~25 µm soma

Neuron

(area_cm2=250e-6 cm²) with DSB94 Na/K core, Carter-Bean slow Na

Neuron

inactivation, ICaL/ICaT/IKCa/INaP/INaR/Ih auxiliary channels, and

Neuron

tuned CalciumDynamics.

Source code in neuroclamp/presets/purkinje.py
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
def make_purkinje() -> Neuron:
    """Cerebellar Purkinje cell (De Schutter & Bower 1994, Carter & Bean 2009).

    Single-compartment somatic reduction (~25 µm soma with massive dendritic
    tree, area_cm2=250e-6 cm²; C ≈ 250 pF, matching Roth & Häusser 2001
    somatic recordings).  The preset reproduces autonomous tonic simple-spike
    pacemaking at ~10–50 Hz (in vivo rate 50–100 Hz requires dendritic inputs
    and network drive not modeled here).

    Pacemaking mechanism:
        INaP (Magistretti & Alonso 1999, V½ = −52.6 mV) provides a persistent
        Na⁺ window current that destabilizes any rest near −65 mV.  Ih
        (Destexhe et al. 1993, V½ ≈ −82 mV, g=1.0 mS/cm²) activates during
        the deep post-AP AHP and drives slow depolarization back to threshold,
        sustaining autonomous rhythmic firing.  v_rest=−65 mV is the simulation
        starting point; this cell has no stable zero-current resting potential.

    Na/K kinetics and temperature:
        De Schutter & Bower (1994) Traub-Miles Na⁺/K⁺ kinetics (VT = −58 mV)
        replace the HH52 defaults.  DSB94 channels were recorded at 32 °C;
        T_ref=305.15 K limits the runtime Q10 correction to ~1.73× (32→37 °C),
        preserving the published kinetics.  g_Na=30 mS/cm² (lower end of the
        somatic NaF range reported by Khaliq et al. 2003) and g_K=10 mS/cm²
        (a lumped delayed-rectifier representing multiple DSB94 K compartments)
        place the AP peak inside the +10 to +40 mV band and the AHP near
        −68 mV (Häusser & Clark 1997; Raman & Bean 1999).

    Slow Na inactivation and depolarization-block recovery:
        Two complementary slow gates ensure the cell repolarizes after
        sustained suprathreshold drive rather than hanging on a plateau:

        1. Fast-Na slow inactivation (sNa, via ``make_purkinje_na_channel``) —
           closes the residual fast-Na h-tail during prolonged depolarization.
           Carter & Bean (2009) directly demonstrated cumulative slow
           inactivation in cerebellar Purkinje somatic Na⁺ channels.
        2. INaP slow inactivation (sNaP, via ``make_inap_channel``) — removes
           the persistent Na⁺ window current that otherwise sustains the
           plateau (Magistretti & Alonso 1999).

        K_ATP is intentionally excluded: Carter & Bean's (2009) demonstration
        of depol-block recovery uses the two slow gates alone; K_ATP is not
        biologically motivated for Purkinje cells.

    Known limitations:
        Complex-spike "bursts" observed in vivo are climbing-fiber synaptic
        events (Raman & Bean 1997 — INaR-supported repriming under
        climbing-fiber EPSPs).  They are NOT intrinsic and cannot be produced
        by this single-compartment current-clamp preset.

    References:
        - De Schutter & Bower (1994), J. Neurophysiol. 71:375 (Na/K kinetics)
        - Carter & Bean (2009), Neuron 64:898 (slow Na inactivation in Purkinje)
        - Raman & Bean (1997), Neuron 19:881 (INaR; complex-spike mechanism)
        - Raman & Bean (1999), J. Neurosci. 19:4663 (INaP/INaR pacemaking)
        - Häusser & Clark (1997), J. Neurosci. 17:2358 (interspike V range)
        - Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP slow
          inactivation)
        - Khaliq et al. (2003), J. Neurosci. 23:4899 (somatic NaF density)
        - Roth & Häusser (2001), J. Physiol. 535:445 (C and R_n)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~25 µm soma
        (area_cm2=250e-6 cm²) with DSB94 Na/K core, Carter-Bean slow Na
        inactivation, ICaL/ICaT/IKCa/INaP/INaR/Ih auxiliary channels, and
        tuned CalciumDynamics.
    """
    return Neuron(
        v_rest=-65.0,
        T_ref=305.15,
        channels=(
            make_purkinje_na_channel(g_max=30.0),
            make_purkinje_k_channel(g_max=10.0),
            # K-leak only — no Na-leak.
            make_k_leak_channel(g_max=0.044),
            make_ical_channel(g_max=1.0),
            make_icat_channel(g_max=0.5),
            make_ikca_channel(g_max=2.0),
            make_inap_channel(g_max=0.1),
            make_inar_channel(g_max=0.1),
            make_ih_channel(g_max=1.0),
        ),
        # tau_ca=20 ms prevents inter-spike Ca accumulation at 10 Hz pacemaking;
        # alpha_ca=1.5e-5 gives peak ca_i ~2.6 µM (≤ 5 µM) under REPETITIVE_FIRING.
        calcium_dynamics=CalciumDynamics(alpha_ca=1.5e-5, tau_ca=20.0, ca_rest=1e-4),
        area_cm2=250e-6,
    )

make_squid_giant_axon

make_squid_giant_axon()

Original Hodgkin-Huxley (1952) squid giant axon (HH52).

Single-compartment model of the Loligo squid giant axon characterised at room temperature (~6 °C) in Hodgkin & Huxley (1952). All channel parameters are at their HH52 defaults; no additional currents are added.

Passive properties

area_cm2 is left as None because HH52 was characterised on a giant axon segment rather than a whole somatic cell. Per-area density units (kΩ·cm², µF/cm²) remain the conventional display; absolute MΩ/pF values are not meaningful for this preparation.

Temperature

Q10=1.0 — no thermal correction applied. The published kinetics already represent the intact room-temperature preparation; scaling to mammalian temperature is not appropriate.

Ion concentrations

K_out=7.8 mM restores the HH52 seawater value (E_K ≈ −77 mV). Default Na_out/Na_in concentrations produce E_Na ≈ +50 mV and E_L ≈ −54 mV, matching the original paper.

References
  • Hodgkin & Huxley (1952), J. Physiol. 117:500

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron using HH52 squid-axon

Neuron

parameters with seawater K_out (E_K ≈ −77 mV) and Q10=1.0.

Source code in neuroclamp/presets/squid.py
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
def make_squid_giant_axon() -> Neuron:
    """Original Hodgkin-Huxley (1952) squid giant axon (HH52).

    Single-compartment model of the Loligo squid giant axon characterised
    at room temperature (~6 °C) in Hodgkin & Huxley (1952).  All channel
    parameters are at their HH52 defaults; no additional currents are added.

    Passive properties:
        area_cm2 is left as None because HH52 was characterised on a giant
        axon segment rather than a whole somatic cell.  Per-area density
        units (kΩ·cm², µF/cm²) remain the conventional display; absolute
        MΩ/pF values are not meaningful for this preparation.

    Temperature:
        Q10=1.0 — no thermal correction applied.  The published kinetics
        already represent the intact room-temperature preparation; scaling
        to mammalian temperature is not appropriate.

    Ion concentrations:
        K_out=7.8 mM restores the HH52 seawater value (E_K ≈ −77 mV).
        Default Na_out/Na_in concentrations produce E_Na ≈ +50 mV and
        E_L ≈ −54 mV, matching the original paper.

    References:
        - Hodgkin & Huxley (1952), J. Physiol. 117:500

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` using HH52 squid-axon
        parameters with seawater K_out (E_K ≈ −77 mV) and Q10=1.0.
    """
    return Neuron(
        K_out=7.8,
        Q10=1.0,
        channels=(
            make_na_channel(g_max=120.0),
            make_k_channel(g_max=36.0),
            make_na_leak_channel(g_max=0.054),
            make_k_leak_channel(g_max=0.246),
        ),
    )

make_stn

make_stn()

Subthalamic nucleus pacemaker (Otsuka 2004, Wigmore & Lacey 2000).

Single-compartment model (~15 µm soma, area_cm2=7e-6 cm²; C ≈ 7 pF). The preset reproduces autonomous tonic pacemaking at ~11 Hz (Bevan & Wilson 1999 report 5–50 Hz in slice; ISI CV ≈ 0.05–0.15 per Hallworth, Wilson & Bevan 2003) and a conditional post-inhibitory rebound burst mode driven by ICaT.

Pacemaking mechanism

INaP (g=0.05 mS/cm²) provides a persistent Na⁺ window current that destabilizes any rest near −60 mV. Ih (g=1.0 mS/cm²) activates during the AHP and drives slow depolarization back to threshold, sustaining regular autonomous firing. v_rest=−60 mV is the simulation starting point; this cell has no stable zero-current resting potential. Only a pure-K⁺ leak (g_KL=0.04 mS/cm²) is wired in; the Na-leak channel is omitted entirely so that I_total at rest is not pinned to zero, which lets the pacemaking oscillator operate freely.

IKv3.1 delayed rectifier: IKv3.1 (Erisir 1999, V½ = −12.4 mV, n², τ_floor=0.2 ms) is the sole delayed rectifier. Wigmore & Lacey (2000) directly characterised the dominant somatic K current in rat STN as Kv3.1-like (V½ near −13 mV, threshold ≈ −38 mV) and concluded it enables high-frequency spike trains. The HH-style core "K" channel is omitted from the preset's channels tuple entirely (#320).

Burst mode (conditional): Prominent ICaT (g=5.0 mS/cm²) supports post-inhibitory rebound bursts when sufficient prior hyperpolarization de-inactivates the ft gate. On release, ICaT and Ih together drive a high-frequency burst before IKCa repolarizes the cell back to tonic mode. Burst mode can also be triggered by NMDA-receptor activation (Beurrier et al. 1999); NMDA is not modeled here, so burst mode is only reachable via a hyperpolarizing-step-and-release protocol.

Depolarization-block recovery

Three complementary mechanisms cooperate to repolarize the cell after sustained suprathreshold drive:

  1. INaP slow inactivation (sNaP, via make_inap_channel) — removes

    70 % of the persistent Na⁺ window current at the plateau.

  2. Fast-Na slow inactivation (sNa, via make_stn_na_channel) — closes the residual fast-Na h-tail at the depolarized plateau (Otsuka 2004 h_inf ≈ 1 % at −15 mV; Do & Bean 2003 established slow Na inactivation in STN directly).
  3. K_ATP (Stanford & Lacey 1996; Bevan & Wilson 1999; Hahn & McIntyre 2010) via make_katp_channel(g_max=0.5) — a voltage-driven slow-activation proxy (V½ = −25 mV, τ ≈ 400 ms) for the metabolically gated Kir6.x channel. Subthreshold availability is < 2 %, so autonomous pacemaking is unaffected.
Known limitations
  • find_zero_current_voltage_all_presets excludes this preset — autonomous oscillator with no static zero-current rest.
References
  • Otsuka et al. (2004), J. Neurophysiol. 92:255 (Na kinetics)
  • Bevan & Wilson (1999), J. Neurosci. 19:7617 (pacemaking, K_ATP role)
  • Hallworth, Wilson & Bevan (2003), J. Neurosci. 23:7525 (ISI regularity)
  • Beurrier et al. (1999), J. Neurosci. 19:599 (NMDA burst mode)
  • Do & Bean (2003), Neuron 39:109 (STN INaP, slow Na inactivation)
  • Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP)
  • Fleidervish & Gutnick (1996), J. Physiol. 493:83 (slow Na inactivation, cortical pyramidal)
  • Mickus, Jung & Spruston (1999), Biophys. J. 76:846 (slow Na inactivation, CA1 pyramidal)
  • Stanford & Lacey (1996), J. Neurophysiol. 75:1714 (K_ATP in STN)
  • Hahn & McIntyre (2010), J. Comput. Neurosci. 28:425 (STN model with K_ATP)
  • Wigmore & Lacey (2000), J. Physiol. 527:493 (Kv3-like K in STN)
  • Erisir et al. (1999), J. Neurophysiol. 82:2476 (Kv3.1 kinetics)
  • Zhou & Lee (2011), Neuroscience 195:14 (Kv3 in BG output neurons)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~15 µm soma

Neuron

(area_cm2=7e-6 cm²) with Otsuka Na/K core, IKv3.1, ICaT/ICaL/IKa/

Neuron

IKCa/INaP/Ih/K_ATP auxiliary channels, and tuned CalciumDynamics.

Source code in neuroclamp/presets/stn.py
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
def make_stn() -> Neuron:
    """Subthalamic nucleus pacemaker (Otsuka 2004, Wigmore & Lacey 2000).

    Single-compartment model (~15 µm soma, area_cm2=7e-6 cm²; C ≈ 7 pF).
    The preset reproduces autonomous tonic pacemaking at ~11 Hz (Bevan &
    Wilson 1999 report 5–50 Hz in slice; ISI CV ≈ 0.05–0.15 per Hallworth,
    Wilson & Bevan 2003) and a conditional post-inhibitory rebound burst mode
    driven by ICaT.

    Pacemaking mechanism:
        INaP (g=0.05 mS/cm²) provides a persistent Na⁺ window current that
        destabilizes any rest near −60 mV.  Ih (g=1.0 mS/cm²) activates
        during the AHP and drives slow depolarization back to threshold,
        sustaining regular autonomous firing.  v_rest=−60 mV is the simulation
        starting point; this cell has no stable zero-current resting potential.
        Only a pure-K⁺ leak (g_KL=0.04 mS/cm²) is wired in; the Na-leak channel
        is omitted entirely so that I_total at rest is not pinned to zero,
        which lets the pacemaking oscillator operate freely.

    IKv3.1 delayed rectifier:
        IKv3.1 (Erisir 1999, V½ = −12.4 mV, n², τ_floor=0.2 ms) is the sole
        delayed rectifier.  Wigmore & Lacey (2000) directly characterised the
        dominant somatic K current in rat STN as Kv3.1-like (V½ near −13 mV,
        threshold ≈ −38 mV) and concluded it enables high-frequency spike
        trains.  The HH-style core ``"K"`` channel is omitted from the
        preset's ``channels`` tuple entirely (#320).

    Burst mode (conditional):
        Prominent ICaT (g=5.0 mS/cm²) supports post-inhibitory rebound bursts
        when sufficient prior hyperpolarization de-inactivates the ft gate.
        On release, ICaT and Ih together drive a high-frequency burst before
        IKCa repolarizes the cell back to tonic mode.  Burst mode can also be
        triggered by NMDA-receptor activation (Beurrier et al. 1999); NMDA is
        not modeled here, so burst mode is only reachable via a
        hyperpolarizing-step-and-release protocol.

    Depolarization-block recovery:
        Three complementary mechanisms cooperate to repolarize the cell after
        sustained suprathreshold drive:

        1. INaP slow inactivation (sNaP, via ``make_inap_channel``) — removes
           >70 % of the persistent Na⁺ window current at the plateau.
        2. Fast-Na slow inactivation (sNa, via ``make_stn_na_channel``) —
           closes the residual fast-Na h-tail at the depolarized plateau
           (Otsuka 2004 h_inf ≈ 1 % at −15 mV; Do & Bean 2003 established
           slow Na inactivation in STN directly).
        3. K_ATP (Stanford & Lacey 1996; Bevan & Wilson 1999; Hahn &
           McIntyre 2010) via ``make_katp_channel(g_max=0.5)`` — a
           voltage-driven slow-activation proxy (V½ = −25 mV, τ ≈ 400 ms)
           for the metabolically gated Kir6.x channel.  Subthreshold
           availability is < 2 %, so autonomous pacemaking is unaffected.

    Known limitations:
        - ``find_zero_current_voltage_all_presets`` excludes this preset —
          autonomous oscillator with no static zero-current rest.

    References:
        - Otsuka et al. (2004), J. Neurophysiol. 92:255 (Na kinetics)
        - Bevan & Wilson (1999), J. Neurosci. 19:7617 (pacemaking, K_ATP role)
        - Hallworth, Wilson & Bevan (2003), J. Neurosci. 23:7525 (ISI regularity)
        - Beurrier et al. (1999), J. Neurosci. 19:599 (NMDA burst mode)
        - Do & Bean (2003), Neuron 39:109 (STN INaP, slow Na inactivation)
        - Magistretti & Alonso (1999), J. Gen. Physiol. 114:491 (INaP)
        - Fleidervish & Gutnick (1996), J. Physiol. 493:83 (slow Na
          inactivation, cortical pyramidal)
        - Mickus, Jung & Spruston (1999), Biophys. J. 76:846 (slow Na
          inactivation, CA1 pyramidal)
        - Stanford & Lacey (1996), J. Neurophysiol. 75:1714 (K_ATP in STN)
        - Hahn & McIntyre (2010), J. Comput. Neurosci. 28:425 (STN model
          with K_ATP)
        - Wigmore & Lacey (2000), J. Physiol. 527:493 (Kv3-like K in STN)
        - Erisir et al. (1999), J. Neurophysiol. 82:2476 (Kv3.1 kinetics)
        - Zhou & Lee (2011), Neuroscience 195:14 (Kv3 in BG output neurons)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~15 µm soma
        (area_cm2=7e-6 cm²) with Otsuka Na/K core, IKv3.1, ICaT/ICaL/IKa/
        IKCa/INaP/Ih/K_ATP auxiliary channels, and tuned CalciumDynamics.
    """
    return Neuron(
        v_rest=-60.0,
        Na_out=145.0,
        K_out=5.0,
        Q10=1.0,
        T_ref=308.15,
        channels=(
            make_stn_na_channel(g_max=14.0),
            # K-leak only — no Na-leak, no HH-style core K (Kv3.1 is the
            # delayed rectifier).  See preset docstring for rationale.
            make_k_leak_channel(g_max=0.04),
            make_icat_channel(g_max=5.0),
            make_ical_channel(g_max=0.5),
            make_ika_channel(g_max=3.0),
            make_ikca_channel(g_max=1.0),
            make_ih_channel(g_max=1.0),
            make_inap_channel(g_max=0.05),
            make_ikv31_channel(g_max=1.0),
            make_katp_channel(g_max=0.5),
        ),
        # ICaT g=5.0 mS/cm² is the largest Ca conductance in any preset; low
        # alpha_ca=1.1e-5 compensates for the high Ca influx per spike, keeping
        # peak ca_i ≤ 5 µM.  ca_init is a non-equilibrium Ca²⁺ starting guess
        # (the oscillator is never truly at rest).
        calcium_dynamics=CalciumDynamics(
            alpha_ca=1.1e-5, tau_ca=20.0, ca_rest=1e-4, ca_init=7.325e-4
        ),
        area_cm2=7e-6,
    )

make_thalamic_relay

make_thalamic_relay()

Thalamocortical relay neuron (McCormick & Huguenard 1992).

Single-compartment model (~20 µm soma with modest dendrites, area_cm2=12e-6 cm²; C ≈ 12 pF, R_n ≈ 80 MΩ). The preset reproduces the post-inhibitory rebound LTS burst (3–7 Na⁺ spikes at 200–500 Hz on the LTS plateau) that defines TC burst mode (Sherman & Guillery 1996; Llinás & Jahnsen 1982).

LTS burst mechanism

ICaT (make_thalamic_relay_icat_channel, g=2.5 mS/cm²) produces a low-threshold Ca²⁺ spike plateau when the ft gate is de-inactivated by prior hyperpolarization. Ih (g=1.0 mS/cm²) activates during hyperpolarization and provides depolarizing drive on release, ensuring the membrane crosses the LTS threshold after a hyperpolarizing step. Without Ih, passive relaxation does not overshoot the LTS threshold.

ICaT factory and slow inactivation

make_thalamic_relay_icat_channel uses a sigmoid-shaped ft inactivation time constant (tau_scale=100 ms) rather than the cosh-shaped Destexhe (1994) default. McCormick & Huguenard (1992) report tau_h_T ≈ 25–40 ms in the depolarized range; the slower inactivation sustains the LTS plateau long enough to support the full multi-spike burst.

Na/K kinetics and temperature: McCormick-Huguenard (1992) / Pospischil (2008) Traub-Miles Na⁺/K⁺ kinetics (VT = −52 mV) replace the HH52 defaults. MH92 channels were recorded at 36 °C; T_ref=309.15 K limits the runtime Q10 correction to ~1.12× (36→37 °C), preserving the published kinetics. g_Na=45 mS/cm² and g_K=10 mS/cm² are explicit somatic densities for the single-compartment reduction; these land every M&H92 AP-shape metric (peak, AHP, half-width, threshold, firing rate) inside its acceptance band while preserving the LTS burst phenotype.

Passive properties

Pure K⁺ background leak (g_KL=0.19 mS/cm², no Na-leak channel) gives τ_m ≈ 5.26 ms and R_in ≈ 5.26 kΩ·cm². The MH92 K⁺ kinetics produce negligible window current at rest (n_inf ≈ 0.004), so the leak must be pure-K⁺ to balance the ICaT and Ih window inward currents.

Coupled equilibrium

v_rest and ca_init are the coupled (V, ca_i) equilibrium at rest: the ICaT window current elevates ca_i above ca_rest even at v_rest. If g_CaT, g_Ih, or the ICaT factory are ever retuned, re-run find_coupled_equilibrium to recompute v_rest, g_KL, and ca_init.

References
  • McCormick & Huguenard (1992), J. Neurophysiol. 68:1384 (TC Na/K/ICaT)
  • Pospischil et al. (2008), Biol. Cybern. 99:427, Table 2 (TC params)
  • Sherman & Guillery (1996), J. Neurophysiol. 76:1367 (TC burst mode)
  • Llinás & Jahnsen (1982), Nature 297:406 (LTS in TC neurons)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~20 µm soma

Neuron

(area_cm2=12e-6 cm²) with MH92/Pospischil Na/K core, TC-tuned ICaT,

Neuron

Ih, and tuned CalciumDynamics.

Source code in neuroclamp/presets/thalamocortical.py
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
def make_thalamic_relay() -> Neuron:
    """Thalamocortical relay neuron (McCormick & Huguenard 1992).

    Single-compartment model (~20 µm soma with modest dendrites,
    area_cm2=12e-6 cm²; C ≈ 12 pF, R_n ≈ 80 MΩ).  The preset reproduces
    the post-inhibitory rebound LTS burst (3–7 Na⁺ spikes at 200–500 Hz on
    the LTS plateau) that defines TC burst mode (Sherman & Guillery 1996;
    Llinás & Jahnsen 1982).

    LTS burst mechanism:
        ICaT (``make_thalamic_relay_icat_channel``, g=2.5 mS/cm²) produces a
        low-threshold Ca²⁺ spike plateau when the ft gate is de-inactivated by
        prior hyperpolarization.  Ih (g=1.0 mS/cm²) activates during
        hyperpolarization and provides depolarizing drive on release, ensuring
        the membrane crosses the LTS threshold after a hyperpolarizing step.
        Without Ih, passive relaxation does not overshoot the LTS threshold.

    ICaT factory and slow inactivation:
        ``make_thalamic_relay_icat_channel`` uses a sigmoid-shaped ft
        inactivation time constant (tau_scale=100 ms) rather than the
        cosh-shaped Destexhe (1994) default.  McCormick & Huguenard (1992)
        report tau_h_T ≈ 25–40 ms in the depolarized range; the slower
        inactivation sustains the LTS plateau long enough to support the full
        multi-spike burst.

    Na/K kinetics and temperature:
        McCormick-Huguenard (1992) / Pospischil (2008) Traub-Miles Na⁺/K⁺
        kinetics (VT = −52 mV) replace the HH52 defaults.  MH92 channels were
        recorded at 36 °C; T_ref=309.15 K limits the runtime Q10 correction to
        ~1.12× (36→37 °C), preserving the published kinetics.  g_Na=45 mS/cm²
        and g_K=10 mS/cm² are explicit somatic densities for the
        single-compartment reduction; these land every M&H92 AP-shape metric
        (peak, AHP, half-width, threshold, firing rate) inside its acceptance
        band while preserving the LTS burst phenotype.

    Passive properties:
        Pure K⁺ background leak (g_KL=0.19 mS/cm², no Na-leak channel) gives
        τ_m ≈ 5.26 ms and R_in ≈ 5.26 kΩ·cm².  The MH92 K⁺ kinetics produce
        negligible window current at rest (n_inf ≈ 0.004), so the leak must
        be pure-K⁺ to balance the ICaT and Ih window inward currents.

    Coupled equilibrium:
        v_rest and ca_init are the coupled (V, ca_i) equilibrium at rest:
        the ICaT window current elevates ca_i above ca_rest even at v_rest.
        If g_CaT, g_Ih, or the ICaT factory are ever retuned, re-run
        ``find_coupled_equilibrium`` to recompute v_rest, g_KL, and ca_init.

    References:
        - McCormick & Huguenard (1992), J. Neurophysiol. 68:1384 (TC Na/K/ICaT)
        - Pospischil et al. (2008), Biol. Cybern. 99:427, Table 2 (TC params)
        - Sherman & Guillery (1996), J. Neurophysiol. 76:1367 (TC burst mode)
        - Llinás & Jahnsen (1982), Nature 297:406 (LTS in TC neurons)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~20 µm soma
        (area_cm2=12e-6 cm²) with MH92/Pospischil Na/K core, TC-tuned ICaT,
        Ih, and tuned CalciumDynamics.
    """
    return Neuron(
        v_rest=-69.2550,
        T_ref=309.15,
        channels=(
            make_thalamic_relay_na_channel(g_max=45.0),
            make_thalamic_relay_k_channel(g_max=10.0),
            # K-leak only — pure-K⁺ background.
            make_k_leak_channel(g_max=0.19),
            make_thalamic_relay_icat_channel(g_max=2.5),
            make_ih_channel(g_max=1.0),
        ),
        # ca_init is the coupled (V, ca_i) equilibrium at v_rest — ICaT window
        # current at rest elevates ca_i above ca_rest.  Use find_coupled_equilibrium
        # to recompute if CalciumDynamics or channel parameters change.
        calcium_dynamics=CalciumDynamics(
            alpha_ca=2.6e-5, tau_ca=20.0, ca_rest=1e-4, ca_init=6.9107e-4
        ),
        area_cm2=12e-6,
    )

make_trn

make_trn()

Thalamic reticular neuron (Huguenard & Prince 1992, Bal & McCormick 1993).

Single-compartment model (~15 µm soma, area_cm2=7e-6 cm²; C ≈ 7 pF). The preset reproduces the HP92 LTS-rebound multi-spike burst phenotype (5–15 Na⁺ spikes at 200–600 Hz) and autonomous tonic pacemaking at ~10 Hz (HP92 and Bal & McCormick 1993 report 1–15 Hz in slice). v_rest=−80 mV is the configured initial condition; the cell rapidly leaves this point and settles into tonic firing.

LTS burst mechanism

ICaT (make_trn_icat_channel, g=2.85 mS/cm²) produces a low-threshold Ca²⁺ spike plateau when ft is de-inactivated by prior hyperpolarization. Ih (g=0.020 mS/cm²; Bal & McCormick 1993 report ≈0.025 for cat TRN) activates during the hyperpolarizing step and drives V across the LTS threshold on release — without Ih, passive relaxation does not overshoot the threshold and the LTS does not fire. IKCa (HP92, g=0.3 mS/cm²) converts ICaT-mediated Ca²⁺ entry into outward K⁺ current, generating the AHP after spikes during tonic firing and contributing to burst termination.

ICaT factory and inactivation time constant

make_trn_icat_channel replaces the default cosh-shaped Destexhe (1994) ft tau with a sigmoid-shaped tau — small (~20 ms) at hyperpolarized V and large (~200 ms) at LTS-plateau V. This sustains the LTS plateau long enough to support the 5–15 spike HP92 burst. ft_inf(V) is unchanged from Destexhe (1994).

Na/K kinetics and temperature: Huguenard & Prince (1992) / Pospischil (2008) Traub-Miles Na⁺/K⁺ kinetics (VT = −67 mV) replace the HH52 defaults. HP92 channels were recorded at 36 °C; T_ref=309.15 K limits the runtime Q10 correction to ~1.12× (36→37 °C), preserving the published kinetics. g_Na=50 mS/cm² and g_K=24 mS/cm² are explicit somatic densities that land every HP92 tonic AP-shape metric (peak +10 to +45 mV; AHP −75 to −55 mV; half-width; threshold; firing rate) inside its band while preserving the 5–15 spike LTS burst at g_T=2.85 mS/cm².

Na h-gate shift

The Na channel uses make_trn_na_channel(h_v_half_shift=5.0) to shift the inactivation h-gate V½ depolarized by 5 mV, accelerating Na⁺ recovery from inactivation at LTS-plateau voltages (≈ −30 to +5 mV) so the cell sustains full Na⁺ spikes on the rising LTS edge of REPETITIVE_FIRING. m and n kinetics remain on the shared TRN_VT. Biological motivation: TRN expresses a mix of NaV1.6 and NaV1.2 isoforms whose inactivation half-points differ by ~10 mV (Rush et al. 2005, J. Physiol. 564:803; Hatch et al. 2017, J. Neurosci. 37:1641); a 5 mV effective shift is well within the published isoform-mix variation.

Passive properties

g_NaL=0.0066 / g_KL=0.0634 mS/cm² (total 0.07) gives τ_m ≈ 14.3 ms and R_in ≈ 14.3 kΩ·cm². At v_rest=−80 mV the ft gate is near its half-inactivation point (ft_inf ≈ 0.50), favoring post-inhibitory rebound bursting.

Known limitations
  • Excluded from test_all_presets_stable_at_rest — autonomous oscillator with no stable zero-current equilibrium.
References
  • Huguenard & Prince (1992), J. Neurosci. 12:3804 (TRN biophysics; ICaT, IKCa; published g_KCa)
  • Bal & McCormick (1993), J. Physiol. 468:669 (Ih in cat TRN)
  • Destexhe et al. (1994), J. Neurophysiol. 72:803 (ICaT kinetics)
  • Pospischil et al. (2008), Biol. Cybern. 99:427, Table 2 (RE params)
  • Rush et al. (2005), J. Physiol. 564:803 (NaV1.6 vs NaV1.2 h V½, motivating the 5 mV h_v_half_shift)
  • Hatch et al. (2017), J. Neurosci. 37:1641 (TRN NaV1.6/1.2 mix)

Returns:

Type Description
Neuron

Fully-configured :class:~neuroclamp.Neuron — ~15 µm soma

Neuron

(area_cm2=7e-6 cm²) with HP92/Pospischil Na/K core, TRN-tuned ICaT,

Neuron

IKCa, Ih, and tuned CalciumDynamics.

Source code in neuroclamp/presets/trn.py
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
def make_trn() -> Neuron:
    """Thalamic reticular neuron (Huguenard & Prince 1992, Bal & McCormick 1993).

    Single-compartment model (~15 µm soma, area_cm2=7e-6 cm²; C ≈ 7 pF).
    The preset reproduces the HP92 LTS-rebound multi-spike burst phenotype
    (5–15 Na⁺ spikes at 200–600 Hz) and autonomous tonic pacemaking at ~10 Hz
    (HP92 and Bal & McCormick 1993 report 1–15 Hz in slice).  v_rest=−80 mV
    is the configured initial condition; the cell rapidly leaves this point and
    settles into tonic firing.

    LTS burst mechanism:
        ICaT (``make_trn_icat_channel``, g=2.85 mS/cm²) produces a
        low-threshold Ca²⁺ spike plateau when ft is de-inactivated by prior
        hyperpolarization.  Ih (g=0.020 mS/cm²; Bal & McCormick 1993 report
        ≈0.025 for cat TRN) activates during the hyperpolarizing step and
        drives V across the LTS threshold on release — without Ih, passive
        relaxation does not overshoot the threshold and the LTS does not fire.
        IKCa (HP92, g=0.3 mS/cm²) converts ICaT-mediated Ca²⁺ entry into
        outward K⁺ current, generating the AHP after spikes during tonic firing
        and contributing to burst termination.

    ICaT factory and inactivation time constant:
        ``make_trn_icat_channel`` replaces the default cosh-shaped Destexhe
        (1994) ft tau with a sigmoid-shaped tau — small (~20 ms) at
        hyperpolarized V and large (~200 ms) at LTS-plateau V.  This sustains
        the LTS plateau long enough to support the 5–15 spike HP92 burst.
        ft_inf(V) is unchanged from Destexhe (1994).

    Na/K kinetics and temperature:
        Huguenard & Prince (1992) / Pospischil (2008) Traub-Miles Na⁺/K⁺
        kinetics (VT = −67 mV) replace the HH52 defaults.  HP92 channels were
        recorded at 36 °C; T_ref=309.15 K limits the runtime Q10 correction to
        ~1.12× (36→37 °C), preserving the published kinetics.  g_Na=50 mS/cm²
        and g_K=24 mS/cm² are explicit somatic densities that land every HP92
        tonic AP-shape metric (peak +10 to +45 mV; AHP −75 to −55 mV;
        half-width; threshold; firing rate) inside its band while preserving
        the 5–15 spike LTS burst at g_T=2.85 mS/cm².

    Na h-gate shift:
        The Na channel uses ``make_trn_na_channel(h_v_half_shift=5.0)`` to
        shift the inactivation h-gate V½ depolarized by 5 mV, accelerating
        Na⁺ recovery from inactivation at LTS-plateau voltages (≈ −30 to
        +5 mV) so the cell sustains full Na⁺ spikes on the rising LTS edge
        of REPETITIVE_FIRING.  m and n kinetics remain on the shared
        TRN_VT.  Biological motivation: TRN expresses a mix of NaV1.6 and
        NaV1.2 isoforms whose inactivation half-points differ by ~10 mV
        (Rush et al. 2005, J. Physiol. 564:803; Hatch et al. 2017,
        J. Neurosci. 37:1641); a 5 mV effective shift is well within the
        published isoform-mix variation.

    Passive properties:
        g_NaL=0.0066 / g_KL=0.0634 mS/cm² (total 0.07) gives τ_m ≈ 14.3 ms
        and R_in ≈ 14.3 kΩ·cm².  At v_rest=−80 mV the ft gate is near its
        half-inactivation point (ft_inf ≈ 0.50), favoring post-inhibitory
        rebound bursting.

    Known limitations:
        - Excluded from ``test_all_presets_stable_at_rest`` — autonomous
          oscillator with no stable zero-current equilibrium.

    References:
        - Huguenard & Prince (1992), J. Neurosci. 12:3804 (TRN biophysics;
          ICaT, IKCa; published g_KCa)
        - Bal & McCormick (1993), J. Physiol. 468:669 (Ih in cat TRN)
        - Destexhe et al. (1994), J. Neurophysiol. 72:803 (ICaT kinetics)
        - Pospischil et al. (2008), Biol. Cybern. 99:427, Table 2 (RE params)
        - Rush et al. (2005), J. Physiol. 564:803 (NaV1.6 vs NaV1.2 h V½,
          motivating the 5 mV ``h_v_half_shift``)
        - Hatch et al. (2017), J. Neurosci. 37:1641 (TRN NaV1.6/1.2 mix)

    Returns:
        Fully-configured :class:`~neuroclamp.Neuron` — ~15 µm soma
        (area_cm2=7e-6 cm²) with HP92/Pospischil Na/K core, TRN-tuned ICaT,
        IKCa, Ih, and tuned CalciumDynamics.
    """
    return Neuron(
        v_rest=-80.0,
        T_ref=309.15,
        channels=(
            make_trn_na_channel(g_max=50.0, h_v_half_shift=5.0),
            make_trn_k_channel(g_max=24.0),
            make_na_leak_channel(g_max=0.0066),
            make_k_leak_channel(g_max=0.0634),
            make_trn_icat_channel(g_max=2.85),
            make_ikca_channel(g_max=0.3),
            make_ih_channel(g_max=0.020),
        ),
        # Peak ca_i reaches ~14–15 µM under REPETITIVE_FIRING and ~6–18 µM under
        # HYPERPOLARIZATION_STEPS (LTS rebound burst) — physiologically
        # consistent with TRN somatic Ca during high-frequency burst trains
        # (Cueni et al. 2008, Nat. Neurosci. 11:683).  The elevated Ca is
        # load-bearing: lower alpha_ca collapses the burst phenotype because
        # IKCa (g_KCa=0.3 mS/cm²) cannot terminate the burst cleanly without
        # sufficient Ca²⁺ drive.  ``test_calcium_calibration.py`` uses a
        # TRN-specific 5–16 µM band: the REPETITIVE_FIRING peak here is the
        # transient buildup before IKCa AHPs and tau_ca extrusion bring it
        # back down, not a quasi-steady-state.
        calcium_dynamics=CalciumDynamics(alpha_ca=1.2e-5, tau_ca=20.0, ca_rest=1e-4),
        area_cm2=7e-6,
    )