Correlative measures on spike trains

Spike train correlation

This modules provides functions to calculate correlations between spike trains.

covariance(binned_spiketrain[, binary, fast])

Calculate the NxN matrix of pairwise covariances between all combinations of N binned spike trains.

correlation_coefficient(binned_spiketrain[, ...])

Calculate the NxN matrix of pairwise Pearson's correlation coefficients between all combinations of N binned spike trains.

cross_correlation_histogram(...[, window, ...])

Computes the cross-correlation histogram (CCH) between two binned spike trains binned_spiketrain_i and binned_spiketrain_j.

spike_time_tiling_coefficient(spiketrain_i, ...)

Calculates the Spike Time Tiling Coefficient (STTC) as described in (Cutts and Eglen, 2014) following their implementation in C.

spike_train_timescale(binned_spiketrain, max_tau)

Calculates the auto-correlation time of a binned spike train; uses the definition of the auto-correlation time proposed in (Wieland et al., 2015) (Eq.

Spike train dissimilarity

In neuroscience one often wants to evaluate, how similar or dissimilar pairs or even large sets of spiketrains are. For this purpose various different spike train dissimilarity measures were introduced in the literature. They differ, e.g., by the properties of having the mathematical properties of a metric or by being time-scale dependent or not. Well known representatives of spike train dissimilarity measures are the Victor-Purpura distance and the Van Rossum distance implemented in this module, which both are metrics in the mathematical sense and time-scale dependent.

victor_purpura_distance(spiketrains[, ...])

Calculates the Victor-Purpura's (VP) distance.

van_rossum_distance(spiketrains[, ...])

Calculates the van Rossum distance (Rossum, 2001), defined as Euclidean distance of the spike trains convolved with a causal decaying exponential smoothing filter.

Spike train synchrony

Functions to measure the synchrony of several spike trains.

Synchrony Measures

spike_contrast(spiketrains[, t_start, ...])

Calculates the synchrony of spike trains, according to (Ciba et al., 2018).

Synchrotool(spiketrains, sampling_rate[, ...])

Tool class to find, remove and/or annotate the presence of synchronous spiking events across multiple spike trains.

References

[Eggermont, 2010] (1,2)

Jos J Eggermont. Pair-correlation in the time and frequency domain. In Analysis of parallel spike trains, volume 7, pages 77–102. Springer, 2010. doi:10.1007/978-1-4419-5675-0_5.

[Cutts, 2014] (1,2,3)

Catherine S Cutts and Stephen J Eglen. Detecting pairwise correlations in spike trains: an objective comparison of methods and application to the study of retinal waves. Journal of Neuroscience, 34(43):14288–14303, 2014. doi:10.1523/JNEUROSCI.2767-14.2014.

[Wieland, 2015] (1,2,3)

Stefan Wieland, Davide Bernardi, Tilo Schwalger, and Benjamin Lindner. Slow fluctuations in recurrent networks of spiking neurons. Physical Review E, 92(4):040901, 2015.

[Rossum, 2001] (1,2)

MCW van Rossum. A novel spike distance. Neural computation, 13(4):751–763, 2001.

[Ciba, 2018] (1,2,3)

M. Ciba, T. Isomura, Y. Jimbo, A. Bahmer, and C. Thielemann. Spike-contrast: a novel time scale independent and multivariate measure of spike train synchrony. J. Neurosci. Meth., 293:136–143, 2018. doi:10.1016/j.jneumeth.2017.09.008.