Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported Phy data sets all clusters to "unsorted" group, ignoring sorter's group assignments #2754

Open
cheydrick opened this issue Apr 24, 2024 · 1 comment
Labels
exporters Related to exporters module

Comments

@cheydrick
Copy link

cheydrick commented Apr 24, 2024

Hi this is Chris with Plexon. I used SpikeInterface to sort using Kilosort 4, and then exported to Phy.

I found that when exporting to Phy that each cluster is set to the “unsorted” group in cluster_group.tsv. The Kilosort 4 output also contains a cluster_group.tsv, but the clusters are set to either “mua” or “good”.

The sorting object returned by run_sorter() contains this group assignment in the 'KSLabel' property.

Is there a way for the Phy export process to carry over the cluster groups that Kilosort 4 assigned?

Thanks,
Chris
chris@plexon.com

@zm711
Copy link
Collaborator

zm711 commented Apr 25, 2024

The export_to_phy doesn't automatically do that because not all sorters return KSLabel. Since that is a KS specific thing. I'm wondering if we can instead add a parameter to export_to_phy called add_annotations (or something like that) and then we can write any annotations that occur on a per-cluster basis into the tsv with a column heading of the key in the annotations dict. I don't use annotations for these objects much.... does that sound possible @alejoe91. Then if the user wants the KSLabel or any other label (for example they do qc metrics and make their own "score" of 4 of the metrics and want to create a column based on that for use in phy).

@zm711 zm711 added the exporters Related to exporters module label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporters Related to exporters module
Projects
None yet
Development

No branches or pull requests

2 participants