-
Notifications
You must be signed in to change notification settings - Fork 2
/
kinetics.hoc
145 lines (130 loc) · 2.49 KB
/
kinetics.hoc
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
create a
a {nseg=1 diam=20 L=20
insert hcno eh_hcno=-38
insert pas g_pas=1/10000 Ra=150 cm=1}
access a
tstop=100
vlow=-120
vhigh=30
dt=0.1
celsius=33
frac=0
color=1
objref gk, b,gt,vc, gs,c, gf,ic
b = new VBox()
c = new VBox()
b.intercept(1)
gk = new Graph(0)
gk.view(vlow,0,vhigh-vlow,1,0,0,100,200)
gk.exec_menu("New Axis")
gk.exec_menu("10% Zoom out")
gk.label(0.1,0.9,"Fig.6B: steady-state")
gk.addexpr("hinf_hcno",1,2, 2*tstop,0,2)
gt = new Graph(0)
gt.view(vlow,0,vhigh-vlow,200,0,0,100,200)
gt.exec_menu("New Axis")
gt.exec_menu("10% Zoom out")
gt.label(0.1,0.9,"time constants: figs.5B, 5D")
gt.addexpr("tau1_hcno",2,2, 2*tstop,0,2)
gt.addexpr("tau2_hcno",3,2, 2*tstop,0,2)
gs = new Graph(0)
gs.view(0,-100,100,40,0,0,100,200)
gs.exec_menu("New Axis")
gs.exec_menu("10% Zoom out")
gs.label(0.1,0.9,"-1.3nA current injection")
gs.exec_menu("Keep Lines")
xpanel("")
xbutton("run ", "run()")
xvalue("frac","frac",1)
xvalue("color","color",1)
xpanel()
b.intercept(0)
b.map("kinetics from Bal and Oertel (2000)",100,0,200,600)
c.intercept(1)
gf = new Graph(0)
gf.view(0,-15,1200,16.5,0,0,100,100)
gf.exec_menu("New Axis")
gf.exec_menu("10% Zoom out")
gf.label(0.4,0.95,"current (nA): Fig.6A ")
gf.label(0.3,0.08,"-115mV ")
gf.label(0.3,0.85,"-25mV ")
gf.exec_menu("Keep Lines")
c.intercept(0)
c.map("activation and deactivation",390,0,500,370)
vc = new SEClamp(0.5)
ic= new IClamp(0.5)
proc run() {
gk.begin()
for (v=vlow; v<vhigh; v=v+1) {
trates_hcno(v)
gk.plot(v)
}
gk.flush()
doNotify()
gt.begin()
gt.color(2)
gt.label(0.3,0.2,"fast act.")
gt.color(3)
gt.label(0.5,0.55,"deact.")
gt.color(4)
gt.label(0.4,0.7,"slow act.")
gt.mark(-77,44,"+",12,2,2)
gt.mark(-107,16,"+",12,2,2)
gt.mark(-77,181,"+",12,4,2)
gt.mark(-107,84,"+",12,4,2)
gt.mark(-62,126,"+",12,3,2)
gt.mark(-87,168,"+",12,3,2)
for (v=vlow; v<vhigh; v=v+1) {
trates_hcno(v)
gt.plot(v)
}
gt.flush()
doNotify()
gbar_hcno=0.0005
frac_hcno=frac
gs.addexpr("a.v(0.5)",color,1, 2*tstop,0,2)
gf.addexpr("i_hcno*area(0.5)*1e-2",color,1, 2*tstop,0,2) // *10=pA, *1e-2=nA
gs.begin()
ic.del=2
ic.dur=tstop
ic.amp=-0.13
tstop=100
v=-62
finitialize(v)
fcurrent()
e_pas=v+(i_hcno)/g_pas
t=0
while (t<tstop) {
fadvance()
gs.plot(t)
}
gs.flush()
doNotify()
ic.amp=0
gbar_hcno=0.018
tstop=1000
k=-25
while (k>=-115) {
t=0
vc.amp1=-62
vc.dur1=2
vc.amp2=k
vc.dur2=700
vc.amp3=-77
vc.dur3=800
forall {finitialize(-62)}
fcurrent()
while (t<tstop) {
fadvance()
gf.plot(t)
}
gf.flush()
doNotify()
k=k-5
gf.begin()
}
vc.dur1=0
vc.dur2=0
vc.dur3=0
}