metric_utils.py
compute_isi_violation_fractions(waveform_extractor, this_unit_id, isi_threshold_ms=2.0, min_isi_ms=0.0)
¶
Computes the fraction of interspike interval violations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
waveform_extractor |
WaveformExtractor
|
The extractor object for the recording. |
required |
Source code in src/spyglass/spikesorting/v1/metric_utils.py
get_peak_offset(waveform_extractor, peak_sign, **metric_params)
¶
Computes the shift of the waveform peak from center of window.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
waveform_extractor |
WaveformExtractor
|
The extractor object for the recording. |
required |
peak_sign |
str
|
The sign of the peak to compute. ('neg', 'pos', 'both') |
required |
Source code in src/spyglass/spikesorting/v1/metric_utils.py
get_peak_channel(waveform_extractor, peak_sign, **metric_params)
¶
Computes the electrode_id of the channel with the extremum peak for each unit.
Source code in src/spyglass/spikesorting/v1/metric_utils.py
get_num_spikes(waveform_extractor, this_unit_id)
¶
Computes the number of spikes for each unit.