Skip to content

Where to find channel of units in phy-output #2780

Closed Answered by zm711
reinderdorman asked this question in Q&A
Discussion options

You must be logged in to vote

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

from spikeinterface.core import get_template_extremum_channel
# we need a sorting analyzer:
channel_ids = get_template_extremum_channel(sorting_analyzer, outputs='id')

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…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@zm711
Comment options

zm711 May 2, 2024
Collaborator

@reinderdorman
Comment options

@zm711
Comment options

zm711 May 9, 2024
Collaborator

Answer selected by zm711
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants