Skip to content

Are dmin and dminx send to kilosort4? #4395

@ecobost

Description

@ecobost

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))) .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions