spikes
spikes copied to clipboard
Added support for cluster_KSLabel.tsv'
Here I added support for loading cluster_KSLabel.tsv
Any chance you are willing to go a step further while you're at it and add support for loading any tsv file that's found in the directory? It would need to do a bit of sanitizing, like checking that it loads, and checking that every entry in the first column is a valid cluster ID (that would be a great check to add for cluster_group and cluster_KSLabel, too). I think ideally all tsv's besides cluster_group should go into a table together, with each becoming a column, rows for cluster IDs. Basically a table that looks like the clusterview in phy. What do you think?
Sure I can code that up. I'm confused as to why 'cluster_group' should not be in a table with the other cluster_* files though
I've started working on this code, and I have another question about the current loadKSdir code:
In line 27 the code loads spike_clusters.npy into 'clu'. In line 72 this variable is then overwritten with spikeTemplates, if no cluster groups file is found. I was wondering why this happens? Why not keep clu as it is, and not overwrite with spikeTemplates?
Thanks!