Skip to content

fix(presets): retune TRN for in-band HP92 tonic AP shape#346

Merged
JCorson merged 4 commits into
mainfrom
issue-308-trn-tonic-ap-shape
May 7, 2026
Merged

fix(presets): retune TRN for in-band HP92 tonic AP shape#346
JCorson merged 4 commits into
mainfrom
issue-308-trn-tonic-ap-shape

Conversation

@JCorson
Copy link
Copy Markdown
Owner

@JCorson JCorson commented May 7, 2026

Summary

Closes #308

Test plan

  • Confirm tonic and intra-burst AP shape tests in tests/integration/test_trn.py pass with the new conductances
  • Confirm HP92 rebound burst (test_trn_step_release_produces_hp92_rebound_burst) still produces a single coherent 5–15 spike burst at 200–600 Hz
  • Confirm multi-sweep variant (test_trn_hyperpolarization_steps_protocol_produces_burst_per_sweep) still works for sweeps at −5, −4, −3 µA/cm²
  • Confirm passive properties (test_preset_passive_properties_in_physiological_range), v_rest pin (test_trn_preset_vrest_is_physiological), and ICaT half-inactivation (test_trn_icat_ft_inf_at_vrest_enables_burst_firing) still pass — leak split unchanged
  • Confirm no other preset's calcium calibration is affected (test_strong_stim_peak_ca_in_band for PURKINJE, CA1_PYRAMIDAL, STN, THALAMIC_RELAY)

JCorson added 4 commits May 6, 2026 18:34
The TRN preset previously inherited NeuronConfig's HH52 defaults
(g_Na=120, g_K=36) over its HP92/Pospischil RE Na/K kinetics.  This
drove the mean tonic AP peak to ~+49 mV and AHP to ~-86 mV, both
outside the Huguenard & Prince (1992) bands (peak +10 to +40 mV;
AHP -75 to -55 mV).  Same kinetic pattern as the cortical pyramidal
(#298), Purkinje (#299), FSI (#301), DA (#304), STN (#305), and TC
(#307) fixes.

Set g_Na=50, g_K=24 as explicit somatic densities for the single-
compartment reduction.  Pospischil 2008 Table 2 specifies (200, 20)
for RE, but at those densities the MH92 Traub-Miles kinetics still
overshoot peak.  (50, 24) is the smallest reduction that lands every
HP92 tonic AP-shape metric inside its band while keeping the cell
genuinely pacing at <15 Hz.

Bump g_T down from 3.0 -> 2.85 mS/cm² (still within HP92 voltage-clamp
range) in tandem.  Without this tweak, the lowered g_K lets the LTS
plateau drive too many spikes (>15) and the burst fragments into
multiple detected bursts, breaking the strict burst_count == 1
assertion in test_trn_step_release_produces_hp92_rebound_burst.  The
small g_T cut shortens the plateau back into the 5-15 spike band and
keeps the rebound burst coherent.

Refs:
- Huguenard, J.R. & Prince, D.A. (1992) J. Neurosci. 12:3804
- Pospischil et al. (2008) Biol. Cybern. 99:427, Table 2 (RE)
Both metrics now in band after the TRN g_Na/g_K/g_T retune; closes #308.
The TRN g_Na/g_K/g_T retune (closes #308) makes the cell genuinely
much more excitable than the prior HH52-defaulted preset under any
depolarising stimulus.  Under REPETITIVE_FIRING (3 µA, 200 ms) the
retuned cell now fires ~70 spikes versus the prior ~5, which drives
peak somatic Ca to ~9-10 µM rather than ~3.7 µM.

This is a physiologically realistic high-frequency burst-train regime
in which TRN somatic Ca is known to reach ~10 µM (Cueni et al. 2008,
Nat. Neurosci. 11:683 on TRN dendritic [Ca²⁺]ᵢ during LTS).

Add a per-preset upper-bound override dict so the calcium calibration
test still catches CalciumDynamics parameter drift without flagging
the deliberate excitability gain that came with the in-band tonic AP
shape.  Lower alpha_ca/tau_ca to bring the absolute peak down would
collapse the burst phenotype (IKCa cannot terminate the LTS plateau
without sufficient Ca buildup), so the elevated Ca is the load-bearing
mechanism for IKCa-driven burst termination at the literature
g_KCa = 0.3.

Also refresh the TRN preset's CalciumDynamics docstring to reflect
the new state.
Address review feedback on PR #346:

- ACTION_POTENTIAL adjustment for TRN said "5 µA × 2 ms evokes a single
  AP", but the retuned cell is a tonic pacemaker that fires several APs
  in the 22 ms window regardless of injected current.  Update the
  comment to describe the actual behaviour.

- Two places in the preset docstring claimed the spontaneous tonic
  rate is ~3 Hz; measured rate at the new (g_Na, g_K) is ~10 Hz
  (still inside the test-accepted 1-15 Hz band and the HP92
  spontaneous-firing range).  Refresh both occurrences and the
  mean V estimate.

- Switch the per-preset calcium-band override from a one-sided cap
  (TRN: 12 µM max) to a two-sided band (TRN: [5, 12] µM).
  alpha_ca/tau_ca are load-bearing for IKCa-driven burst termination;
  a downward drift would silently break the burst phenotype, so the
  test should catch drift in either direction.
@JCorson JCorson merged commit c85b0b4 into main May 7, 2026
5 checks passed
@JCorson JCorson deleted the issue-308-trn-tonic-ap-shape branch May 7, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TRN: tonic AP peak voltage and AHP depth outside HP92 literature ranges

1 participant