Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 6fdf07c

Browse files
authored
Merge pull request #428 from AurelienJaquier/neuroml-test
Can now write cell as neuroml file
2 parents 3440402 + 7bf509b commit 6fdf07c

26 files changed

+2343
-6
lines changed

AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Giuseppe Chindemi @ BBP
66
Tanguy Damart @ BBP
77
Elisabetta Iavarone @ BBP
88
Anil Tuncel @ BBP
9+
Aurelien Jaquier @ BBP

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,20 @@ clean:
6767
rm -rf examples/l5pc/L5PC.py
6868
rm -rf examples/l5pc/x86_64
6969
rm -rf examples/stochkv/x86_64
70+
rm -rf x86_64
7071
rm -rf .coverage
7172
rm -rf coverage.xml
73+
rm -rf channels
74+
rm -rf LEMS_l5pc.xml
75+
rm -rf LEMS_l5pc_nrn.py
76+
rm -rf l5pc.Pop_l5pc_0_0.v.dat
77+
rm -rf time.dat
78+
rm -rf l5pc.hoc
79+
rm -rf l5pc.net.nml
80+
rm -rf l5pc_0_0.cell.nml
81+
rm -rf l5pc_0_0.hoc
82+
rm -rf loadcell.hoc
83+
rm -rf *.mod
7284
find . -name "*.pyc" -exec rm -rf {} \;
7385
l5pc_start: install
7486
cd examples/l5pc && \
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<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.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta3.xsd" id="Ca">
3+
4+
<notes>NeuroML file containing a single Channel description</notes>
5+
6+
<ionChannel id="Ca" conductance="10pS" type="ionChannelHH" species="ca">
7+
8+
<notes>NeuroML file containing a single Channel description
9+
10+
Note: was called Ca_HVA in Hay et al 2011: http://www.opensourcebrain.org/projects/l5bpyrcellhayetal2011
11+
12+
</notes>
13+
14+
<annotation>
15+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
16+
<rdf:Description rdf:about="Ca">
17+
18+
<bqmodel:isDescribedBy xmlns:bqmodel="http://biomodels.net/model-qualifiers/">
19+
<rdf:Bag>
20+
<rdf:li>Models of Neocortical Layer 5b Pyramidal Cells Capturing a Wide Range of Dendritic and Perisomatic Active Properties,
21+
Etay Hay, Sean Hill, Felix Schürmann, Henry Markram and Idan Segev, PLoS Comp Biol 2011</rdf:li>
22+
<rdf:li rdf:resource="http://www.ncbi.nlm.nih.gov/pubmed/21829333"/>
23+
</rdf:Bag>
24+
</bqmodel:isDescribedBy>
25+
26+
27+
<bqbiol:isVersionOf xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">
28+
<rdf:Bag>
29+
<rdf:li>Calcium channels</rdf:li>
30+
<rdf:li rdf:resource="http://senselab.med.yale.edu/neurondb/channelGene2.aspx#table1"/>
31+
</rdf:Bag>
32+
</bqbiol:isVersionOf>
33+
34+
</rdf:Description>
35+
</rdf:RDF>
36+
</annotation>
37+
38+
<gate id="m" type="gateHHrates" instances="2">
39+
<forwardRate type="HHExpLinearRate" rate="0.209per_ms" scale="3.8mV" midpoint="-27mV"/>
40+
<reverseRate type="HHExpRate" rate="0.94per_ms" scale="-17mV" midpoint="-75mV"/>
41+
</gate>
42+
43+
<gate id="h" type="gateHHrates" instances="1">
44+
<forwardRate type="HHExpRate" rate="0.000457per_ms" scale="-50mV" midpoint="-13mV"/>
45+
<reverseRate type="HHSigmoidRate" rate="0.0065per_ms" scale="28mV" midpoint="-15mV"/>
46+
</gate>
47+
48+
</ionChannel>
49+
50+
</neuroml>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<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.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta4.xsd" id="Ca_HVA">
3+
4+
<notes>NeuroML file containing a single Channel description</notes>
5+
6+
<ionChannel id="Ca_HVA" conductance="10pS" type="ionChannelHH" species="ca">
7+
8+
<notes>High voltage activated Ca2+ current.
9+
10+
Comment from original mod file:
11+
Reuveni, Friedman, Amitai, and Gutnick, J.Neurosci. 1993</notes>
12+
13+
<annotation>
14+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
15+
<rdf:Description rdf:about="Ca_HVA">
16+
17+
<bqmodel:isDescribedBy xmlns:bqmodel="http://biomodels.net/model-qualifiers/">
18+
<rdf:Bag>
19+
<rdf:li>Models of Neocortical Layer 5b Pyramidal Cells Capturing a Wide Range of Dendritic and Perisomatic Active Properties,
20+
Etay Hay, Sean Hill, Felix Schürmann, Henry Markram and Idan Segev, PLoS Comp Biol 2011</rdf:li>
21+
<rdf:li rdf:resource="http://www.ncbi.nlm.nih.gov/pubmed/21829333"/>
22+
</rdf:Bag>
23+
</bqmodel:isDescribedBy>
24+
25+
26+
<bqbiol:isVersionOf xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">
27+
<rdf:Bag>
28+
<rdf:li>Calcium channels</rdf:li>
29+
<rdf:li rdf:resource="http://senselab.med.yale.edu/neurondb/channelGene2.aspx#table1"/>
30+
</rdf:Bag>
31+
</bqbiol:isVersionOf>
32+
33+
</rdf:Description>
34+
</rdf:RDF>
35+
</annotation>
36+
37+
<gate id="m" type="gateHHrates" instances="2">
38+
<forwardRate type="HHExpLinearRate" rate="0.209per_ms" scale="3.8mV" midpoint="-27mV"/>
39+
<reverseRate type="HHExpRate" rate="0.94per_ms" scale="-17mV" midpoint="-75mV"/>
40+
</gate>
41+
42+
<gate id="h" type="gateHHrates" instances="1">
43+
<forwardRate type="HHExpRate" rate="0.000457per_ms" scale="-50mV" midpoint="-13mV"/>
44+
<reverseRate type="HHSigmoidRate" rate="0.0065per_ms" scale="28mV" midpoint="-15mV"/>
45+
</gate>
46+
47+
</ionChannel>
48+
49+
</neuroml>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<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.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta4.xsd" id="Ca_LVAst">
3+
4+
<notes>NeuroML file containing a single Channel description</notes>
5+
6+
<ionChannel id="Ca_LVAst" conductance="10pS" type="ionChannelHH" species="ca">
7+
8+
<notes>Low voltage activated Ca2+ current
9+
10+
Comment from original mod file:
11+
Note: mtau is an approximation from the plots
12+
:Reference : : Avery and Johnston 1996, tau from Randall 1997
13+
:Comment: shifted by -10 mv to correct for junction potential
14+
:Comment: corrected rates using q10 = 2.3, target temperature 34, orginal 21</notes>
15+
16+
<annotation>
17+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
18+
<rdf:Description rdf:about="Ca_LVAst">
19+
20+
<bqmodel:isDescribedBy xmlns:bqmodel="http://biomodels.net/model-qualifiers/">
21+
<rdf:Bag>
22+
<rdf:li>Models of Neocortical Layer 5b Pyramidal Cells Capturing a Wide Range of Dendritic and Perisomatic Active Properties,
23+
Etay Hay, Sean Hill, Felix Schürmann, Henry Markram and Idan Segev, PLoS Comp Biol 2011</rdf:li>
24+
<rdf:li rdf:resource="http://www.ncbi.nlm.nih.gov/pubmed/21829333"/>
25+
</rdf:Bag>
26+
</bqmodel:isDescribedBy>
27+
28+
29+
<bqbiol:isVersionOf xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">
30+
<rdf:Bag>
31+
<rdf:li>Ca channels</rdf:li>
32+
<rdf:li rdf:resource="http://senselab.med.yale.edu/neurondb/channelGene2.aspx#table1"/>
33+
</rdf:Bag>
34+
</bqbiol:isVersionOf>
35+
36+
</rdf:Description>
37+
</rdf:RDF>
38+
</annotation>
39+
40+
<gate id="m" type="gateHHtauInf" instances="2">
41+
<q10Settings type="q10Fixed" fixedQ10="2.95288264"/>
42+
<timeCourse type="Ca_LVAst_m_tau_tau"/>
43+
<steadyState type="HHSigmoidVariable" rate="1" scale="6mV" midpoint="-40mV"/>
44+
</gate>
45+
46+
<gate id="h" type="gateHHtauInf" instances="1">
47+
<q10Settings type="q10Fixed" fixedQ10="2.95288264"/>
48+
<timeCourse type="Ca_LVAst_h_tau_tau"/>
49+
<steadyState type="HHSigmoidVariable" rate="1" scale="-6.4mV" midpoint="-90mV"/>
50+
</gate>
51+
52+
</ionChannel>
53+
54+
<ComponentType name="Ca_LVAst_m_tau_tau" extends="baseVoltageDepTime">
55+
<Constant name="TIME_SCALE" dimension="time" value="1 ms"/>
56+
<Constant name="VOLT_SCALE" dimension="voltage" value="1 mV"/>
57+
58+
<Dynamics>
59+
<DerivedVariable name="V" dimension="none" value="v / VOLT_SCALE"/>
60+
<DerivedVariable name="t" exposure="t" dimension="time" value="(5 + 20 / (1 + (exp ((V+35)/5) ))) * TIME_SCALE"/>
61+
</Dynamics>
62+
63+
</ComponentType>
64+
65+
<ComponentType name="Ca_LVAst_h_tau_tau" extends="baseVoltageDepTime">
66+
<Constant name="TIME_SCALE" dimension="time" value="1 ms"/>
67+
<Constant name="VOLT_SCALE" dimension="voltage" value="1 mV"/>
68+
69+
<Dynamics>
70+
<DerivedVariable name="V" dimension="none" value="v / VOLT_SCALE"/>
71+
<DerivedVariable name="t" exposure="t" dimension="time" value="(20 + 50 / (1 + (exp ((V+50)/7) ))) * TIME_SCALE"/>
72+
</Dynamics>
73+
74+
</ComponentType>
75+
76+
</neuroml>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<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.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta4.xsd" id="Ih">
3+
4+
<notes>NeuroML file containing a single Channel description</notes>
5+
6+
<ionChannel id="Ih" conductance="10pS" type="ionChannelHH" species="hcn">
7+
8+
<notes>Non-specific cation current
9+
10+
Comment from original mod file:
11+
Reference : : Kole,Hallermann,and Stuart, J. Neurosci. 2006</notes>
12+
13+
<annotation>
14+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
15+
<rdf:Description rdf:about="Ih">
16+
17+
<bqmodel:isDescribedBy xmlns:bqmodel="http://biomodels.net/model-qualifiers/">
18+
<rdf:Bag>
19+
<rdf:li>Models of Neocortical Layer 5b Pyramidal Cells Capturing a Wide Range of Dendritic and Perisomatic Active Properties,
20+
Etay Hay, Sean Hill, Felix Schürmann, Henry Markram and Idan Segev, PLoS Comp Biol 2011</rdf:li>
21+
<rdf:li rdf:resource="http://www.ncbi.nlm.nih.gov/pubmed/21829333"/>
22+
</rdf:Bag>
23+
</bqmodel:isDescribedBy>
24+
25+
</rdf:Description>
26+
</rdf:RDF>
27+
</annotation>
28+
29+
<gate id="m" type="gateHHrates" instances="1">
30+
<forwardRate type="HHExpLinearRate" rate="0.076517per_ms" scale="-11.9mV" midpoint="-154.9mV"/>
31+
<reverseRate type="HHExpRate" rate="0.193per_ms" scale="33.1mV" midpoint="0mV"/>
32+
</gate>
33+
34+
</ionChannel>
35+
36+
</neuroml>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<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.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta4.xsd" id="Im">
3+
4+
<notes>NeuroML file containing a single Channel description</notes>
5+
6+
<ionChannel id="Im" conductance="10pS" type="ionChannelHH" species="k">
7+
8+
<notes>Muscarinic K+ current
9+
10+
Comment from original mod file:
11+
:Reference : : Adams et al. 1982 - M-currents and other potassium currents in bullfrog sympathetic neurones
12+
:Comment: corrected rates using q10 = 2.3, target temperature 34, orginal 21</notes>
13+
14+
<annotation>
15+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
16+
<rdf:Description rdf:about="Im">
17+
18+
<bqmodel:isDescribedBy xmlns:bqmodel="http://biomodels.net/model-qualifiers/">
19+
<rdf:Bag>
20+
<rdf:li>Models of Neocortical Layer 5b Pyramidal Cells Capturing a Wide Range of Dendritic and Perisomatic Active Properties,
21+
Etay Hay, Sean Hill, Felix Schürmann, Henry Markram and Idan Segev, PLoS Comp Biol 2011</rdf:li>
22+
<rdf:li rdf:resource="http://www.ncbi.nlm.nih.gov/pubmed/21829333"/>
23+
</rdf:Bag>
24+
</bqmodel:isDescribedBy>
25+
26+
27+
<bqbiol:isVersionOf xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">
28+
<rdf:Bag>
29+
<rdf:li>K channels</rdf:li>
30+
<rdf:li rdf:resource="http://senselab.med.yale.edu/neurondb/channelGene2.aspx#table3"/>
31+
</rdf:Bag>
32+
</bqbiol:isVersionOf>
33+
34+
</rdf:Description>
35+
</rdf:RDF>
36+
</annotation>
37+
38+
<gate id="m" type="gateHHrates" instances="1">
39+
<q10Settings type="q10Fixed" fixedQ10="2.95288264"/>
40+
<forwardRate type="HHExpRate" rate="0.0033per_ms" scale="10mV" midpoint="-35mV"/>
41+
<reverseRate type="HHExpRate" rate="0.0033per_ms" scale="-10mV" midpoint="-35mV"/>
42+
</gate>
43+
44+
</ionChannel>
45+
46+
</neuroml>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<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.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta4.xsd" id="K_Pst">
3+
4+
<notes>NeuroML file containing a single Channel description</notes>
5+
6+
<ionChannel id="K_Pst" conductance="10pS" type="ionChannelHH" species="k">
7+
8+
<notes>Slow inactivating K+ current
9+
10+
Comment from original mod file:
11+
:Comment : The persistent component of the K current
12+
:Reference : : Voltage-gated K+ channels in layer 5 neocortical pyramidal neurones from young rats:subtypes and gradients,Korngreen and Sakmann, J. Physiology, 2000
13+
:Comment : shifted -10 mv to correct for junction potential
14+
:Comment: corrected rates using q10 = 2.3, target temperature 34, orginal 21</notes>
15+
16+
<annotation>
17+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
18+
<rdf:Description rdf:about="K_Pst">
19+
20+
<bqmodel:isDescribedBy xmlns:bqmodel="http://biomodels.net/model-qualifiers/">
21+
<rdf:Bag>
22+
<rdf:li>Models of Neocortical Layer 5b Pyramidal Cells Capturing a Wide Range of Dendritic and Perisomatic Active Properties,
23+
Etay Hay, Sean Hill, Felix Schürmann, Henry Markram and Idan Segev, PLoS Comp Biol 2011</rdf:li>
24+
<rdf:li rdf:resource="http://www.ncbi.nlm.nih.gov/pubmed/21829333"/>
25+
</rdf:Bag>
26+
</bqmodel:isDescribedBy>
27+
28+
29+
<bqbiol:isVersionOf xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">
30+
<rdf:Bag>
31+
<rdf:li>K channels</rdf:li>
32+
<rdf:li rdf:resource="http://senselab.med.yale.edu/neurondb/channelGene2.aspx#table3"/>
33+
</rdf:Bag>
34+
</bqbiol:isVersionOf>
35+
36+
</rdf:Description>
37+
</rdf:RDF>
38+
</annotation>
39+
40+
<gate id="m" type="gateHHtauInf" instances="2">
41+
<q10Settings type="q10Fixed" fixedQ10="2.95288264"/>
42+
<timeCourse type="K_Pst_m_tau_tau"/>
43+
<steadyState type="HHSigmoidVariable" rate="1" scale="12mV" midpoint="-11mV"/>
44+
</gate>
45+
46+
<gate id="h" type="gateHHtauInf" instances="1">
47+
<q10Settings type="q10Fixed" fixedQ10="2.95288264"/>
48+
<timeCourse type="K_Pst_h_tau_tau"/>
49+
<steadyState type="HHSigmoidVariable" rate="1" scale="-11mV" midpoint="-64mV"/>
50+
</gate>
51+
52+
</ionChannel>
53+
54+
<ComponentType name="K_Pst_m_tau_tau" extends="baseVoltageDepTime">
55+
<Constant name="TIME_SCALE" dimension="time" value="1 ms"/>
56+
<Constant name="VOLT_SCALE" dimension="voltage" value="1 mV"/>
57+
58+
<Dynamics>
59+
<DerivedVariable name="V" dimension="none" value="v / VOLT_SCALE"/>
60+
<ConditionalDerivedVariable name="t" exposure="t" dimension="time">
61+
<Case condition="V .lt. ( -60 )" value="( (1.25 + 175.03 * (exp ((V+10) * 0.026))) ) * TIME_SCALE"/>
62+
<Case value="( (1.25 + 13 * (exp ((V+10) * -0.026)))) * TIME_SCALE"/>
63+
</ConditionalDerivedVariable>
64+
</Dynamics>
65+
66+
</ComponentType>
67+
68+
<ComponentType name="K_Pst_h_tau_tau" extends="baseVoltageDepTime">
69+
<Constant name="TIME_SCALE" dimension="time" value="1 ms"/>
70+
<Constant name="VOLT_SCALE" dimension="voltage" value="1 mV"/>
71+
72+
<Dynamics>
73+
<DerivedVariable name="V" dimension="none" value="v / VOLT_SCALE"/>
74+
<DerivedVariable name="t" exposure="t" dimension="time" value="(360 + (1010 + 24*(V+65)) * (exp (-1 *((V+85)/48)*((V+85)/48)))) * TIME_SCALE"/>
75+
</Dynamics>
76+
77+
</ComponentType>
78+
79+
</neuroml>

0 commit comments

Comments
 (0)