| 1 |
# coding=utf-8 |
| 2 |
""" |
| 3 |
Modeling neuron-glia interactions with the Brian 2 simulator |
| 4 |
Marcel Stimberg, Dan F. M. Goodman, Romain Brette, Maurizio De Pittà |
| 5 |
bioRxiv 198366; doi: https://doi.org/10.1101/198366 |
| 6 |
|
| 7 |
Figure 5: Astrocytes connected in a network. |
| 8 |
|
| 9 |
Intercellular calcium wave propagation in a ring of 50 astrocytes connected by |
| 10 |
bidirectional gap junctions (see Goldberg et al., 2010) |
| 11 |
""" |
| 12 |
from brian2 import * |
| 13 |
|
| 14 |
import plot_utils as pu |
| 15 |
|
| 16 |
set_device('cpp_standalone', directory=None) # Use fast "C++ standalone mode" |
| 17 |
|
| 18 |
################################################################################ |
| 19 |
# Model parameters |
| 20 |
################################################################################ |
| 21 |
### General parameters |
| 22 |
duration = 4000*second # Total simulation time |
| 23 |
sim_dt = 50*ms # Integrator/sampling step |
| 24 |
|
| 25 |
### Astrocyte parameters |
| 26 |
# --- Calcium fluxes |
| 27 |
O_P = 0.9*umolar/second # Maximal Ca^2+ uptake rate by SERCAs |
| 28 |
K_P = 0.05 * umolar # Ca2+ affinity of SERCAs |
| 29 |
C_T = 2*umolar # Total cell free Ca^2+ content |
| 30 |
rho_A = 0.18 # ER-to-cytoplasm volume ratio |
| 31 |
Omega_C = 6/second # Maximal rate of Ca^2+ release by IP_3Rs |
| 32 |
Omega_L = 0.1/second # Maximal rate of Ca^2+ leak from the ER |
| 33 |
# --- IP_3R kinectics |
| 34 |
d_1 = 0.13*umolar # IP_3 binding affinity |
| 35 |
d_2 = 1.05*umolar # Ca^2+ inactivation dissociation constant |
| 36 |
O_2 = 0.2/umolar/second # IP_3R binding rate for Ca^2+ inhibition |
| 37 |
d_3 = 0.9434*umolar # IP_3 dissociation constant |
| 38 |
d_5 = 0.08*umolar # Ca^2+ activation dissociation constant |
| 39 |
# --- IP_3 production |
| 40 |
O_delta = 0.6*umolar/second # Maximal rate of IP_3 production by PLCdelta |
| 41 |
kappa_delta = 1.5* umolar # Inhibition constant of PLC_delta by IP_3 |
| 42 |
K_delta = 0.1*umolar # Ca^2+ affinity of PLCdelta |
| 43 |
# --- IP_3 degradation |
| 44 |
Omega_5P = 0.05/second # Maximal rate of IP_3 degradation by IP-5P |
| 45 |
K_D = 0.7*umolar # Ca^2+ affinity of IP3-3K |
| 46 |
K_3K = 1.0*umolar # IP_3 affinity of IP_3-3K |
| 47 |
O_3K = 4.5*umolar/second # Maximal rate of IP_3 degradation by IP_3-3K |
| 48 |
# --- IP_3 diffusion |
| 49 |
F_ex = 0.09*umolar/second # Maximal exogenous IP3 flow |
| 50 |
F = 0.09*umolar/second # GJC IP_3 permeability |
| 51 |
I_Theta = 0.3*umolar # Threshold gradient for IP_3 diffusion |
| 52 |
omega_I = 0.05*umolar # Scaling factor of diffusion |
| 53 |
|
| 54 |
################################################################################ |
| 55 |
# Model definition |
| 56 |
################################################################################ |
| 57 |
defaultclock.dt = sim_dt # Set the integration time |
| 58 |
|
| 59 |
### Astrocytes |
| 60 |
astro_eqs = ''' |
| 61 |
dI/dt = J_delta - J_3K - J_5P + J_ex + J_coupling : mmolar |
| 62 |
J_delta = O_delta/(1 + I/kappa_delta) * C**2/(C**2 + K_delta**2) : mmolar/second |
| 63 |
J_3K = O_3K * C**4/(C**4 + K_D**4) * I/(I + K_3K) : mmolar/second |
| 64 |
J_5P = Omega_5P*I : mmolar/second |
| 65 |
# Exogenous stimulation (rectangular wave with period of 50s and duty factor 0.4) |
| 66 |
stimulus = int((t % (50*second))<20*second) : 1 |
| 67 |
delta_I_bias = I - I_bias*stimulus : mmolar |
| 68 |
J_ex = -F_ex/2*(1 + tanh((abs(delta_I_bias) - I_Theta)/omega_I)) * |
| 69 |
sign(delta_I_bias) : mmolar/second |
| 70 |
# Diffusion between astrocytes |
| 71 |
J_coupling : mmolar/second |
| 72 |
|
| 73 |
# Ca^2+-induced Ca^2+ release: |
| 74 |
dC/dt = J_r + J_l - J_p : mmolar |
| 75 |
dh/dt = (h_inf - h)/tau_h : 1 |
| 76 |
J_r = (Omega_C * m_inf**3 * h**3) * (C_T - (1 + rho_A)*C) : mmolar/second |
| 77 |
J_l = Omega_L * (C_T - (1 + rho_A)*C) : mmolar/second |
| 78 |
J_p = O_P * C**2/(C**2 + K_P**2) : mmolar/second |
| 79 |
m_inf = I/(I + d_1) * C/(C + d_5) : 1 |
| 80 |
h_inf = Q_2/(Q_2 + C) : 1 |
| 81 |
tau_h = 1/(O_2 * (Q_2 + C)) : second |
| 82 |
Q_2 = d_2 * (I + d_1)/(I + d_3) : mmolar |
| 83 |
|
| 84 |
# External IP_3 drive |
| 85 |
I_bias : mmolar (constant) |
| 86 |
''' |
| 87 |
|
| 88 |
N_astro = 50 # Total number of astrocytes in the network |
| 89 |
astrocytes = NeuronGroup(N_astro, astro_eqs, method='rk4') |
| 90 |
# Asymmetric stimulation on the 50th cell to get some nice chaotic patterns |
| 91 |
astrocytes.I_bias[N_astro//2] = 1.0*umolar |
| 92 |
astrocytes.h = 0.9 |
| 93 |
# Diffusion between astrocytes |
| 94 |
astro_to_astro_eqs = ''' |
| 95 |
delta_I = I_post - I_pre : mmolar |
| 96 |
J_coupling_post = -F/2 * (1 + tanh((abs(delta_I) - I_Theta)/omega_I)) * |
| 97 |
sign(delta_I) : mmolar/second (summed) |
| 98 |
''' |
| 99 |
astro_to_astro = Synapses(astrocytes, astrocytes, |
| 100 |
model=astro_to_astro_eqs) |
| 101 |
# Couple neighboring astrocytes: two connections per astrocyte pair, as |
| 102 |
# the above formulation will only update the I_coupling term of one of the |
| 103 |
# astrocytes |
| 104 |
astro_to_astro.connect('j == (i + 1) % N_pre or ' |
| 105 |
'j == (i + N_pre - 1) % N_pre') |
| 106 |
|
| 107 |
################################################################################ |
| 108 |
# Monitors |
| 109 |
################################################################################ |
| 110 |
astro_mon = StateMonitor(astrocytes, variables=['C'], record=True) |
| 111 |
|
| 112 |
################################################################################ |
| 113 |
# Simulation run |
| 114 |
################################################################################ |
| 115 |
run(duration, report='text') |
| 116 |
|
| 117 |
################################################################################ |
| 118 |
# Analysis and plotting |
| 119 |
################################################################################ |
| 120 |
plt.style.use('figures.mplstyle') |
| 121 |
|
| 122 |
fig, ax = plt.subplots(nrows=1, ncols=1, figsize=(6.26894, 6.26894 * 0.66), |
| 123 |
gridspec_kw={'left': 0.1, 'bottom': 0.12}) |
| 124 |
scaling = 1.2 |
| 125 |
step = 10 |
| 126 |
ax.plot(astro_mon.t/second, |
| 127 |
(astro_mon.C[0:N_astro//2-1].T/astro_mon.C.max() + |
| 128 |
np.arange(N_astro//2-1)*scaling), color='black') |
| 129 |
ax.plot(astro_mon.t/second, (astro_mon.C[N_astro//2:].T/astro_mon.C.max() + |
| 130 |
np.arange(N_astro//2, N_astro)*scaling), |
| 131 |
color='black') |
| 132 |
ax.plot(astro_mon.t/second, (astro_mon.C[N_astro//2-1].T/astro_mon.C.max() + |
| 133 |
np.arange(N_astro//2-1, N_astro//2)*scaling), |
| 134 |
color='C0') |
| 135 |
ax.set(xlim=(0., duration/second), ylim=(0, (N_astro+1.5)*scaling), |
| 136 |
xticks=np.arange(0., duration/second, 500), xlabel='time (s)', |
| 137 |
yticks=np.arange(0.5*scaling, (N_astro + 1.5)*scaling, step*scaling), |
| 138 |
yticklabels=[str(yt) for yt in np.arange(0, N_astro + 1, step)], |
| 139 |
ylabel='$C/C_{max}$ (cell index)') |
| 140 |
pu.adjust_spines(ax, ['left', 'bottom']) |
| 141 |
|
| 142 |
pu.adjust_ylabels([ax], x_offset=-0.08) |
| 143 |
|
| 144 |
plt.show() |