| 1 |
""" |
| 2 |
Reproduces Figure 12 (simplified three-compartment model) from the following |
| 3 |
paper: |
| 4 |
|
| 5 |
Dendritic Low-Threshold Calcium Currents in Thalamic Relay Cells |
| 6 |
Alain Destexhe, Mike Neubig, Daniel Ulrich, John Huguenard |
| 7 |
Journal of Neuroscience 15 May 1998, 18 (10) 3574-3588 |
| 8 |
|
| 9 |
The original NEURON code is available on ModelDB: https://senselab.med.yale.edu/modeldb/ShowModel.cshtml?model=279 |
| 10 |
|
| 11 |
Reference for the original morphology: |
| 12 |
|
| 13 |
Rat VB neuron (thalamocortical cell), given by J. Huguenard, stained with |
| 14 |
biocytin and traced by A. Destexhe, December 1992. The neuron is described |
| 15 |
in: J.R. Huguenard & D.A. Prince, A novel T-type current underlies prolonged |
| 16 |
calcium-dependent burst firing in GABAergic neurons of rat thalamic reticular |
| 17 |
nucleus. J. Neurosci. 12: 3804-3817, 1992. |
| 18 |
|
| 19 |
Available at NeuroMorpho.org: |
| 20 |
|
| 21 |
http://neuromorpho.org/neuron_info.jsp?neuron_name=tc200 |
| 22 |
NeuroMorpho.Org ID :NMO_00881 |
| 23 |
|
| 24 |
Notes |
| 25 |
----- |
| 26 |
* Completely removed the "Fast mechanism for submembranal Ca++ concentration |
| 27 |
(cai)" -- it did not affect the results presented here |
| 28 |
* Time constants for the I_T current are slightly different from the equations |
| 29 |
given in the paper -- the paper calculation seems to be based on 36 degree |
| 30 |
Celsius but the temperature that is used is 34 degrees. |
| 31 |
* To reproduce Figure 12C, the "presence of dendritic shunt conductances" meant |
| 32 |
setting g_L to 0.15 mS/cm^2 for the whole neuron. |
| 33 |
* Other small discrepancies with the paper -- values from the NEURON code were |
| 34 |
used whenever different from the values stated in the paper |
| 35 |
""" |
| 36 |
|
| 37 |
from brian2 import * |
| 38 |
from brian2.units.constants import (zero_celsius, faraday_constant as F, |
| 39 |
gas_constant as R) |
| 40 |
|
| 41 |
defaultclock.dt = 0.01*ms |
| 42 |
|
| 43 |
VT = -52*mV |
| 44 |
El = -76.5*mV # from code, text says: -69.85*mV |
| 45 |
|
| 46 |
E_Na = 50*mV |
| 47 |
E_K = -100*mV |
| 48 |
C_d = 7.954 # dendritic correction factor |
| 49 |
|
| 50 |
T = 34*kelvin + zero_celsius # 34 degC (current-clamp experiments) |
| 51 |
tadj_HH = 3.0**((34-36)/10.0) # temperature adjustment for Na & K (original recordings at 36 degC) |
| 52 |
tadj_m_T = 2.5**((34-24)/10.0) |
| 53 |
tadj_h_T = 2.5**((34-24)/10.0) |
| 54 |
|
| 55 |
shift_I_T = -1*mV |
| 56 |
|
| 57 |
gamma = F/(R*T) # R=gas constant, F=Faraday constant |
| 58 |
Z_Ca = 2 # Valence of Calcium ions |
| 59 |
Ca_i = 240*nM # intracellular Calcium concentration |
| 60 |
Ca_o = 2*mM # extracellular Calcium concentration |
| 61 |
|
| 62 |
eqs = Equations(''' |
| 63 |
Im = gl*(El-v) - I_Na - I_K - I_T: amp/meter**2 |
| 64 |
I_inj : amp (point current) |
| 65 |
gl : siemens/meter**2 |
| 66 |
|
| 67 |
# HH-type currents for spike initiation |
| 68 |
g_Na : siemens/meter**2 |
| 69 |
g_K : siemens/meter**2 |
| 70 |
I_Na = g_Na * m**3 * h * (v-E_Na) : amp/meter**2 |
| 71 |
I_K = g_K * n**4 * (v-E_K) : amp/meter**2 |
| 72 |
v2 = v - VT : volt # shifted membrane potential (Traub convention) |
| 73 |
dm/dt = (0.32*(mV**-1)*(13.*mV-v2)/ |
| 74 |
(exp((13.*mV-v2)/(4.*mV))-1.)*(1-m)-0.28*(mV**-1)*(v2-40.*mV)/ |
| 75 |
(exp((v2-40.*mV)/(5.*mV))-1.)*m) / ms * tadj_HH: 1 |
| 76 |
dn/dt = (0.032*(mV**-1)*(15.*mV-v2)/ |
| 77 |
(exp((15.*mV-v2)/(5.*mV))-1.)*(1.-n)-.5*exp((10.*mV-v2)/(40.*mV))*n) / ms * tadj_HH: 1 |
| 78 |
dh/dt = (0.128*exp((17.*mV-v2)/(18.*mV))*(1.-h)-4./(1+exp((40.*mV-v2)/(5.*mV)))*h) / ms * tadj_HH: 1 |
| 79 |
|
| 80 |
# Low-threshold Calcium current (I_T) -- nonlinear function of voltage |
| 81 |
I_T = P_Ca * m_T**2*h_T * G_Ca : amp/meter**2 |
| 82 |
P_Ca : meter/second # maximum Permeability to Calcium |
| 83 |
G_Ca = Z_Ca**2*F*v*gamma*(Ca_i - Ca_o*exp(-Z_Ca*gamma*v))/(1 - exp(-Z_Ca*gamma*v)) : coulomb/meter**3 |
| 84 |
dm_T/dt = -(m_T - m_T_inf)/tau_m_T : 1 |
| 85 |
dh_T/dt = -(h_T - h_T_inf)/tau_h_T : 1 |
| 86 |
m_T_inf = 1/(1 + exp(-(v/mV + 56)/6.2)) : 1 |
| 87 |
h_T_inf = 1/(1 + exp((v/mV + 80)/4)) : 1 |
| 88 |
tau_m_T = (0.612 + 1.0/(exp(-(v/mV + 131)/16.7) + exp((v/mV + 15.8)/18.2))) * ms / tadj_m_T: second |
| 89 |
tau_h_T = (int(v<-81*mV) * exp((v/mV + 466)/66.6) + |
| 90 |
int(v>=-81*mV) * (28 + exp(-(v/mV + 21)/10.5))) * ms / tadj_h_T: second |
| 91 |
''') |
| 92 |
|
| 93 |
# Simplified three-compartment morphology |
| 94 |
morpho = Cylinder(x=[0, 38.42]*um, diameter=26*um) |
| 95 |
morpho.dend = Cylinder(x=[0, 12.49]*um, diameter=10.28*um) |
| 96 |
morpho.dend.distal = Cylinder(x=[0, 84.67]*um, diameter=8.5*um) |
| 97 |
neuron = SpatialNeuron(morpho, eqs, Cm=0.88*uF/cm**2, Ri=173*ohm*cm, |
| 98 |
method='exponential_euler') |
| 99 |
|
| 100 |
neuron.v = -74*mV |
| 101 |
# Only the soma has Na/K channels |
| 102 |
neuron.main.g_Na = 100*msiemens/cm**2 |
| 103 |
neuron.main.g_K = 100*msiemens/cm**2 |
| 104 |
# Apply the correction factor to the dendrites |
| 105 |
|
| 106 |
neuron.dend.Cm *= C_d |
| 107 |
neuron.m_T = 'm_T_inf' |
| 108 |
neuron.h_T = 'h_T_inf' |
| 109 |
|
| 110 |
mon = StateMonitor(neuron, ['v'], record=True) |
| 111 |
|
| 112 |
store('initial state') |
| 113 |
|
| 114 |
|
| 115 |
def do_experiment(currents, somatic_density, dendritic_density, |
| 116 |
dendritic_conductance=0.0379*msiemens/cm**2, |
| 117 |
HH_currents=True): |
| 118 |
restore('initial state') |
| 119 |
voltages = [] |
| 120 |
neuron.P_Ca = somatic_density |
| 121 |
neuron.dend.distal.P_Ca = dendritic_density * C_d |
| 122 |
# dendritic conductance (shunting conductance used for Fig 12C) |
| 123 |
neuron.gl = dendritic_conductance |
| 124 |
neuron.dend.gl = dendritic_conductance * C_d |
| 125 |
if not HH_currents: |
| 126 |
# Shut off spiking (for Figures 12B and 12C) |
| 127 |
neuron.g_Na = 0*msiemens/cm**2 |
| 128 |
neuron.g_K = 0*msiemens/cm**2 |
| 129 |
run(180*ms) |
| 130 |
store('before current') |
| 131 |
for current in currents: |
| 132 |
restore('before current') |
| 133 |
neuron.main.I_inj = current |
| 134 |
print('.', end='') |
| 135 |
run(320*ms) |
| 136 |
voltages.append(mon[morpho].v[:]) # somatic voltage |
| 137 |
return voltages |
| 138 |
|
| 139 |
|
| 140 |
## Run the various variants of the model to reproduce Figure 12 |
| 141 |
mpl.rcParams['lines.markersize'] = 3.0 |
| 142 |
fig, axes = plt.subplots(2, 2) |
| 143 |
print('Running experiments for Figure A1 ', end='') |
| 144 |
voltages = do_experiment([50, 75]*pA, somatic_density=1.7e-5*cm/second, |
| 145 |
dendritic_density=1.7e-5*cm/second) |
| 146 |
print(' done.') |
| 147 |
cut_off = 100*ms # Do not display first part of simulation |
| 148 |
axes[0, 0].plot((mon.t - cut_off) / ms, voltages[0] / mV, color='gray') |
| 149 |
axes[0, 0].plot((mon.t - cut_off) / ms, voltages[1] / mV, color='black') |
| 150 |
axes[0, 0].set(xlim=(0, 400), ylim=(-80, 40), xticks=[], |
| 151 |
title='A1: Uniform T-current density', ylabel='Voltage (mV)') |
| 152 |
axes[0, 0].spines['right'].set_visible(False) |
| 153 |
axes[0, 0].spines['top'].set_visible(False) |
| 154 |
axes[0, 0].spines['bottom'].set_visible(False) |
| 155 |
|
| 156 |
print('Running experiments for Figure A2 ', end='') |
| 157 |
voltages = do_experiment([50, 75]*pA, somatic_density=1.7e-5*cm/second, |
| 158 |
dendritic_density=9.5e-5*cm/second) |
| 159 |
print(' done.') |
| 160 |
cut_off = 100*ms # Do not display first part of simulation |
| 161 |
axes[1, 0].plot((mon.t - cut_off) / ms, voltages[0] / mV, color='gray') |
| 162 |
axes[1, 0].plot((mon.t - cut_off) / ms, voltages[1] / mV, color='black') |
| 163 |
axes[1, 0].set(xlim=(0, 400), ylim=(-80, 40), |
| 164 |
title='A2: High T-current density in dendrites', |
| 165 |
xlabel='Time (ms)', ylabel='Voltage (mV)') |
| 166 |
axes[1, 0].spines['right'].set_visible(False) |
| 167 |
axes[1, 0].spines['top'].set_visible(False) |
| 168 |
|
| 169 |
print('Running experiments for Figure B ', end='') |
| 170 |
currents = np.linspace(0, 200, 41)*pA |
| 171 |
voltages_somatic = do_experiment(currents, somatic_density=56.36e-5*cm/second, |
| 172 |
dendritic_density=0*cm/second, |
| 173 |
HH_currents=False) |
| 174 |
voltages_somatic_dendritic = do_experiment(currents, somatic_density=1.7e-5*cm/second, |
| 175 |
dendritic_density=9.5e-5*cm/second, |
| 176 |
HH_currents=False) |
| 177 |
print(' done.') |
| 178 |
maxima_somatic = Quantity(voltages_somatic).max(axis=1) |
| 179 |
maxima_somatic_dendritic = Quantity(voltages_somatic_dendritic).max(axis=1) |
| 180 |
axes[0, 1].yaxis.tick_right() |
| 181 |
axes[0, 1].plot(currents/pA, maxima_somatic/mV, |
| 182 |
'o-', color='black', label='Somatic only') |
| 183 |
axes[0, 1].plot(currents/pA, maxima_somatic_dendritic/mV, |
| 184 |
's-', color='black', label='Somatic & dendritic') |
| 185 |
axes[0, 1].set(xlabel='Injected current (pA)', ylabel='Peak LTS (mV)', |
| 186 |
ylim=(-80, 0)) |
| 187 |
axes[0, 1].legend(loc='best', frameon=False) |
| 188 |
|
| 189 |
print('Running experiments for Figure C ', end='') |
| 190 |
currents = np.linspace(200, 400, 41)*pA |
| 191 |
voltages_somatic = do_experiment(currents, somatic_density=56.36e-5*cm/second, |
| 192 |
dendritic_density=0*cm/second, |
| 193 |
dendritic_conductance=0.15*msiemens/cm**2, |
| 194 |
HH_currents=False) |
| 195 |
voltages_somatic_dendritic = do_experiment(currents, somatic_density=1.7e-5*cm/second, |
| 196 |
dendritic_density=9.5e-5*cm/second, |
| 197 |
dendritic_conductance=0.15*msiemens/cm**2, |
| 198 |
HH_currents=False) |
| 199 |
print(' done.') |
| 200 |
maxima_somatic = Quantity(voltages_somatic).max(axis=1) |
| 201 |
maxima_somatic_dendritic = Quantity(voltages_somatic_dendritic).max(axis=1) |
| 202 |
axes[1, 1].yaxis.tick_right() |
| 203 |
axes[1, 1].plot(currents/pA, maxima_somatic/mV, |
| 204 |
'o-', color='black', label='Somatic only') |
| 205 |
axes[1, 1].plot(currents/pA, maxima_somatic_dendritic/mV, |
| 206 |
's-', color='black', label='Somatic & dendritic') |
| 207 |
axes[1, 1].set(xlabel='Injected current (pA)', ylabel='Peak LTS (mV)', |
| 208 |
ylim=(-80, 0)) |
| 209 |
axes[1, 1].legend(loc='best', frameon=False) |
| 210 |
|
| 211 |
plt.tight_layout() |
| 212 |
plt.show() |