cortex-lab / phy

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

redefining PC space for feature view #1065

Open rhuszar opened 3 years ago

rhuszar commented 3 years ago

Hello! Is it possible to display cluster features in global PCA space in Phy?

I am using silicon probes that have recording sites on both sides, and there is some double counting of spikes between clusters across the two sides of the shank (see attached pic) - spikes of a blue unit on one side of the shank also appear as part of a red unit on the other side.

I would like to put these clusters into a common PC space to see the cluster overlap, and perhaps see if I can cut out the double counted spikes.

I have figured out how to resolve this prior to a call to Kilosort by grouping channels on the two sides of a shank (rather than treating these as independent groups, as is apparent in the image). However, I have many manually curated sessions in which this problem appears, so I wonder if there's a way to redefine the PC space after automated clustering has taken place.

Thank you for any advice! pic