cortex-lab / phy

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

Cluster View on white when the file contains too many neurons #1159

Closed FranciscoNaveros closed 1 year ago

FranciscoNaveros commented 2 years ago

I'm implementing phyllum, a plugin on phy to automatically analyze neuropixel recordings in the cerebellum. This plugin computes for each cluster several metrics (more than 50), which are plotted on different columns of the cluster view. This plugin works perfectly for recordings in which the number of clusters is not too large (around 1400 or less). Nevertheless, if the file contains a lot of clusters, the cluster view only shows a white window. I have the same problem if a file contains a smaller number of neurons, but I try to generate more columns for each cluster. It seem like there is a limit in the maximum number of values that can be represented in this table: number of clusters x number of columns x number of values per column. I have verified (debugging the code) that the table containing all the information is properly generated, but the object that should plot the cluster view windows fails, making impossible to interact with phy. There is some way to increase the maximum number of values that this windows is able to represent?

Francisco.