single_cell_parseranalyzesynanalysis

synanalysis

Compute synapse distances and activation times.

This module provides functions to compute the distances of synapses to the soma and to save the activation times and soma distances of synapses to a .csv file.

See also

The Synapse activation file format.

Functions

compute_synapse_distances_times(fname, cell, t, synTypes)

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

synapse_activation_times(tVec, cntVec)

Parse the spike times from a list of spike counts and corresponding time points.

compute_syn_distances_2Dprojected(cell, synType, label)

Computes the XY-projected distances (to soma) of all synapses on dendrite.

get_dist(x1, x2)

Compute the Euclidean distance between two points.

compute_distance_to_soma(sec, x, cell, consider_gap_to_soma)

Computes the distance from a point to the soma.

compute_syn_distance(cell, syn, consider_gap_to_soma)

Computes the distance from a single synapse to the soma.

compute_syn_distances(cell, synType, label, consider_gap_to_soma)

Computes distances (to soma) of all synapses on the dendrite.