-
Notifications
You must be signed in to change notification settings - Fork 10
/
CaDynamics.nml
70 lines (44 loc) · 2.76 KB
/
CaDynamics.nml
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.githubusercontent.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta3.xsd"
id="CaDynamics">
<notes>NeuroML 2 implementation of the Ca Pool mechanism</notes>
<!--<decayingPoolConcentrationModel id="CaDynamics_E2_NML2" restingConc="1e-10mol_per_cm3" decayConstant="80ms" ion="ca" shellThickness="2.787e-4cm"/>-->
<concentrationModel id="CaDynamics" type="concentrationModelHayEtAl" minCai="1e-4 mM" decay="739.8 ms" depth="0.1 um" gamma="0.0264831" ion="ca"/>
<!--
This is a new, custom ComponentType to handle the calcium mechanism with parameters
PARAMETER {
gamma = 0.05 : percent of free calcium (not buffered)
decay = 80 (ms) : rate of removal of calcium
depth = 0.1 (um) : depth of shell
minCai = 1e-4 (mM)
}
and derivative mechanism:
DERIVATIVE states {
cai' = -(10000)*(ica*gamma/(2*FARADAY*depth)) - (cai - minCai)/decay
}
See https://github.com/OpenSourceBrain/L5bPyrCellHayEtAl2011/blob/master/neuroConstruct/cellMechanisms/CaDynamics_E2_init_mod/CaDynamics_E2.mod
-->
<ComponentType name="concentrationModelHayEtAl" extends="concentrationModel" description="Model of buffering of concentration of specific to Hay Et Al 2011">
<Parameter name="gamma" dimension="none"/>
<Parameter name="minCai" dimension="concentration"/>
<Parameter name="decay" dimension="time"/>
<Parameter name="depth" dimension="length"/>
<Constant name="Faraday" dimension="charge_per_mole" value="96485.3C_per_mol"/>
<Constant name="AREA_SCALE" dimension="area" value="1m2"/>
<Constant name="LENGTH_SCALE" dimension="length" value="1m"/>
<Requirement name="iCa" dimension="current"/>
<Text name="ion"/>
<Dynamics>
<StateVariable name="concentration" exposure="concentration" dimension="concentration"/>
<StateVariable name="extConcentration" exposure="extConcentration" dimension="concentration"/>
<DerivedVariable name="currDensCa" dimension="currentDensity" value="iCa / surfaceArea"/>
<TimeDerivative variable="concentration" value="(currDensCa*gamma/(2*Faraday*depth)) - ((concentration - minCai) / decay)"/>
<OnStart>
<StateAssignment variable="concentration" value="initialConcentration"/>
<StateAssignment variable="extConcentration" value="initialExtConcentration"/>
</OnStart>
</Dynamics>
</ComponentType>
</neuroml>