-
Notifications
You must be signed in to change notification settings - Fork 1
/
Synapses.xml
307 lines (212 loc) · 12.8 KB
/
Synapses.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
<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="A number of synaptic ComponentTypes for use in NeuroML 2 documents. These generally extend the _baseSynapse_ ComponentType.">
<!-- These definitions reference entries in the Computational Neuroscience Ontology. To translate
the cnoTerms into URLs, follow example of synapse, e.g. cno_0000009 ->
http://bioportal.bioontology.org/ontologies/46856/?p=terms&conceptid=cno%3Acno_0000009
alternatively download the OWL file from https://github.com/INCF and open in Protege: http://protege.stanford.edu
'cnoTerm' MAY be added as a new attribute, but that would add neuroscience specific terms to LEMS. May be better to add
'reference' or 'ontRef' as a new attribute -->
<!-- Including standard unit comp types & units for NeuroML v2.0 -->
<Include file="NeuroMLCoreCompTypes.xml"/>
<Include file="Inputs.xml"/>
<ComponentType name="baseSynapse"
extends="baseVoltageDepPointCurrent"
description="Base type for all synapses, i.e. ComponentTypes which produce a current (dimension current) and change Dynamics in response to an incoming event. cno_0000009"> <!-- http://bioportal.bioontology.org/ontologies/46856/?p=terms&conceptid=cno%3Acno_0000009 -->
<Child name="notes" type="notes"/>
<EventPort name="in" direction="in"/>
</ComponentType>
<ComponentType name="baseSynapseDL"
extends="baseVoltageDepPointCurrentDL"
description="Base type for all synapses, i.e. ComponentTypes which produce a dimensionless current and change Dynamics in response to an incoming event. cno_0000009"> <!-- http://bioportal.bioontology.org/ontologies/46856/?p=terms&conceptid=cno%3Acno_0000009 -->
<EventPort name="in" direction="in"/>
</ComponentType>
<ComponentType name="baseConductanceBasedSynapse"
extends="baseSynapse"
description="Synapse model which exposes a conductance _g in addition to producing a current. Not necessarily ohmic!! cno_0000027">
<Parameter name="gbase" dimension="conductance" description="Baseline conductance, generally the maximum conductance following a single spike"/>
<Parameter name="erev" dimension="voltage" description="Reversal potential of the synapse"/>
<Exposure name="g" dimension="conductance" description="Time varying conductance through the synapse"/>
</ComponentType>
<ComponentType name="expOneSynapse"
extends="baseConductanceBasedSynapse"
description="Ohmic synapse model whose conductance rises instantaneously by _gbase on receiving an event, and which decays exponentially to zero with time course _tauDecay">
<Parameter name="tauDecay" dimension="time" description="Time course of decay"/>
<Dynamics>
<StateVariable name="g" dimension="conductance" exposure="g"/>
<DerivedVariable name="i" exposure="i" dimension="current" value="g * (erev - v)" />
<TimeDerivative variable="g" value="-g / tauDecay" />
<OnStart>
<StateAssignment variable="g" value="0" />
</OnStart>
<OnEvent port="in">
<StateAssignment variable="g" value="g + gbase" />
</OnEvent>
</Dynamics>
</ComponentType>
<ComponentType name="expTwoSynapse"
extends="baseConductanceBasedSynapse"
description="Ohmic synapse model whose conductance waveform on receiving an event has a rise time of _tauRise and a decay time of _tauDecay. Max conductance reached during this time (assuming zero conductance before) is _gbase.">
<Parameter name="tauRise" dimension="time" />
<Parameter name="tauDecay" dimension="time" />
<DerivedParameter name="peakTime" dimension="time" value="log(tauDecay / tauRise) * (tauRise * tauDecay)/(tauDecay - tauRise)"/>
<DerivedParameter name="waveformFactor" dimension="none" value="1 / (-exp(-peakTime / tauRise) + exp(-peakTime / tauDecay))"/>
<Dynamics>
<StateVariable name="A" dimension="none"/>
<StateVariable name="B" dimension="none"/>
<!-- TODO: catch tauRise = 0..! -->
<DerivedVariable name="g" dimension="conductance" exposure="g" value="gbase * (B - A)" />
<DerivedVariable name="i" exposure="i" dimension="current" value="g * (erev - v)" />
<TimeDerivative variable="A" value="-A / tauRise" />
<TimeDerivative variable="B" value="-B / tauDecay" />
<OnStart>
<StateAssignment variable="A" value="0" />
<StateAssignment variable="B" value="0" />
</OnStart>
<OnEvent port="in">
<StateAssignment variable="A" value="A + waveformFactor" />
<StateAssignment variable="B" value="B + waveformFactor" />
</OnEvent>
</Dynamics>
</ComponentType>
<ComponentType name="baseBlockMechanism"
description="Base of any ComponentType which produces a varying scaling (or blockage) of synaptic strength of magnitude _scaling">
<Exposure name="blockFactor" dimension="none"/>
</ComponentType>
<ComponentType name="voltageConcDepBlockMechanism"
extends="baseBlockMechanism"
description="Synaptic blocking mechanism which varys with membrane potential across the synapse, e.g. in NMDA receptor mediated synapses">
<Parameter name="blockConcentration" dimension="concentration" />
<Parameter name="scalingConc" dimension="concentration" />
<Parameter name="scalingVolt" dimension="voltage" />
<Requirement name="v" dimension="voltage"/>
<Text name="species"/>
<Dynamics>
<DerivedVariable name="blockFactor" dimension="none" exposure="blockFactor" value="1/(1 + (blockConcentration / scalingConc)* exp(-1 * (v / scalingVolt)))" />
</Dynamics>
</ComponentType>
<ComponentType name="basePlasticityMechanism"
description="Base plasticity mechanism.">
<EventPort name="in" direction="in" description="This is where the plasticity mechanism receives spike events from the parent synapse."/>
<Exposure name="plasticityFactor" dimension="none"/>
</ComponentType>
<ComponentType name="tsodyksMarkramDepMechanism"
extends="basePlasticityMechanism"
description="Depression-only Tsodyks-Markram model, as in Tsodyks and Markram 1997.">
<Parameter name="initReleaseProb" dimension="none" />
<Parameter name="tauRec" dimension="time" />
<Dynamics>
<StateVariable name="R" dimension="none"/>
<DerivedVariable name="U" dimension="none" value="initReleaseProb"/>
<DerivedVariable name="plasticityFactor" dimension="none" exposure="plasticityFactor" value="R * U" />
<TimeDerivative variable="R" value="(1 - R) / tauRec"/>
<OnStart>
<StateAssignment variable="R" value="1" />
</OnStart>
<OnEvent port="in">
<StateAssignment variable="R" value="R * (1 - U)" />
</OnEvent>
</Dynamics>
<Structure>
<With instance="parent" as="a"/>
<With instance="this" as="b"/>
<EventConnection from="a" to="b"/>
</Structure>
</ComponentType>
<ComponentType name="tsodyksMarkramDepFacMechanism"
extends="basePlasticityMechanism"
description="Full Tsodyks-Markram STP model with both depression and facilitation, as in Tsodyks, Pawelzik and Markram 1998.">
<Parameter name="initReleaseProb" dimension="none" />
<Parameter name="tauRec" dimension="time" />
<Parameter name="tauFac" dimension="time" />
<Dynamics>
<StateVariable name="R" dimension="none"/>
<StateVariable name="U" dimension="none"/>
<DerivedVariable name="plasticityFactor" dimension="none" exposure="plasticityFactor" value="R * U" />
<TimeDerivative variable="R" value="(1 - R) / tauRec"/>
<TimeDerivative variable="U" value="(initReleaseProb - U) / tauFac"/>
<OnStart>
<StateAssignment variable="R" value="1" />
<StateAssignment variable="U" value="initReleaseProb" />
</OnStart>
<OnEvent port="in">
<StateAssignment variable="R" value="R * (1 - U)" />
<StateAssignment variable="U" value="U + initReleaseProb * (1 - U)" />
</OnEvent>
</Dynamics>
<Structure>
<With instance="parent" as="a"/>
<With instance="this" as="b"/>
<EventConnection from="a" to="b"/>
</Structure>
</ComponentType>
<ComponentType name="blockingPlasticSynapse"
extends="expTwoSynapse"
description="Biexponential synapse that allows for
optional block and plasticity
mechanisms, which can be expressed as
child elements.">
<Child name="plasticityMechanism" type="basePlasticityMechanism"/>
<Child name="blockMechanism" type="baseBlockMechanism"/>
<EventPort name="relay" direction="out" description="Used to relay incoming spikes to child plasticity mechanism"/>
<Dynamics>
<StateVariable name="A" dimension="none"/>
<StateVariable name="B" dimension="none"/>
<DerivedVariable name="plasticityFactor" dimension="none"
select="plasticityMechanism/plasticityFactor"
reduce="multiply" required="false"/>
<DerivedVariable name="blockFactor" dimension="none"
select="blockMechanism/blockFactor"
reduce="multiply" required="false"/>
<DerivedVariable name="g" dimension="conductance" exposure="g"
value="blockFactor * gbase * (B - A)" />
<DerivedVariable name="i" exposure="i" dimension="current"
value="g * (erev - v)" />
<TimeDerivative variable="A" value="-A / tauRise" />
<TimeDerivative variable="B" value="-B / tauDecay" />
<OnStart>
<StateAssignment variable="A" value="0" />
<StateAssignment variable="B" value="0" />
</OnStart>
<OnEvent port="in">
<StateAssignment variable="A" value="A + plasticityFactor * waveformFactor" />
<StateAssignment variable="B" value="B + plasticityFactor * waveformFactor" />
<EventOut port="relay"/>
</OnEvent>
</Dynamics>
</ComponentType>
<ComponentType name="stdpSynapse"
extends="expTwoSynapse"
description="Spike timing dependent plasticity mechanism, NOTE: EXAMPLE NOT YET WORKING!!!! cno_0000034">
<Constant name="tsinceRate" dimension="none" value="1"/>
<Constant name="longTime" dimension="time" value="1000s"/>
<Exposure name="tsince" dimension="time"/>
<Exposure name="M" dimension="none"/>
<Exposure name="P" dimension="none"/>
<Dynamics>
<StateVariable name="A" dimension="none"/>
<StateVariable name="B" dimension="none"/>
<StateVariable name="M" dimension="none" exposure="M"/>
<StateVariable name="P" dimension="none" exposure="P"/>
<StateVariable name="tsince" dimension="time" exposure="tsince"/>
<DerivedVariable name="g" dimension="conductance" exposure="g" value="gbase * (B - A)" />
<DerivedVariable name="i" exposure="i" dimension="current" value="g * (erev - v)" />
<TimeDerivative variable="A" value="-A / tauRise" />
<TimeDerivative variable="B" value="-B / tauDecay" />
<TimeDerivative variable="tsince" value="tsinceRate" />
<OnStart>
<StateAssignment variable="A" value="0" />
<StateAssignment variable="B" value="0" />
<StateAssignment variable="M" value="1" />
<StateAssignment variable="P" value="1" />
<StateAssignment variable="tsince" value="longTime" />
</OnStart>
<OnEvent port="in">
<StateAssignment variable="A" value="A + waveformFactor" />
<StateAssignment variable="B" value="B + waveformFactor" />
<StateAssignment variable="tsince" value="0" />
</OnEvent>
</Dynamics>
</ComponentType>
</Lems>