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

ClusterView problem #1156

Closed churanj closed 1 year ago

churanj commented 2 years ago

Hello, we have a similar problem like issue #1151 but with some interesting differences. We use a neuropixels probe and kilosort3. When we run phy on the output of kilosort , the ClusterView window remains blank, however, the SimilarityView window seems intact (see screenshot). Importantly, this issue only occurs in a part (~50%) of our recordings while other work nicely. When it occurs, it is independent of the machine we run phy at - currently we tested it at two Windows11 and two MacOS systems. When I compare the Kilosort outputs between the ‘working’ and ’not working’ measurements I also don’t see any obvious major differences. So far the mystery… Any suggestions or speculations? Best! Jan Screen Shot 2022-05-11 at 16 02 16 (2)

churanj commented 2 years ago

An update on this issue: Apparently the cause of the problem is a file named 'metrics.csv' that is generated in the post-processing stages on the neuropixels processing pipeline. When we delete this file from the kilosort results directory, everything seems to work fine. The content of the file looks like a table of the clusters and their properties. We are, however, not sure, what this file was supposed to do for phy and whether it is save to delete it. It would be great to get some insight into the function of that file. Best! Jan

a-zmz commented 2 years ago

Hello,

I have encountered the same issue. However, i do not have such metrics.cvs file in my output folder. Opened two sorted sessions, and they had the same problem. Here is the screenshot of the error message: Screenshot from 2022-05-20 18-58-09

Best, Arthur