spikeinterface icon indicating copy to clipboard operation
spikeinterface copied to clipboard

Question `commen_reference` for multi-shank probes:

Open chiyu1203 opened this issue 9 months ago • 3 comments

I had a brief conversation with the CambridgeNeurotech about commen_reference today. It seems that since I am using a multi-shank probe, it would be great to take channels from one shank as a reference for channels from the other shank, and the other way round (instead of calculating the reference based on all channels). Has anyone tried this method before? In addition, I understand that current version of commen_reference can take dictionary as an input, which helps process data with multi-shank probes. In this case, how does the function work when those reference methods: "global" | "single" | "local" are called? I was wondering if the easiest way to take this concern into account when taking the reference would be giving local_radius and not splitting channels into dictionary, so that for every channels there would be an unique combination of channels set for calculating common reference (depending on the radius). Does it make sense?

chiyu1203 avatar Apr 15 '25 18:04 chiyu1203

Relevant:

https://spikeinterface.readthedocs.io/en/stable/how_to/process_by_channel_group.html

h-mayorquin avatar Apr 16 '25 18:04 h-mayorquin

Thanks for pointing that article out! That's what I meant when I wrote "current version of commen_reference can take dictionary as an input", In my analysis pipeline, I first split channels by shank and stored them as a dictionary so that they can be processed by those function commen_reference and whiten shank by shank already. However, if I keep using the default setting for commen_reference, I will basically use all channels from the same shank for calculating its own reference, which is the opposite from what CambridgeNeurotech expert suggested. That's why I thought setting local_radius is the easiest way to go but wondered if anyone has experience with this already.

chiyu1203 avatar Apr 16 '25 19:04 chiyu1203

I think this is an interesting idea. But I'm wondering how we would implement this in the case of more than two shanks? I would love for @alejoe91 or @samuelgarcia to comment. I think this would also be influenced by how far away the shanks are from each other. If you're in two different tissue types with the shanks then I don't know if cross-shank would actually be a good reference.

zm711 avatar Apr 19 '25 18:04 zm711