single_cell_parserwriterwrite_functional_realization_map

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')