-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgranule.tem
103 lines (94 loc) · 2.42 KB
/
granule.tem
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
95
96
97
98
99
100
101
102
103
// granule.tem
// Template for three-compartment granule cell model
// Andrew Davison, The Babraham Institute, 2000
begintemplate Gran
public soma, periph, deep, AMPAr, NMDAr, spiketimes, spikecount
create soma, periph, deep, s2d, s2p
objref AMPAr, NMDAr, spiketimes, spikecount
proc init() { local Len, Erest, RM, p, q, Atotal, gsp, gsd, AMPAtau, NMDAalpha, NMDAbeta, Erev, rsd, rsp
create soma, periph, deep, s2d, s2p
spiketimes = new Vector()
lastspikecount = 0
Erest = -65 // mV
Atotal = 8353 // um2
gsp = 3.08e-10 // S/cm2
gsd = 4.34e-10
RM = 120000 // ohm.cm2
Len = 50
p = 0.0136
q = 0.308
rsd = 1/(gsd*Atotal)
rsp = 1/(gsp*Atotal)
NMDAalpha = 0.0163 // ms-1
NMDAbeta = 0.00292 // ms-1
AMPAtau = 5.5 // ms
Erev = 0 // mV
soma {
L = Len
diam = p*Atotal/(PI*Len)
Ra = PI/(4*Len*Atotal)
insert pas
e_pas = Erest // reversal potential mV
g_pas = 1/RM // membrane conductance S/cm2
insert nagrantab
insert kslowtab
insert kM
insert kA
gnabar_nagrantab = 0.1611 // S/cm2
gkbar_kslowtab = 0.1313
gkbar_kM = 0.1334
gkbar_kA = 0.0088
}
periph {
L = Len
diam = q*Atotal/(PI*Len)
Ra = PI/(4*Len*Atotal)
insert pas
e_pas = Erest
g_pas = 1/RM
insert nagrantab
insert kslowtab
gnabar_nagrantab = 0.1355
gkbar_kslowtab = 0.0243
AMPAr = new ExpSyn(0.5)
AMPAr.tau = AMPAtau
AMPAr.e = Erev
NMDAr = new NMDA(0.5)
NMDAr.Alpha = NMDAalpha
NMDAr.Beta = NMDAbeta
NMDAr.e = Erev
spikecount = new APCount(0.5)
spikecount.thresh = -30
spikecount.record(spiketimes)
}
deep {
L = Len
diam = (1-p-q)*Atotal/(PI*Len)
Ra = PI/(4*Len*Atotal)
insert pas
e_pas = Erest
g_pas = 1/RM
}
s2d {
diam = 1
Ra = PI*diam*diam/(4*Len*Atotal) * ( 1/gsd )
L = 1
}
s2p {
diam = 1
Ra = PI*diam*diam/(4*Len*Atotal) * ( 1/gsp )
L = 1
}
soma connect s2p(0), 0
s2p connect periph(0), 1
soma connect s2d(0), 1
s2d connect deep(0), 1
// set reversal potentials, etc.
forall if (ismembrane("na_ion")) {
ena = 45 // mV
}
forall if (ismembrane("k_ion")) {
ek = -70 // mV
}
}
endtemplate Gran