You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/spikeinterface/sorters/external/kilosort4.py
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -57,15 +57,15 @@ class Kilosort4Sorter(BaseSorter):
57
57
"cluster_pcs": 64,
58
58
"x_centers": None,
59
59
"duplicate_spike_ms": 0.25,
60
-
"do_correction": True,
61
-
"keep_good_only": False,
62
-
"save_extra_kwargs": False,
63
-
"skip_kilosort_preprocessing": False,
64
60
"scaleproc": None,
65
61
"save_preprocessed_copy": False,
66
62
"torch_device": "auto",
67
63
"bad_channels": None,
68
64
"clear_cache": False,
65
+
"save_extra_vars": False,
66
+
"do_correction": True,
67
+
"keep_good_only": False,
68
+
"skip_kilosort_preprocessing": False,
69
69
"use_binary_file": None,
70
70
"delete_recording_dat": True,
71
71
}
@@ -105,18 +105,19 @@ class Kilosort4Sorter(BaseSorter):
105
105
"cluster_pcs": "Maximum number of spatiotemporal PC features used for clustering. Default value: 64.",
106
106
"x_centers": "Number of x-positions to use when determining center points for template groupings. If None, this will be determined automatically by finding peaks in channel density. For 2D array type probes, we recommend specifying this so that centers are placed every few hundred microns.",
107
107
"duplicate_spike_bins": "Number of bins for which subsequent spikes from the same cluster are assumed to be artifacts. A value of 0 disables this step. Default value: 7.",
108
-
"do_correction": "If True, drift correction is performed",
109
-
"save_extra_kwargs": "If True, additional kwargs are saved to the output",
110
-
"skip_kilosort_preprocessing": "Can optionally skip the internal kilosort preprocessing",
108
+
"save_extra_vars": "If True, additional kwargs are saved to the output",
111
109
"scaleproc": "int16 scaling of whitened data, if None set to 200.",
112
-
"save_preprocessed_copy": "save a pre-processed copy of the data (including drift correction) to temp_wh.dat in the results directory and format Phy output to use that copy of the data",
110
+
"save_preprocessed_copy": "Save a pre-processed copy of the data (including drift correction) to temp_wh.dat in the results directory and format Phy output to use that copy of the data",
113
111
"torch_device": "Select the torch device auto/cuda/cpu",
114
112
"bad_channels": "A list of channel indices (rows in the binary file) that should not be included in sorting. Listing channels here is equivalent to excluding them from the probe dictionary.",
115
113
"clear_cache": "If True, force pytorch to free up memory reserved for its cache in between memory-intensive operations. Note that setting `clear_cache=True` is NOT recommended unless you encounter GPU out-of-memory errors, since this can result in slower sorting.",
114
+
"do_correction": "If True, drift correction is performed. Default is True. (spikeinterface parameter)",
115
+
"skip_kilosort_preprocessing": "Can optionally skip the internal kilosort preprocessing. (spikeinterface parameter)",
116
+
"keep_good_only": "If True, only the units labeled as 'good' by Kilosort are returned in the output. (spikeinterface parameter)",
116
117
"use_binary_file": "If True then Kilosort is run using a binary file. In this case, if the input recording is not binary compatible, it is written to a binary file in the output folder. "
117
118
"If False then Kilosort is run on the recording object directly using the RecordingExtractorAsArray object. If None, then if the recording is binary compatible, the sorter will use the binary file, otherwise the RecordingExtractorAsArray. "
118
-
"Default is None.",
119
-
"delete_recording_dat": "If True, if a temporary binary file is created, it is deleted after the sorting is done. Default is True.",
119
+
"Default is None. (spikeinterface parameter)",
120
+
"delete_recording_dat": "If True, if a temporary binary file is created, it is deleted after the sorting is done. Default is True. (spikeinterface parameter)",
120
121
}
121
122
122
123
sorter_description="""Kilosort4 is a Python package for spike sorting on GPUs with template matching.
0 commit comments