-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about Match Event Count in Comparison between Two Sorting Objects #2343
Comments
Hi @lavanv1107 One question: are you sure that all spikes from the two sorting object match precisely? We recently refactored the matching function for efficiency. (see #2114, #2182, #2191) The main change is the following: @h-mayorquin has also been implementing a third method which is based on functional similarity, see #2192 Maybe wirth trying that out? |
@lavanv1107 I can take a look but can you add the script of how you loaded the data in spikeinterface. |
@lavanv1107 : the way we implemented the algos make it not totally symetric (even it should be) when one of the two spiketrains is violating the the refratory period below the delta_time. (Here 0.4ms) So my guess is that np.sum(np.diff(sorting_dss) < delta) is not null could you check this ? |
Hi @alejoe91, I created the two sorting objects using the The list of times (frames) I used to create the two NumpySorting objects are the exact same. As for the labels;
I'll take a look at the other methods you listed. |
In If so, yes, it is not null. |
oups. for unit_id in sorting_dss.unit_ids:
spiketrain = sorting_dss.get_unit_spiketrains(unti_id=unit_id)
if np.sum(np.diff(spiketrain) < delta:
print(f"unit_id {unit_id} has some spikes under refractory period") If you have some unit with this then |
Hello, It seems that after updating to the latest version, the comparison does account for all peaks now. Thank you so much for your assistance! |
I have two sorting objects both with the same amount of samples and labels. The event times are also exactly the same for both objects.
However, when running both of them through the
si.compare_two_sorters
function, the computed match event count has fewer events than what was in both objects. Why is that?This is true for the default
delta_time
= 0.4 as well as 0.I have attached the two numpy sorting objects I created for comparison here.
sorting_objects.zip
Here is the code I used:
@rly
The text was updated successfully, but these errors were encountered: