single_cell_parseranalyzemembrane_potential_analysiscompute_mean_psp_amplitude

compute_mean_psp_amplitude

single_cell_parser.analyze.membrane_potential_analysis.compute_mean_psp_amplitude(vTraces, tStim, dt, width=35.0, t_delay=15.0)

Compute the mean amplitude of all PSPs across multiple voltage traces.

The post-synaptic potential (PSP) amplitude is the maximum membrane voltage deflection between tStim + t_delay and tStim + delay + width.

Parameters:
  • vTraces (list) – List of voltage traces.

  • tStim (float) – Timepoint of stimulation (in ms).

  • dt (float) – Time step of the voltage traces.

  • width (float) – Width of the PSP window. Default is \(35.0 ms\).

  • t_delay (float) – Delay of the PSP window (i.e. time between the stimulus and the PSP onset). Default is \(15.0 ms\).

Returns:

A tuple containing the delay and the mean amplitude of the PSPs.

Return type:

tuple