Where to find channel of units in phy-output #2780
-
Hi all, However, I'm having trouble in finding the channel (or the channel with highest amplitude) in the phy configutation. All the .npy files I have checked don't seem to have this information. I have access to other info just fine (waveforms, spike times, quality metrics, etc ...) I'm not going to preten i'm fluent in this entire library, but it appears there are some functions here and there about finding channels for units, but I can't figure out where to find this in either the phy-output, or the spike-sorter specific output (in my case with Tridesclous). Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@zm711 maybe you know? |
Beta Was this translation helpful? Give feedback.
-
I'm going to close this discussion since the spikeinterface answer is included and phy based questions are better for the phy repo. |
Beta Was this translation helpful? Give feedback.
Hey @reinderdorman, yep so there are a couple of things you can do!
So if you truly only want the peak channel then we have a function you can import like
You can read more about the arguments to that function here
If you'd prefer instead to have estimated/calculated "true" spike locations you can use the
SortingAnalyzer.compute()
function which can calculate `"spike_locations" using a variety of computational methods, e.g. based on center of mass or using monopolar triangulation.To do this you would do
# we have our sorti…