-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLEMS_Test_kslow.xml
237 lines (186 loc) · 14.7 KB
/
LEMS_Test_kslow.xml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<Lems>
<!-- Specify which component to run -->
<Target component="sim1"/>
<!-- Include core NeuroML2 ComponentType definitions -->
<Include file="Cells.xml"/>
<Include file="Networks.xml"/>
<Include file="Simulation.xml"/>
<Include file="kslow.channel.nml"/>
<!-- These may eventually be moved to core NeuroML definition files -->
<ComponentType name="vClampedCell" extends="baseCellMembPot" description="A 'cell' which can be clamped to a specific voltage for a certain duration to examine ion channel behaviour.">
<Parameter name="delay" dimension="time"/>
<Parameter name="duration" dimension="time"/>
<Parameter name="baseVoltage" dimension="voltage"/>
<Parameter name="targetVoltage" dimension="voltage"/>
<Parameter name="caConc" dimension="concentration"/>
<Children name="channelPopulation" type="channelPopulation"/>
<Dynamics>
<StateVariable name="v" exposure="v" dimension="voltage"/>
<OnStart>
<StateAssignment variable="v" value="baseVoltage"/>
</OnStart>
<OnCondition test="t .geq. delay .and. t .leq. duration+delay">
<StateAssignment variable="v" value="targetVoltage"/>
</OnCondition>
<OnCondition test="t .gt. duration+delay">
<StateAssignment variable="v" value="baseVoltage"/>
</OnCondition>
</Dynamics>
</ComponentType>
<ComponentType name="vClampedRampCell" extends="baseCellMembPot" description="A 'cell' which can be clamped to a steadily changing voltage for a certain duration to examine ion channel behaviour.">
<Parameter name="delay" dimension="time"/>
<Parameter name="duration" dimension="time"/>
<Parameter name="baseVoltage" dimension="voltage"/>
<Parameter name="targetVoltage0" dimension="voltage"/>
<Parameter name="targetVoltage1" dimension="voltage"/>
<Parameter name="caConc" dimension="concentration"/>
<Child name="channelPopulation" type="channelPopulation"/>
<Dynamics>
<StateVariable name="v" exposure="v" dimension="voltage"/>
<OnStart>
<StateAssignment variable="v" value="baseVoltage"/>
</OnStart>
<OnCondition test="t .geq. delay .and. t .leq. duration+delay">
<StateAssignment variable="v" value="targetVoltage0 + (targetVoltage1-targetVoltage0)*(t-delay)/(duration)"/>
</OnCondition>
<OnCondition test="t .gt. duration+delay">
<StateAssignment variable="v" value="baseVoltage"/>
</OnCondition>
</Dynamics>
</ComponentType>
<vClampedCell id="holderCell_min100" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="-100mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_min80" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="-80mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_min60" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="-60mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_min40" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="-40mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_min20" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="-20mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_0" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="0mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_20" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="20mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_40" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="40mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_60" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="60mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_80" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="80mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<vClampedCell id="holderCell_100" delay="10ms" duration="80ms" baseVoltage="-70mV" targetVoltage="100mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedCell>
<!-- Using twice duration & scaled up max_target_voltage to avoid problem at t = delay+duration -->
<vClampedRampCell id="rampCell0" delay="0ms" duration="200ms" baseVoltage="-100mV" targetVoltage0="-100mV" targetVoltage1="300mV" caConc="5e-05mM">
<channelPopulation id="test" ionChannel="kslow" number="1" erev="0mV"/>
</vClampedRampCell>
<network id="net1" type="networkWithTemperature" temperature = "37.0 degC">
<population id="holderCellPop_min100" component="holderCell_min100" size="1"/>
<population id="holderCellPop_min80" component="holderCell_min80" size="1"/>
<population id="holderCellPop_min60" component="holderCell_min60" size="1"/>
<population id="holderCellPop_min40" component="holderCell_min40" size="1"/>
<population id="holderCellPop_min20" component="holderCell_min20" size="1"/>
<population id="holderCellPop_0" component="holderCell_0" size="1"/>
<population id="holderCellPop_20" component="holderCell_20" size="1"/>
<population id="holderCellPop_40" component="holderCell_40" size="1"/>
<population id="holderCellPop_60" component="holderCell_60" size="1"/>
<population id="holderCellPop_80" component="holderCell_80" size="1"/>
<population id="holderCellPop_100" component="holderCell_100" size="1"/>
<population id="rampCellPop0" component="rampCell0" size="1"/>
</network>
<Simulation id="sim1" length="100ms" step="0.0025ms" target="net1">
<Display id="d0" title="kslow: Clamp voltages (mV)" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-120.0" ymax="120.0">
<Line id="-100mV" quantity="holderCellPop_min100[0]/v" scale="1mV" color="#ffff00" timeScale="1ms"/>
<Line id="-80mV" quantity="holderCellPop_min80[0]/v" scale="1mV" color="#ffe500" timeScale="1ms"/>
<Line id="-60mV" quantity="holderCellPop_min60[0]/v" scale="1mV" color="#ffcc00" timeScale="1ms"/>
<Line id="-40mV" quantity="holderCellPop_min40[0]/v" scale="1mV" color="#ffb200" timeScale="1ms"/>
<Line id="-20mV" quantity="holderCellPop_min20[0]/v" scale="1mV" color="#ff9900" timeScale="1ms"/>
<Line id="0mV" quantity="holderCellPop_0[0]/v" scale="1mV" color="#ff7f00" timeScale="1ms"/>
<Line id="20mV" quantity="holderCellPop_20[0]/v" scale="1mV" color="#ff6600" timeScale="1ms"/>
<Line id="40mV" quantity="holderCellPop_40[0]/v" scale="1mV" color="#ff4c00" timeScale="1ms"/>
<Line id="60mV" quantity="holderCellPop_60[0]/v" scale="1mV" color="#ff3300" timeScale="1ms"/>
<Line id="80mV" quantity="holderCellPop_80[0]/v" scale="1mV" color="#ff1900" timeScale="1ms"/>
<Line id="100mV" quantity="holderCellPop_100[0]/v" scale="1mV" color="#ff0000" timeScale="1ms"/>
</Display>
<Display id="d1" title="kslow: Fractional conductance at 37.0 degC" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-0.1" ymax="1.1">
<Line id="-100mV" quantity="holderCellPop_min100[0]/test/kslow/fopen" scale="1" color="#ffff00" timeScale="1ms"/>
<Line id="-80mV" quantity="holderCellPop_min80[0]/test/kslow/fopen" scale="1" color="#ffe500" timeScale="1ms"/>
<Line id="-60mV" quantity="holderCellPop_min60[0]/test/kslow/fopen" scale="1" color="#ffcc00" timeScale="1ms"/>
<Line id="-40mV" quantity="holderCellPop_min40[0]/test/kslow/fopen" scale="1" color="#ffb200" timeScale="1ms"/>
<Line id="-20mV" quantity="holderCellPop_min20[0]/test/kslow/fopen" scale="1" color="#ff9900" timeScale="1ms"/>
<Line id="0mV" quantity="holderCellPop_0[0]/test/kslow/fopen" scale="1" color="#ff7f00" timeScale="1ms"/>
<Line id="20mV" quantity="holderCellPop_20[0]/test/kslow/fopen" scale="1" color="#ff6600" timeScale="1ms"/>
<Line id="40mV" quantity="holderCellPop_40[0]/test/kslow/fopen" scale="1" color="#ff4c00" timeScale="1ms"/>
<Line id="60mV" quantity="holderCellPop_60[0]/test/kslow/fopen" scale="1" color="#ff3300" timeScale="1ms"/>
<Line id="80mV" quantity="holderCellPop_80[0]/test/kslow/fopen" scale="1" color="#ff1900" timeScale="1ms"/>
<Line id="100mV" quantity="holderCellPop_100[0]/test/kslow/fopen" scale="1" color="#ff0000" timeScale="1ms"/>
</Display>
<Display id="d7" title="kslow: Currents (nA) at different clamped potentials; 37.0 degC; rev potential: 0 mV" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-0.002" ymax="0.0014">
<Line id="-100mV" quantity="holderCellPop_min100[0]/test/i" scale="1nA" color="#ffff00" timeScale="1ms"/>
<Line id="-80mV" quantity="holderCellPop_min80[0]/test/i" scale="1nA" color="#ffe500" timeScale="1ms"/>
<Line id="-60mV" quantity="holderCellPop_min60[0]/test/i" scale="1nA" color="#ffcc00" timeScale="1ms"/>
<Line id="-40mV" quantity="holderCellPop_min40[0]/test/i" scale="1nA" color="#ffb200" timeScale="1ms"/>
<Line id="-20mV" quantity="holderCellPop_min20[0]/test/i" scale="1nA" color="#ff9900" timeScale="1ms"/>
<Line id="0mV" quantity="holderCellPop_0[0]/test/i" scale="1nA" color="#ff7f00" timeScale="1ms"/>
<Line id="20mV" quantity="holderCellPop_20[0]/test/i" scale="1nA" color="#ff6600" timeScale="1ms"/>
<Line id="40mV" quantity="holderCellPop_40[0]/test/i" scale="1nA" color="#ff4c00" timeScale="1ms"/>
<Line id="60mV" quantity="holderCellPop_60[0]/test/i" scale="1nA" color="#ff3300" timeScale="1ms"/>
<Line id="80mV" quantity="holderCellPop_80[0]/test/i" scale="1nA" color="#ff1900" timeScale="1ms"/>
<Line id="100mV" quantity="holderCellPop_100[0]/test/i" scale="1nA" color="#ff0000" timeScale="1ms"/>
</Display>
<Display id="a_inf" title="kslow: Gate: a, b steady state plots at 37.0 degC" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-0.1" ymax="1.1">
<Line id="a_inf (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/a/inf" scale="1" color="#0000FF" timeScale="1ms"/>
<Line id="bb_inf (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb/inf" scale="1" color="#FF0000" timeScale="1ms"/>
<Line id="bb1_inf (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb1/inf" scale="1" color="#00FF00" timeScale="1ms"/>
</Display>
<Display id="a_tau" title="kslow: Gate: a,b time courses at 37.0 degC" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-10" ymax="110">
<Line id="a_tau (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/a/tau" scale="1ms" color="#0000FF" timeScale="1ms"/>
<Line id="bb_tau (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb/tau" scale="1ms" color="#FF0000" timeScale="1ms"/>
<Line id="bb1_tau (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb1/tau" scale="1ms" color="#00FF00" timeScale="1ms"/>
</Display>
<!-- <Display id="bb_inf" title="kslow: Gate b steady state, bb_inf" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-0.1" ymax="1.1">
<Line id="bb_inf (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb/inf" scale="1" color="#000000" timeScale="1ms"/>
</Display> -->
<!-- <Display id="bb_tau" title="kslow: Gate b time course, bb_tau (ms) at 37.0 degC" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-10" ymax="110">
<Line id="bb_tau (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb/tau" scale="1ms" color="#000000" timeScale="1ms"/>
</Display>
<Display id="bb1_inf" title="kslow: Gate b steady state, bb1_inf" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-0.1" ymax="1.1">
<Line id="bb1_inf (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb1/inf" scale="1" color="#000000" timeScale="1ms"/>
</Display>
<Display id="bb1_tau" title="kslow: Gate b time course, bb1_tau (ms) at 37.0 degC" timeScale="1ms" xmin="-10.0" xmax="110.00000000000001" ymin="-10" ymax="110">
<Line id="bb1_tau (x axis: -100mV to 100mV)" quantity="rampCellPop0[0]/test/kslow/b/bb1/tau" scale="1ms" color="#000000" timeScale="1ms"/>
</Display> -->
<OutputFile id="a_inf_of1" fileName="kslow.a.inf.lems.dat">
<OutputColumn id="a" quantity="rampCellPop0[0]/test/kslow/a/inf"/>
</OutputFile>
<OutputFile id="a_tau_of1" fileName="kslow.a.tau.lems.dat">
<OutputColumn id="a" quantity="rampCellPop0[0]/test/kslow/a/tau"/>
</OutputFile>
<OutputFile id="b_inf_of1" fileName="kslow.b.inf.lems.dat">
<OutputColumn id="b" quantity="rampCellPop0[0]/test/kslow/b/bb/inf"/>
</OutputFile>
<OutputFile id="b_tau_of1" fileName="kslow.b.tau.lems.dat">
<OutputColumn id="b" quantity="rampCellPop0[0]/test/kslow/b/bb/tau"/>
</OutputFile>
<OutputFile id="b1_inf_of1" fileName="kslow.b1.inf.lems.dat">
<OutputColumn id="b1" quantity="rampCellPop0[0]/test/kslow/b/bb1/inf"/>
</OutputFile>
<OutputFile id="b1_tau_of1" fileName="kslow.b1.tau.lems.dat">
<OutputColumn id="b1" quantity="rampCellPop0[0]/test/kslow/b/bb1/tau"/>
</OutputFile>
<OutputFile id="rampCellV" fileName="kslow.rampV.lems.dat">
<OutputColumn id="v" quantity="rampCellPop0[0]/v"/>
</OutputFile>
</Simulation>
</Lems>