compute_syn_distance

single_cell_parser.analyze.synanalysis.compute_syn_distance(cell, syn, consider_gap_to_soma=False)

Computes the distance from a single synapse to the soma.

Used in compute_syn_distances().

Parameters:
cell : single_cell_parser.cell.Cell

cell object with attached synapses.

syn : single_cell_parser.synapse.Synapse

synapse object.

consider_gap_to_soma : bool, optional

Account for the fact that dendrites don’t actually touch the soma, and add the distance between the last point of the parent section and the first point of the current section to the distance. Default: False