Custom MEA with Spike Interface #114
Replies: 2 comments 3 replies
-
|
Hi, UnitMatch was originally written for high-density electrodes. What is the spacing between your channels on your MEA? Do you typically record waveforms from the same neuron on multiple channels or just on one channel? Your solution is sensible, but that probably means some of these distance features may be meaningless and potentially UnitMatch even performs suboptimal if you include these. You could try to run unitmatch in different ways and see if that works for your specific electrode type. For example, you can change the default parameter param.channel_radius and max_dist to a larger number to increase the number of electrodes included. Changing max_dist will also help with getter a larger len(include_these_pairs) to avoid negative values for prior_match. Have a look at other default_params as well to see if they make sense for your electrode. Another option is to remove the distance based scores from the 'scores_to_include' (Line 110 of 'overlord.py), so that UnitMatch assigns probabilities based on waveform shapes rather than decay and distances between units. Hope this helps you find a good configuration for this type of electrode. Good luck! |
Beta Was this translation helpful? Give feedback.
-
|
Hi, thank you for the helpful explanations above. I am working with a Utah Array setup (8×8 grid, 400 µm spacing), and I have run into similar issues as the original questioner. Since neurons usually appear on only a single channel at this spacing, I understand the distance-based features (spatial decay, centroid, trajectory, etc.) should be removed.
Any comments or suggestions would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using a custom MEA with 8 x 8 config with 60 electrodes. I ran my raw recordings through SpyKing Circus on Spike Interface to get my units which then I used Phy to filter out the good units.
I have two issues that arise out of this.
My spike sorted units are showing that my spikes are right over the unit which I believe is the reason why I get 0 distance in the dist_to_max_chan in the decay_and_average_waveform function. This causes issues as I am unable to divide by 0 and so I solved this by manually setting my dist_to_max_chan array to a very small value. I am not sure if this is the correct fix for this issue however.

My next issue is when calculating quantiles I get a negative value as in line 126 of overlord.py where we calculate prior_match, the param['n_expected_matches'] is well above len(include_these_pairs) which makes the value negative and leads to a negative quantile value. Not sure how to solve this problem without clamping the prior_match to a value between 0 and 1.

Would appreciate some support on if I am on the right track or how I can fix these issues.
Beta Was this translation helpful? Give feedback.
All reactions