meanap.pipeline.sttc

Spike Time Tiling Coefficient (STTC), port of get_sttc.m / sttc_m.m.

Reference: Cutts & Eglen (2014), “Detecting Pairwise Correlations in Spike Trains: An Objective Comparison of Methods and Application to the Study of Retinal Waves”, https://www.ncbi.nlm.nih.gov/pubmed/25339742

Functions

get_sttc(spike_times_dict, n_channels, ...)

Pairwise STTC adjacency matrix, port of get_sttc.m.

sttc_pair(spike_times_1, spike_times_2, dt, ...)

Spike time tiling coefficient between two spike trains (in seconds).

meanap.pipeline.sttc.get_sttc(spike_times_dict, n_channels, lag_ms, duration_s)[source]

Pairwise STTC adjacency matrix, port of get_sttc.m.

Negative values and NaNs (including the diagonal, which is never computed) are zeroed, matching MATLAB’s adjM(adjM<0)=0; adjM(isnan(adjM))=0;.

Parameters:
  • spike_times_dict (dict[int, ndarray])

  • n_channels (int)

  • lag_ms (float)

  • duration_s (float)

Return type:

ndarray

meanap.pipeline.sttc.sttc_pair(spike_times_1, spike_times_2, dt, t_start, t_end)[source]

Spike time tiling coefficient between two spike trains (in seconds).

Parameters:
  • spike_times_1 (ndarray)

  • spike_times_2 (ndarray)

  • dt (float)

  • t_start (float)

  • t_end (float)

Return type:

float