Skip to content

Commit c6650e2

Browse files
committed
reorganise
1 parent f50ac5a commit c6650e2

File tree

164 files changed

+35467
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+35467
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd"
5+
id = "NeuroML2_file_exported_from_NEURON">
6+
7+
<notes> NeuroML 2 file generated from ModelView by: NEURON -- VERSION 8.2.6+ HEAD (078a34a9d+) 2024-07-24
8+
Authors: Michael Hines, Sushil Kambampati and Padraig Gleeson,
9+
Yale University and UCL
10+
</notes>
11+
12+
<cell id="HTC_reduced_cell_0_0">
13+
<notes>Cell: HTC_reduced_cell_0_0 exported from NEURON ModelView</notes>
14+
<morphology id="morphology">
15+
<!-- Section: HTC_reduced_cell[0].soma (segmentGroup: soma) which has 2 3D points, so 1 segment(s)-->
16+
<segment id="0" name = "Seg0_soma">
17+
<proximal x="0" y="0" z="0" diameter="96"/>
18+
<distal x="0" y="96" z="0" diameter="96"/>
19+
</segment>
20+
21+
<!-- Section: HTC_reduced_cell[0].soma (segmentGroup: soma) which has 2 3D points, so 1 segment(s)-->
22+
23+
<segmentGroup id = "soma" neuroLexId="sao864921383">
24+
<notes>This group contains an unbranched set of segments, and all of the segmentGroups marked with
25+
neuroLexId = sao864921383 form a non-overlapping set of all of the segments.
26+
These segmentGroups correspond to the 'cables' of NeuroML v1.8.1, and map to/from NEURON sections.</notes>
27+
<member segment = "0"/>
28+
</segmentGroup>
29+
30+
<segmentGroup id="all"> <!-- Replacing subset name ModelViewParmSubset_0 with all, as it contains all sections -->
31+
<include segmentGroup = "soma"/>
32+
</segmentGroup>
33+
34+
<segmentGroup id="OneSecGrp_SectionRef_1"> <!-- Creating a group containing a single section: soma... -->
35+
<include segmentGroup = "soma"/>
36+
</segmentGroup>
37+
38+
</morphology>
39+
40+
<biophysicalProperties id="biophys">
41+
<membraneProperties>
42+
43+
<channelDensityNernst id="cal_all" ionChannel="cal" condDensity="0.001 S_per_cm2" segmentGroup="all" ion="ca"/>
44+
45+
<channelDensity ionChannel="ia" id="ia_all" segmentGroup="all" ion="k" erev="-95.0 mV" condDensity="0.007 S_per_cm2"/>
46+
47+
TODO: <channelDensity ionChannel="ittc" id="ittc_all" segmentGroup="all" ion="ca" erev="-104 mV" condDensity="0.002 S_per_cm2"/>
48+
TODO: htc
49+
TODO: hh2ad
50+
51+
<channelDensity ionChannel="kl" id="kl_all" segmentGroup="all" ion="k" erev="-95.0 mV" condDensity="2.3e-05 S_per_cm2"/>
52+
<channelDensity ionChannel="pas" id="pas_all" segmentGroup="all" ion="non_specific" erev="-50 mV" condDensity="1.8e-05 S_per_cm2"/>
53+
54+
55+
56+
<spikeThresh value="5mV"/>
57+
<specificCapacitance segmentGroup="all" value="1.0 uF_per_cm2"/>
58+
<initMembPotential segmentGroup="all" value="-70 mV"/>
59+
</membraneProperties>
60+
<intracellularProperties>
61+
<species segmentGroup="all" ion="ca" initialExtConcentration="2.0E-6 mol_per_cm3" concentrationModel="cadad_HTC_soma" id="ca" initialConcentration="5.0E-11 mol_per_cm3"/>
62+
<resistivity value="100 ohm_cm"/>
63+
</intracellularProperties>
64+
</biophysicalProperties>
65+
66+
</cell>
67+
</neuroml>
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"conds": {
3+
"cellModel": "HH_reduced",
4+
"cellType": "HTC",
5+
"ynorm": [
6+
1.2,
7+
1.4
8+
]
9+
},
10+
"globals": {
11+
"erev_kl": -95.0,
12+
"q10m_ittc": 3.55,
13+
"v_init": -70.0
14+
},
15+
"secLists": {},
16+
"secs": {
17+
"soma": {
18+
"geom": {
19+
"L": 96.0,
20+
"Ra": 100.0,
21+
"cm": 1.0,
22+
"diam": 96.0,
23+
"nseg": 1,
24+
"pt3d": [
25+
[
26+
0,
27+
0,
28+
0,
29+
96.0
30+
],
31+
[
32+
0,
33+
96.0,
34+
0,
35+
96.0
36+
]
37+
]
38+
},
39+
"ions": {
40+
"ca": {
41+
"e": 132.4579341637009,
42+
"i": 5e-05,
43+
"o": 2.0
44+
},
45+
"k": {
46+
"e": -95.0,
47+
"i": 54.4,
48+
"o": 2.5
49+
},
50+
"na": {
51+
"e": 50.0,
52+
"i": 10.0,
53+
"o": 140.0
54+
}
55+
},
56+
"mechs": {
57+
"cadad": {
58+
"cainf": 0.00024,
59+
"depth": 1.0,
60+
"kd": 0.0,
61+
"kt": 0.0,
62+
"taur": 5.0
63+
},
64+
"cal": {
65+
"gcalbar": 0.001
66+
},
67+
"hh2ad": {
68+
"gkbar": 0.012,
69+
"gnabar": 0.02,
70+
"vtraub": -63.0
71+
},
72+
"htc": {
73+
"Pc": 0.01,
74+
"cac": 0.002,
75+
"exptemp": 36.0,
76+
"ginc": 2.0,
77+
"gmax": 1e-06,
78+
"k2": 0.0004,
79+
"k4": 0.001,
80+
"nca": 4.0,
81+
"nexp": 1.0,
82+
"shift": 0.0,
83+
"taum": 20.0
84+
},
85+
"ia": {
86+
"exptemp": 23.5,
87+
"gmax": 0.007,
88+
"q10": 3.0
89+
},
90+
"ittc": {
91+
"gmax": 0.002,
92+
"shift": 3
93+
},
94+
"kl": {
95+
"gmax": 2.3e-05
96+
},
97+
"pas": {
98+
"e": -50,
99+
"g": 1.8e-05
100+
}
101+
},
102+
"topol": {},
103+
"vinit": -70.0,
104+
"weightNorm": [
105+
0.0020910235715425945
106+
]
107+
}
108+
}
109+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
from netpyne import specs, sim
2+
import pprint
3+
4+
netParams = specs.NetParams()
5+
simConfig = specs.SimConfig()
6+
7+
8+
netParams.loadCellParamsRule(label='IT2_HH_reduced', fileName='IT2_reduced_cellParams.json')
9+
pprint.pprint(netParams.cellParams['IT2_HH_reduced'])
10+
11+
12+
netParams.popParams['IT2'] = {'cellType': 'IT2_HH_reduced', 'numCells': 1}
13+
14+
netParams.stimSourceParams['Input'] = {'type': 'IClamp', 'dur': 1600, 'del': 200, 'amp': 0.3}
15+
netParams.stimTargetParams['Input->IT2'] = {'source': 'Input', 'sec': 'soma', 'loc': 0.5, 'conds': {'cellType': 'IT2_HH_reduced'}}
16+
17+
# Simulation options
18+
simConfig = specs.SimConfig() # object of class SimConfig to store simulation configuration
19+
20+
simConfig.recordCells = ['all']
21+
simConfig.hParams['celsius'] = 34
22+
simConfig.duration = 2000 # Duration of the simulation, in ms
23+
simConfig.dt = 0.01 # Internal integration timestep to use
24+
simConfig.verbose = False # Show detailed messages
25+
simConfig.recordTraces = {'V_soma':{'sec':'soma','loc':0.5,'var':'v'}} # Dict with traces to record
26+
simConfig.recordStep = 1 # Step size in ms to save data (eg. V traces, LFP, etc)
27+
simConfig.filename = 'IT2_reduced_json' # Set file output name
28+
simConfig.savePickle = False # Save params, network and sim output to pickle file
29+
simConfig.saveDataInclude = ['simData']
30+
simConfig.saveJson = True
31+
simConfig.analysis['plotTraces'] = {'include': [0], 'saveFig': True} # Plot recorded traces for this list of cells
32+
simConfig.analysis['plotRaster'] = {'saveFig': True} # Plot a raster
33+
34+
# Create network and run simulation
35+
sim.createSimulateAnalyze(netParams = netParams, simConfig = simConfig)
36+
37+
#import pylab; pylab.show() # this line is only necessary in certain systems where figures appear empty

0 commit comments

Comments
 (0)