single_cell_parseranalyzesynanalysiscompute_synapse_distances_times

compute_synapse_distances_times

single_cell_parser.analyze.synanalysis.compute_synapse_distances_times(fname, cell, t=None, synTypes=None)

Save a single_cell_parser.cell.Cell object’s synapse distances and activation times to a .csv file.

The following information is saved:

  • synapse type: to which presynaptic cell type this synapse belongs to.

  • synapse ID: unique identifier for the synapse.

  • soma distance: distance from the synapse to the soma.

  • section ID: ID of the section of the postsynaptic cell that contains this synapse.

  • section pt ID: ID of the point in the section that contains this synapse.

  • dendrite label: label of the dendrite that contains this synapse.

  • activation times: times at which the synapse was active (ms).

Parameters:
  • fname (str) – The output file name as a ful path, including the file extension. Preferably unique (see e.g. _evoked_activity() for the generation of unique syapse activation filenames)

  • cell (single_cell_parser.cell.Cell) – Cell object

  • synTypes (list) – list of synapse types. Default: the keys of the cell.synapses dictionary

Returns:

None. Writes out the synapse .csv file to fname.

See also

The Synapse activation file format.