cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
307 stars 156 forks source link

Finding Spike Channel IDs #1149

Open argunsah opened 2 years ago

argunsah commented 2 years ago

Hello, I sorted the data using SpykingCircus and exported to phy. When I run phy I can see channel ids for each cluster but I cannot find this data in the export folder. How can I access this information? (Ideally in Matlab). Best, Ali

GrimmSnark commented 2 years ago

You need to press the save icon in phy then look in the cluster_info.tsv file. One of the headings is the best channel for the cluster.

Best,

Michael

argunsah commented 2 years ago

Thank you! Related: is it possible to do it automatically without running phy and pressing the save icon? (Lets assume all clusters were correct) Best, Ali

GrimmSnark commented 2 years ago

I do not know for sure but if you are comfortable writing a plugin this may do the trick

https://phy.readthedocs.io/en/latest/plugins/#saving-cluster-metadata-in-a-tsv-file

Best,

Michael

argunsah commented 2 years ago

Thanks again. I will try.