Kilosort4 has two params for the vertical and horizontal spacing between contacts:
'dmin': {
'gui_name': 'dmin', 'type': float, 'min': 0, 'max': np.inf,
'exclude': [0], 'default': None, 'step': 'spike detection',
'description':
"""
Vertical spacing of template centers used for spike detection,
in microns. Determined automatically by default.
"""
},
'dminx': {
'gui_name': 'dminx', 'type': float, 'min': 0, 'max': np.inf,
'exclude': [0], 'default': 32, 'step': 'spike detection',
'description':
"""
Horizontal spacing of template centers used for spike detection,
in microns. The default 32um should work well for Neuropixels 1 and
Neuropixels 2 probes. For other probe geometries, try setting this
to the median lateral distance between contacts to start.
"""
},
Does SpikeInterface provide these to kilosort when calling run_sorter()? Should it?
EDIT: It seems dmin will be computed as median(diff(unique(y_coords))) anyway while they intentionally disabled automatic calculation of dminx. I guess there is a reason for that so maybe it's ok that spikeinterface does not send dminx = median(diff(unique(x_coords))) .
Kilosort4 has two params for the vertical and horizontal spacing between contacts:
Does SpikeInterface provide these to kilosort when calling
run_sorter()? Should it?EDIT: It seems dmin will be computed as
median(diff(unique(y_coords)))anyway while they intentionally disabled automatic calculation of dminx. I guess there is a reason for that so maybe it's ok that spikeinterface does not senddminx = median(diff(unique(x_coords))).