Skip to content

Commit e37f7ab

Browse files
committed
Instance of network in NeuroML
1 parent 883ca07 commit e37f7ab

20 files changed

+19212
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ x86_64
2121
/pertinh.rate.*.dat
2222
/rates.png
2323
/exc2.rate.*.dat
24+
/NeuroML2/ISN_net.gv
25+
/NeuroML2/ISN_net.gv.png

ISN.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,55 @@ def run_one(**kwargs):
11181118

11191119
run_one()
11201120

1121+
1122+
elif '-neuroml' in sys.argv:
1123+
1124+
fraction_inh_pert_rng = [0.9]
1125+
1126+
for fraction_inh_pert in fraction_inh_pert_rng:
1127+
suffix = '';#str(int(fraction_inh_pert*100))
1128+
target_dir = './NeuroML2/';
1129+
1130+
run_in_simulator = None
1131+
format = 'hdf5'
1132+
1133+
generate(Bee = Bee,
1134+
Bei = Bei,
1135+
Bie = Bie,
1136+
Bii = Bii,
1137+
Be_bkg = Be_bkg,
1138+
Be_stim = Be_stim,
1139+
r_bkg = 0,
1140+
r_stim = r_stim,
1141+
r_bkg_ExtExc=r_bkg_ExtExc,
1142+
r_bkg_ExtInh=r_bkg_ExtInh,
1143+
r_bkg_ExtExc2=r_bkg_ExtExc2,
1144+
Ttrans = Ttrans,
1145+
Tblank= Tblank,
1146+
Tstim = Tstim,
1147+
Tpost = Tpost,
1148+
exc_exc_conn_prob = exc_exc_conn_prob,
1149+
exc_inh_conn_prob = exc_inh_conn_prob,
1150+
inh_exc_conn_prob = inh_exc_conn_prob,
1151+
inh_inh_conn_prob = inh_inh_conn_prob,
1152+
ee2_conn_prob = ee2_conn_prob,
1153+
ie2_conn_prob = ie2_conn_prob,
1154+
connections=connections, connections2=connections2,
1155+
fraction_inh_pert=fraction_inh_pert,
1156+
duration = Ttrans+Tblank+Tstim+Tpost,
1157+
dt = dt,
1158+
scale_populations=scale_populations,
1159+
format=format,
1160+
percentage_exc_detailed=percentage_exc_detailed,
1161+
target_dir=target_dir,
1162+
suffix=suffix,
1163+
run_in_simulator=run_in_simulator,
1164+
num_processors=num_processors,
1165+
exc_target_dendrites=exc_target_dendrites,
1166+
inh_target_dendrites=inh_target_dendrites,
1167+
v_clamp=v_clamp,
1168+
simulation_seed=simulation_seed)
1169+
11211170
elif '-perturbation' in sys.argv:
11221171
results = {}
11231172
for fraction_inh_pert in fraction_inh_pert_rng:

NeuroML2/ISN_net.net.nml.h5

1.74 MB
Binary file not shown.
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" 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_v2beta5.xsd" id="HH2_476686112">
2+
<include href="IM.channel.nml"></include>
3+
<include href="Kd.channel.nml"></include>
4+
<include href="Leak.channel.nml"></include>
5+
<include href="Na.channel.nml"></include>
6+
<include href="IL.channel.nml"></include>
7+
<cell id="HH2_476686112">
8+
<notes>Cell model tuned to Allen Institute Cell Types Database, dataset: 476686112
9+
10+
Tuning procedure metadata:
11+
12+
{ 'Prototype': 'HH2',
13+
'analysis_start_time': 0,
14+
'analysis_var': { 'baseline': 0,
15+
'dvdt_threshold': 0,
16+
'peak_delta': 0,
17+
'peak_threshold': 0},
18+
'best_cand_analysis': { 'Pop0/0/RS/v:average_1000_1200': -78.72255328033323,
19+
'Pop0/0/RS/v:average_100_200': -65.77252779422061,
20+
'Pop0/0/RS/v:value_280': -68.64126,
21+
'Pop0/1/RS/v:average_1000_1200': -74.92722059696068,
22+
'Pop0/3/RS/v:max_peak_no': 0,
23+
'Pop0/5/RS/v:mean_spike_frequency': 18.714016798582136,
24+
'Pop0/6/RS/v:average_maximum': 33.17997053571429,
25+
'Pop0/6/RS/v:average_minimum': -56.476617090909095,
26+
'Pop0/6/RS/v:mean_spike_frequency': 55.981353120197049},
27+
'best_cand_analysis_full': { 'Pop0/0/RS/v:average_last_1percent': -65.51271753999998,
28+
'Pop0/0/RS/v:max_peak_no': 0,
29+
'Pop0/0/RS/v:maximum': -65.50625000000001,
30+
'Pop0/0/RS/v:min_peak_no': 0,
31+
'Pop0/0/RS/v:minimum': -80.0,
32+
'Pop0/1/RS/v:average_last_1percent': -65.52312853333338,
33+
'Pop0/1/RS/v:max_peak_no': 0,
34+
'Pop0/1/RS/v:maximum': -65.50625000000001,
35+
'Pop0/1/RS/v:min_peak_no': 0,
36+
'Pop0/1/RS/v:minimum': -80.0,
37+
'Pop0/2/RS/v:average_last_1percent': -65.5411711733338,
38+
'Pop0/2/RS/v:max_peak_no': 0,
39+
'Pop0/2/RS/v:maximum': -65.50625000000001,
40+
'Pop0/2/RS/v:min_peak_no': 0,
41+
'Pop0/2/RS/v:minimum': -80.0,
42+
'Pop0/3/RS/v:average_last_1percent': -65.56953700000005,
43+
'Pop0/3/RS/v:max_peak_no': 0,
44+
'Pop0/3/RS/v:maximum': -65.50625000000001,
45+
'Pop0/3/RS/v:min_peak_no': 0,
46+
'Pop0/3/RS/v:minimum': -80.0,
47+
'Pop0/4/RS/v:average_last_1percent': -66.03096643333338,
48+
'Pop0/4/RS/v:average_maximum': 33.325447500000003,
49+
'Pop0/4/RS/v:average_minimum': -57.043669999999999,
50+
'Pop0/4/RS/v:first_spike_time': 379.65,
51+
'Pop0/4/RS/v:interspike_time_covar': 0.1670056648580161,
52+
'Pop0/4/RS/v:max_interspike_time': 132.25,
53+
'Pop0/4/RS/v:max_peak_no': 8,
54+
'Pop0/4/RS/v:maximum': 33.3695,
55+
'Pop0/4/RS/v:mean_spike_frequency': 8.8301334611600257,
56+
'Pop0/4/RS/v:min_interspike_time': 78.170000000000016,
57+
'Pop0/4/RS/v:min_peak_no': 7,
58+
'Pop0/4/RS/v:minimum': -80.0,
59+
'Pop0/4/RS/v:peak_decay_exponent': -0.00022030125467418802,
60+
'Pop0/4/RS/v:peak_linear_gradient': -7.126646060385446e-05,
61+
'Pop0/4/RS/v:spike_broadening': 1.0010448728115837,
62+
'Pop0/4/RS/v:spike_frequency_adaptation': -0.025333884347158026,
63+
'Pop0/4/RS/v:spike_width_adaptation': -0.012600693365119139,
64+
'Pop0/4/RS/v:trough_decay_exponent': -0.0011866311647981496,
65+
'Pop0/4/RS/v:trough_phase_adaptation': -0.019680621279523806,
66+
'Pop0/5/RS/v:average_last_1percent': -66.27569485333333,
67+
'Pop0/5/RS/v:average_maximum': 33.375539444444449,
68+
'Pop0/5/RS/v:average_minimum': -56.987409411764709,
69+
'Pop0/5/RS/v:first_spike_time': 334.90999999999997,
70+
'Pop0/5/RS/v:interspike_time_covar': 0.12119863770623786,
71+
'Pop0/5/RS/v:max_interspike_time': 59.399999999999864,
72+
'Pop0/5/RS/v:max_peak_no': 18,
73+
'Pop0/5/RS/v:maximum': 33.45196,
74+
'Pop0/5/RS/v:mean_spike_frequency': 18.714016798582136,
75+
'Pop0/5/RS/v:min_interspike_time': 38.500000000000057,
76+
'Pop0/5/RS/v:min_peak_no': 17,
77+
'Pop0/5/RS/v:minimum': -80.0,
78+
'Pop0/5/RS/v:peak_decay_exponent': -0.00054370010564261406,
79+
'Pop0/5/RS/v:peak_linear_gradient': -8.1360928365724255e-05,
80+
'Pop0/5/RS/v:spike_broadening': 1.0015987533193094,
81+
'Pop0/5/RS/v:spike_frequency_adaptation': -0.013109979211912471,
82+
'Pop0/5/RS/v:spike_width_adaptation': -0.0084560923248116135,
83+
'Pop0/5/RS/v:trough_decay_exponent': -0.0016956229962287789,
84+
'Pop0/5/RS/v:trough_phase_adaptation': -0.011215164125842465,
85+
'Pop0/6/RS/v:average_last_1percent': -66.82608678000007,
86+
'Pop0/6/RS/v:average_maximum': 33.17997053571429,
87+
'Pop0/6/RS/v:average_minimum': -56.476617090909095,
88+
'Pop0/6/RS/v:first_spike_time': 294.47,
89+
'Pop0/6/RS/v:interspike_time_covar': 0.074382566219921301,
90+
'Pop0/6/RS/v:max_interspike_time': 22.330000000000155,
91+
'Pop0/6/RS/v:max_peak_no': 56,
92+
'Pop0/6/RS/v:maximum': 33.81358,
93+
'Pop0/6/RS/v:mean_spike_frequency': 55.981353120197049,
94+
'Pop0/6/RS/v:min_interspike_time': 14.67999999999995,
95+
'Pop0/6/RS/v:min_peak_no': 55,
96+
'Pop0/6/RS/v:minimum': -80.0,
97+
'Pop0/6/RS/v:peak_decay_exponent': -0.037356588090453689,
98+
'Pop0/6/RS/v:peak_linear_gradient': 0.00032391988299466554,
99+
'Pop0/6/RS/v:spike_broadening': 1.0059878482058517,
100+
'Pop0/6/RS/v:spike_frequency_adaptation': -0.0035034397217121216,
101+
'Pop0/6/RS/v:spike_width_adaptation': -0.0015939130186086541,
102+
'Pop0/6/RS/v:trough_decay_exponent': 0.0029778843051959029,
103+
'Pop0/6/RS/v:trough_phase_adaptation': -0.0026612009441887366},
104+
'comment': 'Ran 3000 evaluations (pop: 300) in 3492.355981 seconds (58.205933 mins total; 1.164119s per eval)\n\n',
105+
'dataset': 476686112,
106+
'dt': 0.01,
107+
'fitness': 0.0012666782135354326,
108+
'fittest vars': { 'cell:RS/channelDensity:IL_all/mS_per_cm2': 0.19722889609230776,
109+
'cell:RS/channelDensity:IM_all/mS_per_cm2': 0.06103514392076281,
110+
'cell:RS/channelDensity:Kd_all/mS_per_cm2': 24.35535649185249,
111+
'cell:RS/channelDensity:LeakConductance_all/mS_per_cm2': 0.18446807013222372,
112+
'cell:RS/channelDensity:Na_all/mS_per_cm2': 92.33250718877743,
113+
'cell:RS/erev_id:IL_all/mV': 71.70782669942088,
114+
'cell:RS/erev_id:Kd_all/mV+cell:RS/erev_id:IM_all/mV': -87.45598307808358,
115+
'cell:RS/erev_id:LeakConductance_all/mV': -65.26545903974481,
116+
'cell:RS/erev_id:Na_all/mV': 52.66359150572609,
117+
'cell:RS/specificCapacitance:all/uF_per_cm2': 6.927379371444548,
118+
'cell:RS/vShift_channelDensity:Na_all/mV': -2.771218668715758},
119+
'max_evaluations': 3000,
120+
'mutation_rate': 0.9,
121+
'num_elites': 5,
122+
'num_offspring': 90,
123+
'num_selected': 90,
124+
'parameters': [ 'cell:RS/channelDensity:LeakConductance_all/mS_per_cm2',
125+
'cell:RS/erev_id:LeakConductance_all/mV',
126+
'cell:RS/specificCapacitance:all/uF_per_cm2',
127+
'cell:RS/channelDensity:Na_all/mS_per_cm2',
128+
'cell:RS/channelDensity:Kd_all/mS_per_cm2',
129+
'cell:RS/channelDensity:IM_all/mS_per_cm2',
130+
'cell:RS/channelDensity:IL_all/mS_per_cm2',
131+
'cell:RS/erev_id:Na_all/mV',
132+
'cell:RS/erev_id:Kd_all/mV+cell:RS/erev_id:IM_all/mV',
133+
'cell:RS/erev_id:IL_all/mV',
134+
'cell:RS/vShift_channelDensity:Na_all/mV'],
135+
'population_size': 300,
136+
'reference': 'HH2_2stage_STAGE2',
137+
'run_directory': 'NT_HH2_2stage_STAGE2_Sun_Mar__4_18.05.41_2018',
138+
'seed': 1234.0,
139+
'sim_time': 1500,
140+
'simulator': 'jNeuroML_NEURON',
141+
'target_data': { 'Pop0/0/RS/v:average_1000_1200': -80.59196871776581,
142+
'Pop0/0/RS/v:average_100_200': -64.8002318519633,
143+
'Pop0/0/RS/v:value_280': -72.0625,
144+
'Pop0/1/RS/v:average_1000_1200': -76.13684743423462,
145+
'Pop0/3/RS/v:max_peak_no': 0,
146+
'Pop0/5/RS/v:mean_spike_frequency': 17.100959791368286,
147+
'Pop0/6/RS/v:average_maximum': 36.453125,
148+
'Pop0/6/RS/v:average_minimum': -54.939953,
149+
'Pop0/6/RS/v:mean_spike_frequency': 52.709364697127846},
150+
'time': 3492.355980873108,
151+
'weights': { 'Pop0/0/RS/v:average_1000_1200': 10,
152+
'Pop0/0/RS/v:average_100_200': 10,
153+
'Pop0/0/RS/v:value_280': 10,
154+
'Pop0/1/RS/v:average_1000_1200': 10,
155+
'Pop0/3/RS/v:max_peak_no': 1,
156+
'Pop0/5/RS/v:mean_spike_frequency': 1,
157+
'Pop0/6/RS/v:average_maximum': 1,
158+
'Pop0/6/RS/v:average_minimum': 1,
159+
'Pop0/6/RS/v:mean_spike_frequency': 1}}
160+
</notes>
161+
<morphology id="morphology_HH2">
162+
<segment id="0" name="Soma">
163+
<proximal x="0.000000e+00" y="0.000000e+00" z="0.000000e+00" diameter="30.0"/>
164+
<distal x="0.000000e+00" y="0.000000e+00" z="0.000000e+00" diameter="30.0"/>
165+
</segment>
166+
<segmentGroup neuroLexId="sao864921383" id="Soma">
167+
<member segment="0"/>
168+
</segmentGroup>
169+
<segmentGroup id="all">
170+
<include segmentGroup="Soma"/>
171+
</segmentGroup>
172+
<segmentGroup neuroLexId="GO:0043025" id="soma_group">
173+
<include segmentGroup="Soma"/>
174+
</segmentGroup>
175+
</morphology>
176+
<biophysicalProperties id="biophys">
177+
<membraneProperties>
178+
<channelDensity id="LeakConductance_all" ionChannel="LeakConductance" condDensity="0.184468070132 mS_per_cm2" erev="-65.2654590397 mV" ion="non_specific"/>
179+
<channelDensity id="Kd_all" ionChannel="Kd" condDensity="24.3553564919 mS_per_cm2" erev="-87.4559830781 mV" ion="k"/>
180+
<channelDensity id="IM_all" ionChannel="IM" condDensity="0.0610351439208 mS_per_cm2" erev="-87.4559830781 mV" ion="k"/>
181+
<channelDensity id="IL_all" ionChannel="IL" condDensity="0.197228896092 mS_per_cm2" erev="71.7078266994 mV" ion="ca"/>
182+
<channelDensityVShift id="Na_all" ionChannel="Na" condDensity="92.3325071888 mS_per_cm2" erev="52.6635915057 mV" ion="na" vShift="-2.77121866872 mV"/>
183+
<spikeThresh value="0 mV"/>
184+
<specificCapacitance value="6.92737937144 uF_per_cm2"/>
185+
<initMembPotential value="-60.0 mV"/>
186+
</membraneProperties>
187+
<intracellularProperties>
188+
<resistivity value="100 ohm_cm"/>
189+
</intracellularProperties>
190+
</biophysicalProperties>
191+
</cell>
192+
</neuroml>

0 commit comments

Comments
 (0)