spikesorting_artifact.py
ArtifactDetectionParameters
¶
Bases: SpyglassMixin
, Manual
Parameters for detecting artifact times within a sort group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
artifact_params_name
|
str
|
Name of the artifact detection parameters. |
required |
artifact_params
|
dict
|
Dictionary of parameters for artifact detection, including: zscore_thresh : float or None Stdev threshold for exclusion, should be >=0 amplitude_thresh : float or None Amplitude threshold for exclusion, should be >=0 proportion_above_thresh : float Proportion of electrodes that need to have threshold crossings, should be >0 and <=1 removal_window_ms : float Width of the window in milliseconds to mask out per artifact |
required |
Source code in src/spyglass/spikesorting/v0/spikesorting_artifact.py
insert_default()
¶
Insert the default artifact parameters.
Source code in src/spyglass/spikesorting/v0/spikesorting_artifact.py
ArtifactDetection
¶
Bases: SpyglassMixin
, Computed
Source code in src/spyglass/spikesorting/v0/spikesorting_artifact.py
make(key)
¶
Populate the ArtifactDetection table.
If custom_artifact_detection is set in selection table, do nothing.
Fetches... - Parameters from ArtifactDetectionParameters - Recording from SpikeSortingRecording (loads with spikeinterface) Uses module-level function _get_artifact_times to detect artifacts.