Skip to content

Commit

Permalink
Merge branch 'OpenSourceBrain-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokas committed Dec 21, 2015
2 parents fc3313d + 21ee7e0 commit 7d18594
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NeuroML2/.test.validate.omt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

# This test will validate all of the NeuroML 2 files in the current directory using: jnml -validate *.nml
# Missing KAHP_CML.channel.nml
target: "Golgi*.channel.nml *.cell.nml *.net.nml"
target: "Golgi*.channel.nml *.net.nml"
engine: jNeuroML_validate
1 change: 1 addition & 0 deletions NeuroML2/LEMS_Soma_Test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<Include file="Golgi_KV.channel.nml"/>

<Include file="Golgi_Ca_HVA.channel.nml"/>
<Include file="Golgi_Ca_LVA.channel.nml"/>

<Include file="Golgi_hcn1f.channel.nml"/>
<Include file="Golgi_hcn1s.channel.nml"/>
Expand Down
79 changes: 78 additions & 1 deletion NeuroML2/TestSoma.cell.nml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@



<cell id="TestSoma">
<cell type="cellTwoCaPools" id="TestSoma">

<notes>A single segment/compartment cell</notes>

Expand Down Expand Up @@ -98,4 +98,81 @@

</cell>


<ComponentType name="cellTwoCaPools"
extends="baseCellMembPot"
description="Cell with _segment_s specified in a _morphology_ element along with details on its _biophysicalProperties_. NOTE: this can only be correctly simulated using LEMS when there is a single segment in the cell, and _v of this cell represents the membrane potential in that isopotential segment!!!">

<Child name="notes" type="notes"/>
<Child name="annotation" type="annotation"/>

<Child name="morphology" type="morphology"/>

<Child name="biophysicalProperties" type="biophysicalProperties"/>

<Attachments name="synapses" type="basePointCurrent"/>

<Exposure name="spiking" dimension="none"/>
<Exposure name="debugVal" dimension="none"/>
<Exposure name="iChannels" dimension="current"/>
<Exposure name="iSyn" dimension="current"/>
<Exposure name="totSpecCap" dimension="specificCapacitance"/>

<Exposure name="surfaceArea" dimension="area"/>

<Exposure name="iCa" dimension="current"/>
<Exposure name="caConc" dimension="concentration"/>
<Exposure name="caConcExt" dimension="concentration"/>

<Text name="neuroLexId"/>

<Dynamics>
<StateVariable name="v" exposure="v" dimension="voltage"/>
<StateVariable name="spiking" exposure="spiking" dimension="none"/>
<StateVariable name="debugVal" exposure="debugVal" dimension="none"/>

<DerivedVariable name="initMembPot" dimension="voltage" select="biophysicalProperties/membraneProperties/initMembPotential/value"/>
<DerivedVariable name="thresh" dimension="voltage" select="biophysicalProperties/membraneProperties/spikeThresh/value"/>

<DerivedVariable name="debug" dimension="none" select="biophysicalProperties/membraneProperties/totChanCurrent"/>

<!--TODO replace this with just using first segment!!-->
<DerivedVariable name="surfaceArea" exposure="surfaceArea" dimension="area" select="morphology/segments[*]/surfaceArea" reduce="add"/>

<DerivedVariable name="totSpecCap" dimension="specificCapacitance" exposure="totSpecCap" select="biophysicalProperties/totSpecCap"/>
<DerivedVariable name="totCap" dimension="capacitance" value="totSpecCap * surfaceArea "/>

<DerivedVariable name="iChannels" dimension="current" exposure="iChannels" select="biophysicalProperties/membraneProperties/totChanCurrent"/>
<DerivedVariable name="iSyn" dimension="current" exposure="iSyn" select="synapses[*]/i" reduce="add" />

<DerivedVariable name="iCa" dimension="current" exposure="iCa" select="biophysicalProperties/membraneProperties/iCa"/>
<DerivedVariable name="caConc" dimension="concentration" exposure="caConc" select="biophysicalProperties/intracellularProperties/caConc"/>
<DerivedVariable name="caConcExt" dimension="concentration" exposure="caConcExt" select="biophysicalProperties/intracellularProperties/caConcExt"/>

<TimeDerivative variable="v" value="(iChannels + iSyn) / totCap"/>

<OnStart>
<StateAssignment variable="spiking" value="0"/>
<StateAssignment variable="v" value="initMembPot"/>
</OnStart>

<OnCondition test="v .gt. thresh .and. spiking .lt. 0.5">
<StateAssignment variable="spiking" value="1"/>
<EventOut port="spike"/>
</OnCondition>

<OnCondition test="v .lt. thresh">
<StateAssignment variable="spiking" value="0"/>
</OnCondition>

<OnCondition test="t .geq. 0">
<StateAssignment variable="debugVal" value="debug"/>
</OnCondition>

</Dynamics>

</ComponentType>


</neuroml>

0 comments on commit 7d18594

Please sign in to comment.