write_functional_realization_map

single_cell_parser.writer.write_functional_realization_map(fname=None, functionalMap=None, anatomicalID=None)

Write out a .con file.

Writes list of all functional connections coded by tuples (cell type, presynaptic cell index, synapse index). Only valid for anatomical synapse realization given by anatomicalID

See also:

Parameters:
fname : str

The name of the file to write to.

functionalMap : list

A list of tuples, each containing a cell type, a presynaptic cell ID, and a synapse ID.

anatomicalID : str

The ID of the anatomical synapse realization.

Example

>>> functionalMap = [('cell_type_1', 0, 0), ('cell_type_2', 0, 1)]
>>> write_functional_realization_map('functional_realization.con', functionalMap, 'syn_file.syn')