-
Notifications
You must be signed in to change notification settings - Fork 2
/
newcachan.mod
95 lines (76 loc) · 2.03 KB
/
newcachan.mod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
TITLE calcium channels (L, N, and T types)
UNITS {
(molar) = (1/liter)
(S) = (siemens)
(mA) = (milliamp)
(mV) = (millivolt)
(mM) = (millimolar)
F = (faraday) (coulomb)
R = (mole k) (mV-coulomb/degC)
}
NEURON {
SUFFIX cachan
USEION ca READ cai WRITE ica
RANGE gcalbar,gcanbar,gcahvabar,ica,ical,icahva,ican,kml,kmn
GLOBAL dlinf,dhvainf,fhvainf
}
INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms)}
PARAMETER {
v (mV)
dt (ms)
cai (mM)
celsius = 35.0 (degC)
gcahvabar = 0.0e-6 (S/cm2)
gcalbar = 11.196e-6 (S/cm2)
kmn = 0.0001 (mM)
kml = 0.00045 (mM)
eca = 120 (mV)
cao = 2.0 (mM)
}
STATE {
dhva dl fhva
}
ASSIGNED {
ica (mA/cm2)
ical (mA/cm2)
ican (mA/cm2)
icahva (mA/cm2)
dlinf dhvainf fhvainf
}
BREAKPOINT {
SOLVE states METHOD cnexp
ical = gcalbar*dl*(v - eca)
icahva = gcahvabar*dhva*fhva*(v - eca)
ica = ical + icahva
}
UNITSOFF
INITIAL {
dl = boltz(v,-45.0,5.0)
dhva = boltz(v,-10.0,10.0)
fhva = boltz(v,-48.0,-5.0)
}
DERIVATIVE states { :Computes state variables m, h, and n
LOCAL dlinf,dhvainf,fhvainf,dltau,dhvatau,fhvatau
dlinf = boltz(v,-45.0,5.0)
dhvainf = boltz(v,-10.0,10.0)
fhvainf = boltz(v,-48.0,-5.0)
dltau = gaussian(v,18.0,25.0,70.0,0.30)
dhvatau = gaussian(v,0.1,13.0,62.0,0.05)
fhvatau = gaussian(v,0.5,18.0,55.6,0.5)
dl' = (dlinf-dl)/dltau
dhva' = (dhvainf-dhva)/dhvatau
fhva' = (fhvainf-fhva)/fhvatau
}
FUNCTION gaussian(v,a,b,c,d) {
LOCAL arg
arg= a*exp(-(c+v)*(v+c)/(b*b)) +d
gaussian = arg
}
FUNCTION boltz(x,y,z) {
LOCAL arg
arg= -(x-y)/z
if (arg > 50) {boltz = 0}
else {if (arg < -50) {boltz = 1}
else {boltz = 1.0/(1.0 + exp(arg))}}
}
UNITSON