Amplitude cutoff (amplitude_cutoff)¶
Calculation¶
A histogram of spike amplitudes is created and deviations from the expected symmetrical distribution are identified.
Expectation and use¶
Deviations from the expected Gaussian distributions are used to estimate the number of spikes missing from the unit. This yields an estimate of the number of spikes missing from the unit (false negative rate). A smaller value for this metric is preferred, as this indicates few false negatives. The distributions can be computed on chunks for larger recording, as drift can impact the spike amplitudes (and thus not give a Gaussian distribution anymore).
Example code¶
import spikeinterface.qualitymetrics as qm
# Make recording, sorting and wvf_extractor objects for your data.
fraction_missing = qm.compute_amplitudes_cutoff(wvf_extractor, peak_sign="neg")
# fraction_missing is a dict containing the units' ID as keys,
# and their estimated fraction of missing spikes as values.
Reference¶
Various cluster quality metrics.
Some of then come from or the old implementation: * https://github.com/AllenInstitute/ecephys_spike_sorting/tree/master/ecephys_spike_sorting/modules/quality_metrics * https://github.com/SpikeInterface/spikemetrics
Implementations here have been refactored to support the multi-segment API of spikeinterface.
Links to source code¶
From SpikeInterface
From the AllenInstitute
From the AllenSDK
Literature¶
Introduced by [Hill].
Citations¶
- Hill
Hill, Daniel N., Samar B. Mehta, and David Kleinfeld. “Quality Metrics to Accompany Spike Sorting of Extracellular Signals.” The Journal of neuroscience 31.24 (2011): 8699–8705. Web.