Skip to content

Commit fd61bb6

Browse files
committed
Explicitly add (spikeinterface parameter) to KS4 param description
1 parent 8fbf100 commit fd61bb6

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

src/spikeinterface/sorters/external/kilosort4.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ class Kilosort4Sorter(BaseSorter):
5757
"cluster_pcs": 64,
5858
"x_centers": None,
5959
"duplicate_spike_ms": 0.25,
60-
"do_correction": True,
61-
"keep_good_only": False,
62-
"save_extra_kwargs": False,
63-
"skip_kilosort_preprocessing": False,
6460
"scaleproc": None,
6561
"save_preprocessed_copy": False,
6662
"torch_device": "auto",
6763
"bad_channels": None,
6864
"clear_cache": False,
65+
"save_extra_vars": False,
66+
"do_correction": True,
67+
"keep_good_only": False,
68+
"skip_kilosort_preprocessing": False,
6969
"use_binary_file": None,
7070
"delete_recording_dat": True,
7171
}
@@ -105,18 +105,19 @@ class Kilosort4Sorter(BaseSorter):
105105
"cluster_pcs": "Maximum number of spatiotemporal PC features used for clustering. Default value: 64.",
106106
"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.",
107107
"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",
111109
"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",
113111
"torch_device": "Select the torch device auto/cuda/cpu",
114112
"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.",
115113
"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)",
116117
"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. "
117118
"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)",
120121
}
121122

122123
sorter_description = """Kilosort4 is a Python package for spike sorting on GPUs with template matching.
@@ -264,7 +265,7 @@ def _run_from_folder(cls, sorter_output_folder, params, verbose):
264265

265266
do_CAR = params["do_CAR"]
266267
invert_sign = params["invert_sign"]
267-
save_extra_vars = params["save_extra_kwargs"]
268+
save_extra_vars = params["save_extra_vars"]
268269
save_preprocessed_copy = params["save_preprocessed_copy"]
269270
progress_bar = None
270271
settings_ks = {k: v for k, v in params.items() if k in DEFAULT_SETTINGS}

0 commit comments

Comments
 (0)