-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:SpikeInterface/spikeinterface into …
…waveform_tools_speedup
- Loading branch information
Showing
53 changed files
with
2,564 additions
and
2,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Synchrony Metrics (:code:`synchrony`) | ||
===================================== | ||
|
||
Calculation | ||
----------- | ||
This function is providing a metric for the presence of synchronous spiking events across multiple spike trains. | ||
|
||
The complexity is used to characterize synchronous events within the same spike train and across different spike | ||
trains. This way synchronous events can be found both in multi-unit and single-unit spike trains. | ||
Complexity is calculated by counting the number of spikes (i.e. non-empty bins) that occur at the same sample index, | ||
within and across spike trains. | ||
|
||
Synchrony metrics can be computed for different synchrony sizes (>1), defining the number of simultaneous spikes to count. | ||
|
||
|
||
|
||
Expectation and use | ||
------------------- | ||
|
||
A larger value indicates a higher synchrony of the respective spike train with the other spike trains. | ||
Larger values, especially for larger sizes, indicate a higher probability of noisy spikes in spike trains. | ||
|
||
Example code | ||
------------ | ||
|
||
.. code-block:: python | ||
import spikeinterface.qualitymetrics as qm | ||
# Make recording, sorting and wvf_extractor object for your data. | ||
synchrony = qm.compute_synchrony_metrics(wvf_extractor, synchrony_sizes=(2, 4, 8)) | ||
# synchrony is a tuple of dicts with the synchrony metrics for each unit | ||
Links to original implementations | ||
--------------------------------- | ||
|
||
The SpikeInterface implementation is a partial port of the low-level complexity functions from `Elephant - Electrophysiology Analysis Toolkit <https://github.com/NeuralEnsemble/elephant/blob/master/elephant/spike_train_synchrony.py#L245>`_ | ||
|
||
References | ||
---------- | ||
|
||
.. automodule:: spikeinterface.toolkit.qualitymetrics.misc_metrics | ||
|
||
.. autofunction:: compute_synchrony_metrics | ||
|
||
Literature | ||
---------- | ||
|
||
Based on concepts described in Gruen_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.