netpyne.conversion.sonataImport

Module with functions to import from and export to SONATA format

Functions:

load_csv_props(info_file)

Load a generic csv file as used in Sonata

ascii_encode_dict(data)

load_json(filename)

fix_axon_peri(hobj)

Replace reconstructed axon with a stub :param hobj: hoc object

fix_axon_peri_v2(hobj)

Replace reconstructed axon with a stub (keep order); BBP version :param hobj: hoc object

fix_sec_nseg(secs, dL)

Set nseg of sections based on dL param: section.nseg = 1 + 2 * int(section.L / (2*dL)) :param secs: netpyne dictionary with all sections :param dL: dL from config file

swap_soma_xy(secs)

Swap soma x and y coords so cylinder is vertical instead of horizontal

Classes:

EmptyCell()

SONATAImporter(**parameters)

netpyne.conversion.sonataImport.load_csv_props(info_file)[source]

Load a generic csv file as used in Sonata

netpyne.conversion.sonataImport.ascii_encode_dict(data)[source]
netpyne.conversion.sonataImport.load_json(filename)[source]
class netpyne.conversion.sonataImport.EmptyCell[source]

Bases: object

netpyne.conversion.sonataImport.fix_axon_peri(hobj)[source]

Replace reconstructed axon with a stub :param hobj: hoc object

netpyne.conversion.sonataImport.fix_axon_peri_v2(hobj)[source]

Replace reconstructed axon with a stub (keep order); BBP version :param hobj: hoc object

netpyne.conversion.sonataImport.fix_sec_nseg(secs, dL)[source]

Set nseg of sections based on dL param: section.nseg = 1 + 2 * int(section.L / (2*dL)) :param secs: netpyne dictionary with all sections :param dL: dL from config file

netpyne.conversion.sonataImport.swap_soma_xy(secs)[source]

Swap soma x and y coords so cylinder is vertical instead of horizontal

class netpyne.conversion.sonataImport.SONATAImporter(**parameters)[source]

Bases: object

Methods:

importNet(configFile[, replaceAxon, ...])

createSimulationConfig()

createPops()

createCells()

createConns()

SONATA method - works but same results as NeuroMLlite

createNetStims()

createIClamps()

setCellRuleDynamicParamsFromNeuroml(...)

setCellRuleDynamicParamsFromNeuroml_old(...)

setCellRuleDynamicParamsFromJson(...)

parse_group(g)

parse_dataset(d)

subs(path)

Search the strings in a config file for a substitutable value, e.g. "morphologies_dir": "$COMPONENT_DIR/morphologies",.

importNet(configFile, replaceAxon=True, setdLNseg=True, swapSomaXY=True)[source]
createSimulationConfig()[source]
createPops()[source]
createCells()[source]
createConns()[source]

SONATA method - works but same results as NeuroMLlite

createNetStims()[source]
createIClamps()[source]
setCellRuleDynamicParamsFromNeuroml(nml_params, cellRule)[source]
setCellRuleDynamicParamsFromNeuroml_old(cell, cellRule)[source]
setCellRuleDynamicParamsFromJson(cell_dynamic_params, cellRule)[source]
parse_group(g)[source]
parse_dataset(d)[source]
subs(path)[source]

Search the strings in a config file for a substitutable value, e.g. “morphologies_dir”: “$COMPONENT_DIR/morphologies”,