-
Notifications
You must be signed in to change notification settings - Fork 1
/
Channels.xml
610 lines (428 loc) · 27.1 KB
/
Channels.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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
<Lems xmlns="http://www.neuroml.org/lems/0.7.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.neuroml.org/lems/0.7.1 ../../LEMS/Schemas/LEMS/LEMS_v0.7.1.xsd"
description="Defines voltage (and concentration) gated ion channel models. Ion channels will generally extend _baseIonChannel_. The most commonly used voltage dependent gate will extend _baseGate_.">
<!-- A number of channel types for use in NeuroML 2 documents -->
<!-- Including standard unit comp types & units for NeuroML v2.0 -->
<Include file="NeuroMLCoreCompTypes.xml"/>
<ComponentType name="baseVoltageDepRate"
description="Base ComponentType for voltage dependent rate. Produces a time varying rate _r which depends on _v.">
<Exposure name="r" dimension="per_time"/>
<Requirement name="v" dimension="voltage"/>
</ComponentType>
<ComponentType name="baseVoltageConcDepRate"
description="Base ComponentType for voltage and concentration dependent rate. Produces a time varying rate _r which depends on _v and _caConc."
extends="baseVoltageDepRate">
<Requirement name="caConc" dimension="concentration"/>
</ComponentType>
<ComponentType name="baseHHRate"
description="Base ComponentType for rate which follow one of the typical forms for rate equations in the standard HH formalism, using the parameters _rate, _midpoint and _scale"
extends="baseVoltageDepRate">
<Parameter name="rate" dimension="per_time"/>
<Parameter name="midpoint" dimension="voltage"/>
<Parameter name="scale" dimension="voltage"/>
</ComponentType>
<ComponentType name="HHExpRate"
extends="baseHHRate"
description="Exponential form for rate equation (Q: Should these be renamed hhExpRate, etc?)">
<Dynamics>
<DerivedVariable name="r" exposure="r" value="rate * exp((v - midpoint)/scale)" dimension="per_time"/>
</Dynamics>
</ComponentType>
<ComponentType name="HHSigmoidRate"
extends="baseHHRate"
description="Sigmoidal form for rate equation">
<Dynamics>
<DerivedVariable name="r" exposure="r" value="rate / (1 + exp(0 - (v - midpoint)/scale))" dimension="per_time"/>
</Dynamics>
</ComponentType>
<ComponentType name="HHExpLinearRate"
extends="baseHHRate"
description="Exponential linear form for rate equation. Linear for large positive _v, exponentially decays for large negative _v.">
<Dynamics>
<DerivedVariable name="x" value="(v - midpoint) / scale" dimension="none"/>
<ConditionalDerivedVariable name="r" exposure="r" dimension="per_time">
<Case condition="x .neq. 0" value="rate * x / (1 - exp(0 - x))"/>
<Case condition="x .eq. 0" value="rate"/>
</ConditionalDerivedVariable>
</Dynamics>
</ComponentType>
<ComponentType name="baseVoltageDepVariable"
description="Base ComponentType for voltage dependent variable _x, which depends on _v. Can be used for inf/steady state of rate variable.">
<Exposure name="x" dimension="none"/>
<Requirement name="v" dimension="voltage"/>
</ComponentType>
<ComponentType name="baseVoltageConcDepVariable"
description="Base ComponentType for voltage and calcium concentration dependent variable _x, which depends on _v and _caConc."
extends="baseVoltageDepVariable">
<Requirement name="caConc" dimension="concentration"/>
</ComponentType>
<ComponentType name="baseHHVariable"
description="Base ComponentType for voltage dependent dimensionless variable which follow one of the typical forms for variable equations in the standard HH formalism, using the parameters _rate, _midpoint, _scale"
extends="baseVoltageDepVariable">
<Parameter name="rate" dimension="none"/>
<Parameter name="midpoint" dimension="voltage"/>
<Parameter name="scale" dimension="voltage"/>
</ComponentType>
<ComponentType name="HHExpVariable"
extends="baseHHVariable"
description="Exponential form for variable equation">
<Dynamics>
<DerivedVariable name="x" dimension="none" exposure="x" value="rate * exp((v - midpoint)/scale)"/>
</Dynamics>
</ComponentType>
<ComponentType name="HHSigmoidVariable"
extends="baseHHVariable"
description="Sigmoidal form for variable equation">
<Dynamics>
<DerivedVariable name="x" dimension="none" exposure="x" value="rate / (1 + exp(0 - (v - midpoint)/scale))"/>
</Dynamics>
</ComponentType>
<ComponentType name="HHExpLinearVariable"
extends="baseHHVariable"
description="Exponential linear form for variable equation. Linear for large positive _v, exponentially decays for large negative _v.">
<Dynamics>
<DerivedVariable name="a" dimension="none" value="(v - midpoint) / scale"/>
<DerivedVariable name="x" dimension="none" exposure="x" value="rate * a / (1 - exp(0 - a))"/>
</Dynamics>
</ComponentType>
<ComponentType name="baseVoltageDepTime"
description="Base ComponentType for voltage dependent ComponentType producing value _t with dimension time (e.g. for time course of rate variable). Note: time course would not normally be fit to exp/sigmoid etc.">
<Exposure name="t" dimension="time"/>
<Requirement name="v" dimension="voltage"/>
</ComponentType>
<ComponentType name="baseVoltageConcDepTime"
description="Base type for voltage and calcium concentration dependent ComponentType producing value _t with dimension time (e.g. for time course of rate variable)."
extends="baseVoltageDepTime">
<Requirement name="caConc" dimension="concentration"/>
</ComponentType>
<ComponentType name="fixedTimeCourse"
extends="baseVoltageDepTime"
description="Time course of a fixed magnitude _tau which can be used for the time course in _gateHH_">
<Parameter name="tau" dimension="time"/>
<Dynamics>
<DerivedVariable name="t" dimension="time" exposure="t" value="tau"/>
</Dynamics>
</ComponentType>
<ComponentType name="baseQ10Settings"
description="Base ComponentType for a scaling to apply to gating variable time course, usually temperature dependent">
<Exposure name="q10" dimension="none"/>
<Requirement name="temperature" dimension="temperature"/>
</ComponentType>
<ComponentType name="q10Fixed"
extends="baseQ10Settings"
description="A fixed value, _fixedQ10, for the scaling of the time course of the gating variable">
<Parameter name="fixedQ10" dimension="none"/>
<Dynamics>
<DerivedVariable name="q10" exposure="q10" dimension="none" value="fixedQ10"/>
</Dynamics>
</ComponentType>
<ComponentType name="q10ExpTemp"
extends="baseQ10Settings"
description="A value for the Q10 scaling which varies as a standard function of the difference between the current temperature, _temperature, and the temperature at which the gating variable equations were determined, _experimentalTemp">
<Parameter name="q10Factor" dimension="none"/>
<Parameter name="experimentalTemp" dimension="temperature"/>
<Constant name="TENDEGREES" dimension="temperature" value="10K"/>
<Dynamics>
<!-- TODO: make sure correct dimensions in exponent, even though LEMS doesn't seem to mind...-->
<DerivedVariable name="q10" exposure="q10" dimension="none" value="q10Factor^((temperature - experimentalTemp)/TENDEGREES)"/>
</Dynamics>
</ComponentType>
<ComponentType name="baseConductanceScaling"
description="Base ComponentType for a scaling to apply to a gate's conductance, e.g. temperature dependent scaling">
<Exposure name="factor" dimension="none"/>
<Requirement name="temperature" dimension="temperature"/>
</ComponentType>
<ComponentType name="q10ConductanceScaling"
extends="baseConductanceScaling"
description="A value for the conductance scaling which varies as a standard function of the difference between the current temperature, _temperature, and the temperature at which the conductance was originally determined, _experimentalTemp">
<Parameter name="q10Factor" dimension="none"/>
<Parameter name="experimentalTemp" dimension="temperature"/>
<Dynamics>
<DerivedVariable name="factor" exposure="factor" dimension="none" value="q10Factor^((temperature - experimentalTemp)/10)"/>
</Dynamics>
</ComponentType>
<ComponentType name="baseGate"
description="Base ComponentType for a voltage and/or concentration dependent gate">
<Parameter name="instances" dimension="none"/>
<Exposure name="fcond" dimension="none"/>
<Exposure name="q" dimension="none"/>
</ComponentType>
<ComponentType name="gateHHrates"
extends="baseGate"
description="Gate which follows the general Hodgkin Huxley formalism">
<Child name="notes" type="notes"/>
<Child name="q10Settings" type="baseQ10Settings"/>
<Child name="forwardRate" type="baseVoltageDepRate"/>
<Child name="reverseRate" type="baseVoltageDepRate"/>
<Exposure name="alpha" dimension="per_time"/>
<Exposure name="beta" dimension="per_time"/>
<Exposure name="tau" dimension="time"/>
<Exposure name="inf" dimension="none"/>
<Exposure name="rateScale" dimension="none"/>
<Dynamics>
<StateVariable name="q" exposure="q" dimension="none"/>
<DerivedVariable name="rateScale" exposure="rateScale" dimension="none" select="q10Settings/q10" reduce="multiply" required="false"/>
<DerivedVariable name="alpha" dimension="per_time" exposure="alpha" select="forwardRate/r"/>
<DerivedVariable name="beta" dimension="per_time" exposure="beta" select="reverseRate/r"/>
<DerivedVariable name="fcond" exposure="fcond" dimension="none" value="q^instances"/>
<DerivedVariable name="inf" dimension="none" exposure="inf" value="alpha/(alpha+beta)"/>
<DerivedVariable name="tau" dimension="time" exposure="tau" value="1/((alpha+beta) * rateScale)"/>
<TimeDerivative variable="q" value="(inf - q) / tau"/>
<OnStart>
<StateAssignment variable="q" value="inf"/>
</OnStart>
</Dynamics>
</ComponentType>
<ComponentType name="gateHHtauInf"
extends="baseGate"
description="Gate which follows the general Hodgkin Huxley formalism">
<Child name="notes" type="notes"/>
<Child name="q10Settings" type="baseQ10Settings"/>
<Child name="timeCourse" type="baseVoltageDepTime" />
<Child name="steadyState" type="baseVoltageDepVariable" />
<Exposure name="tau" dimension="time"/>
<Exposure name="inf" dimension="none"/>
<Exposure name="rateScale" dimension="none"/>
<Dynamics>
<StateVariable name="q" exposure="q" dimension="none"/>
<DerivedVariable name="rateScale" exposure="rateScale" dimension="none" select="q10Settings/q10" reduce="multiply" required="false"/>
<DerivedVariable name="fcond" exposure="fcond" dimension="none" value="q^instances"/>
<DerivedVariable name="inf" dimension="none" exposure="inf" select="steadyState/x"/>
<DerivedVariable name="tauUnscaled" dimension="time" select="timeCourse/t"/>
<DerivedVariable name="tau" dimension="time" exposure="tau" value="tauUnscaled / rateScale"/>
<TimeDerivative variable="q" value="(inf - q) / tau"/>
<OnStart>
<StateAssignment variable="q" value="inf"/>
</OnStart>
</Dynamics>
</ComponentType>
<ComponentType name="gateHHratesTau"
extends="baseGate"
description="Gate which follows the general Hodgkin Huxley formalism">
<Child name="notes" type="notes"/>
<Child name="q10Settings" type="baseQ10Settings"/>
<Child name="forwardRate" type="baseVoltageDepRate"/>
<Child name="reverseRate" type="baseVoltageDepRate"/>
<Child name="timeCourse" type="baseVoltageDepTime" />
<Exposure name="alpha" dimension="per_time"/>
<Exposure name="beta" dimension="per_time"/>
<Exposure name="tau" dimension="time"/>
<Exposure name="inf" dimension="none"/>
<Exposure name="rateScale" dimension="none"/>
<Dynamics>
<StateVariable name="q" exposure="q" dimension="none"/>
<DerivedVariable name="rateScale" exposure="rateScale" dimension="none" select="q10Settings/q10" reduce="multiply" required="false"/>
<DerivedVariable name="alpha" dimension="per_time" exposure="alpha" select="forwardRate/r"/>
<DerivedVariable name="beta" dimension="per_time" exposure="beta" select="reverseRate/r"/>
<DerivedVariable name="fcond" exposure="fcond" dimension="none" value="q^instances"/>
<DerivedVariable name="inf" dimension="none" exposure="inf" value="alpha/(alpha+beta)"/>
<DerivedVariable name="tauUnscaled" dimension="time" select="timeCourse/t"/>
<DerivedVariable name="tau" dimension="time" exposure="tau" value="tauUnscaled / rateScale"/>
<TimeDerivative variable="q" value="(inf - q) / tau"/>
<OnStart>
<StateAssignment variable="q" value="inf"/>
</OnStart>
</Dynamics>
</ComponentType>
<ComponentType name="gateHHratesInf"
extends="baseGate"
description="Gate which follows the general Hodgkin Huxley formalism">
<Child name="notes" type="notes"/>
<Child name="q10Settings" type="baseQ10Settings"/>
<Child name="forwardRate" type="baseVoltageDepRate"/>
<Child name="reverseRate" type="baseVoltageDepRate"/>
<Child name="steadyState" type="baseVoltageDepVariable" />
<Exposure name="alpha" dimension="per_time"/>
<Exposure name="beta" dimension="per_time"/>
<Exposure name="tau" dimension="time"/>
<Exposure name="inf" dimension="none"/>
<Exposure name="rateScale" dimension="none"/>
<Dynamics>
<StateVariable name="q" exposure="q" dimension="none"/>
<DerivedVariable name="rateScale" exposure="rateScale" dimension="none" select="q10Settings/q10" reduce="multiply" required="false"/>
<DerivedVariable name="alpha" dimension="per_time" exposure="alpha" select="forwardRate/r"/>
<DerivedVariable name="beta" dimension="per_time" exposure="beta" select="reverseRate/r"/>
<DerivedVariable name="fcond" exposure="fcond" dimension="none" value="q^instances"/>
<DerivedVariable name="inf" dimension="none" exposure="inf" select="steadyState/x"/>
<DerivedVariable name="tau" dimension="time" exposure="tau" value="1/((alpha+beta) * rateScale)"/>
<TimeDerivative variable="q" value="(inf - q) / tau"/>
<OnStart>
<StateAssignment variable="q" value="inf"/>
</OnStart>
</Dynamics>
</ComponentType>
<ComponentType name="gateHHratesTauInf"
extends="baseGate"
description="Gate which follows the general Hodgkin Huxley formalism">
<Child name="notes" type="notes"/>
<Child name="q10Settings" type="baseQ10Settings"/>
<Child name="forwardRate" type="baseVoltageDepRate"/>
<Child name="reverseRate" type="baseVoltageDepRate"/>
<Child name="timeCourse" type="baseVoltageDepTime" />
<Child name="steadyState" type="baseVoltageDepVariable" />
<Exposure name="alpha" dimension="per_time"/>
<Exposure name="beta" dimension="per_time"/>
<Exposure name="tau" dimension="time"/>
<Exposure name="inf" dimension="none"/>
<Exposure name="rateScale" dimension="none"/>
<Dynamics>
<StateVariable name="q" exposure="q" dimension="none"/>
<DerivedVariable name="rateScale" exposure="rateScale" dimension="none" select="q10Settings/q10" reduce="multiply" required="false"/>
<DerivedVariable name="alpha" dimension="per_time" exposure="alpha" select="forwardRate/r"/>
<DerivedVariable name="beta" dimension="per_time" exposure="beta" select="reverseRate/r"/>
<DerivedVariable name="inf" dimension="none" exposure="inf" select="steadyState/x"/>
<DerivedVariable name="tauUnscaled" dimension="time" select="timeCourse/t"/>
<DerivedVariable name="tau" dimension="time" exposure="tau" value="tauUnscaled / rateScale"/>
<DerivedVariable name="fcond" exposure="fcond" dimension="none" value="q^instances"/>
<TimeDerivative variable="q" value="(inf - q) / tau"/>
<OnStart>
<StateAssignment variable="q" value="inf"/>
</OnStart>
</Dynamics>
</ComponentType>
<ComponentType name="baseIonChannel"
description="Base for all ion channel ComponentTypes">
<Parameter name="conductance" dimension="conductance"/>
<Exposure name="g" dimension="conductance"/>
<Exposure name="fopen" dimension="none"/>
<Requirement name="v" dimension="voltage"/>
</ComponentType>
<ComponentType name="ionChannelPassive"
extends="ionChannel"
description="Simple passive ion channel where the constant conductance through the channel is equal to _conductance">
<Child name="notes" type="notes"/>
<Child name="annotation" type="annotation"/>
<Text name="neuroLexId"/>
<Dynamics>
<DerivedVariable name="fopen" exposure="fopen" value="1" dimension="none"/>
<DerivedVariable name="g" exposure="g" value="conductance" dimension="conductance"/>
</Dynamics>
</ComponentType>
<ComponentType name="ionChannelHH"
extends="baseIonChannel"
description="Note _ionChannel_ and _ionChannelHH_ are currently functionally identical. This is needed since many existing examples use ionChannel, some use ionChannelHH. NeuroML v2beta3 will remove one of these, probably ionChannelHH.">
<Child name="notes" type="notes"/>
<Child name="annotation" type="annotation"/>
<Children name="conductanceScaling" type="baseConductanceScaling"/>
<Children name="gatesHHrates" type="gateHHrates"/>
<Children name="gatesHHtauInf" type="gateHHtauInf"/>
<Children name="gatesHHratesTau" type="gateHHratesTau"/>
<Children name="gatesHHratesInf" type="gateHHratesInf"/>
<Children name="gatesHHratesTauInf" type="gateHHratesTauInf"/>
<Text name="neuroLexId"/>
<Text name="species"/>
<Dynamics>
<DerivedVariable name="conductanceScale" dimension="none" select="conductanceScaling[*]/factor" reduce="multiply"/>
<DerivedVariable name="fopenHHrates" dimension="none" select="gatesHHrates[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopenHHtauInf" dimension="none" select="gatesHHtauInf[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopenHHratesTau" dimension="none" select="gatesHHratesTau[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopenHHratesInf" dimension="none" select="gatesHHratesInf[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopenHHratesTauInf" dimension="none" select="gatesHHratesTauInf[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopen" exposure="fopen" dimension="none" value="conductanceScale * fopenHHrates * fopenHHtauInf * fopenHHratesTau * fopenHHratesInf * fopenHHratesTauInf"/>
<DerivedVariable name="g" exposure="g" value="conductance * fopen" dimension="conductance"/>
</Dynamics>
</ComponentType>
<ComponentType name="ionChannel"
extends="ionChannelHH"
description="Note _ionChannel_ and _ionChannelHH_ are currently functionally identical. This is needed since many existing examples use ionChannel, some use ionChannelHH. NeuroML v2beta3 will remove one of these, probably ionChannelHH.">
<Dynamics>
<DerivedVariable name="conductanceScale" dimension="none" select="conductanceScaling[*]/factor" reduce="multiply"/>
<DerivedVariable name="fopenHHrates" dimension="none" select="gatesHHrates[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopenHHtauInf" dimension="none" select="gatesHHtauInf[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopenHHratesTau" dimension="none" select="gatesHHratesTau[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopenHHratesInf" dimension="none" select="gatesHHratesInf[*]/fcond" reduce="multiply"/>
<DerivedVariable name="fopen" exposure="fopen" dimension="none" value="conductanceScale * fopenHHrates * fopenHHtauInf * fopenHHratesTau * fopenHHratesInf"/>
<DerivedVariable name="g" exposure="g" value="conductance * fopen" dimension="conductance"/>
</Dynamics>
</ComponentType>
<ComponentType name="KSState"
description="One of the states in which a _gateKS_ can be. The rates of transitions between these states are given by _KSTransition_s">
<Parameter name="relativeConductance" dimension="none"/>
<Child name="notes" type="notes"/>
<Exposure name="occupancy" dimension="none"/>
<Exposure name="q" dimension="none"/>
<Dynamics>
<StateVariable name="occupancy" exposure="occupancy" dimension="none"/>
<DerivedVariable name="q" dimension="none" exposure="q" value="relativeConductance * occupancy"/>
</Dynamics>
</ComponentType>
<ComponentType name="closedState"
extends="KSState"
description="A _KSState_ with _relativeConductance of 0">
<Fixed parameter="relativeConductance" value="0"/>
</ComponentType>
<ComponentType name="openState"
extends="KSState"
description="A _KSState_ with _relativeConductance of 1">
<Fixed parameter="relativeConductance" value="1"/>
</ComponentType>
<ComponentType name="ionChannelKS"
extends="ionChannel"
description="A kinetic scheme based ion channel with multiple _gateKS_s, each of which consists of multiple _KSState_s and _KSTransition_s giving the rates of transition between them">
<Children name="gates" type="gateKS"/>
<Text name="species"/>
<Dynamics>
<DerivedVariable name="fopen" exposure="fopen" dimension="none" select="gates[*]/fcond" reduce="multiply"/>
<DerivedVariable name="g" exposure="g" dimension="conductance" value="fopen * conductance"/>
</Dynamics>
</ComponentType>
<ComponentType name="KSTransition" description="Specified the forward and reverse rates of transition between two _KSState_s in a _gateKS_">
<Link name="from" type="KSState"/>
<Link name="to" type="KSState"/>
<Exposure name="rf" dimension="per_time"/>
<Exposure name="rr" dimension="per_time"/>
</ComponentType>
<ComponentType name="forwardTransition"
extends="KSTransition"
description="A forward only _KSTransition_ for a _gateKS_ which specifies a _rate (type _baseHHRate_) which follows one of the standard Hodgkin Huxley forms (e.g. _HHExpRate_, _HHSigmoidRate_, _HHExpLinearRate_">
<Constant name="SEC" dimension="time" value="1s"/>
<Child name="rate" type="baseHHRate"/>
<Dynamics>
<DerivedVariable name="rf0" dimension="per_time" select="rate/r"/>
<DerivedVariable name="rf" exposure="rf" dimension="per_time" value="rf0"/>
<DerivedVariable name="rr" exposure="rr" dimension="per_time" value="0/SEC"/>
</Dynamics>
</ComponentType>
<ComponentType name="reverseTransition"
extends="KSTransition"
description="A reverse only _KSTransition_ for a _gateKS_ which specifies a _rate (type _baseHHRate_) which follows one of the standard Hodgkin Huxley forms (e.g. _HHExpRate_, _HHSigmoidRate_, _HHExpLinearRate_">
<Constant name="SEC" dimension="time" value="1s"/>
<Child name="rate" type="baseHHRate"/>
<Dynamics>
<DerivedVariable name="rr0" dimension="per_time" select="rate/r"/>
<DerivedVariable name="rr" exposure="rr" dimension="per_time" value="rr0"/>
<DerivedVariable name="rf" exposure="rf" dimension="per_time" value="0/SEC"/>
</Dynamics>
</ComponentType>
<ComponentType name="vHalfTransition"
extends="KSTransition"
description="Transition which specifies both the forward and reverse rates of transition">
<Parameter name="vHalf" dimension="voltage"/>
<Parameter name="z" dimension="none"/>
<Parameter name="gamma" dimension="none"/>
<Parameter name="tau" dimension="time"/>
<Parameter name="tauMin" dimension="time"/>
<Constant name="kte" dimension="voltage" value="25.3mV"/>
<Requirement name="v" dimension="voltage"/>
<Dynamics>
<DerivedVariable name="rf0" dimension="per_time" value="exp(z * gamma * (v - vHalf) / kte) / tau"/>
<DerivedVariable name="rr0" dimension="per_time" value="exp(-z * (1 - gamma) * (v - vHalf) / kte) / tau"/>
<DerivedVariable name="rf" exposure="rf" dimension="per_time" value="1 / (1/rf0 + tauMin)"/>
<DerivedVariable name="rr" exposure="rr" dimension="per_time" value="1 / (1/rr0 + tauMin)"/>
</Dynamics>
</ComponentType>
<ComponentType name="gateKS"
extends="baseGate"
description="A gate which consists of multiple _KSState_s and _KSTransition_s giving the rates of transition between them">
<Children name="states" type="KSState"/>
<Children name="transitions" type="KSTransition"/>
<Dynamics>
<DerivedVariable name="q" exposure="q" dimension="none" select="states[*]/q" reduce="add"/>
<DerivedVariable name="fopen" exposure="fcond" dimension="none" value="q^instances"/>
<KineticScheme name="ks" nodes="states" stateVariable="occupancy"
edges="transitions" edgeSource="from" edgeTarget="to"
forwardRate="rf" reverseRate="rr"/>
</Dynamics>
</ComponentType>
</Lems>