Skip to content

Add load_templates_clusters parameter (kilosort/phy output)#4376

Open
pas-calc wants to merge 2 commits intoSpikeInterface:mainfrom
pas-calc:patch-1
Open

Add load_templates_clusters parameter (kilosort/phy output)#4376
pas-calc wants to merge 2 commits intoSpikeInterface:mainfrom
pas-calc:patch-1

Conversation

@pas-calc
Copy link
Contributor

@pas-calc pas-calc commented Feb 8, 2026

Added a new parameter 'load_templates_clusters' to control loading of templates or clusters from Kilosort output. Updated logic to handle loading based on the parameter value.

Have "auto" as default to ensure backward compatibility, as this was the previous implementation.

related:
#4373

We could also store a kwarg dict / attribute so that we later know from where we got the clusters, especially if "auto" was chosen.

pas-calc and others added 2 commits February 8, 2026 18:05
…refinement)

Added a new parameter 'load_templates_clusters' to control loading of templates or clusters from Kilosort output. Updated logic to handle loading based on the parameter value.
@chrishalcrow
Copy link
Member

chrishalcrow commented Feb 9, 2026

Hi @pas-calc, thanks for this! It sounds like it's correct for the default to be "templates" since this always represents the "raw" outputs. This function is very new and hasn't been in a release version yet, so we don't need to be so careful about backward compatibility. Hence I would vote to make "templates" the default and remove the "auto" option. What do you think?

Maybe we should also make it clear in the docstring that this function is only tested for data that has not been modified by Phy.

EDIT: also, do you know if kilosort 2.5 also outputs both of these files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants