-
Notifications
You must be signed in to change notification settings - Fork 190
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
Add synchrony metrics to quality metrics #1205
Add synchrony metrics to quality metrics #1205
Conversation
Thanks @Moritz-Alexander-Kern! I'll provide some feedback soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First round of feedback! Looks good, but I'd rather have the low-level implementation of the annotate_synchrofacts
here rather than depending on elephant just for that function.
Could you also add tests in the quality_metrics/tests/test_metric_functions.py
?
pyproject.toml
Outdated
@@ -26,6 +26,7 @@ dependencies = [ | |||
"threadpoolctl", | |||
"tqdm", | |||
"probeinterface>=0.2.14", | |||
"elephant>=0.11.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be moved to the full
extra, since elephant
is used by submodules.
In addition, the function really only uses this function from elephant. I think it would be better to directly port this function (with proper references), so we don't have to rely on an additional dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback, I see your point.
Please allow me some time to look into this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course :) no rush!
# Conflicts: # doc/modules/qualitymetrics/synchrony_metrics.rst # pyproject.toml # spikeinterface/qualitymetrics/misc_metrics.py # spikeinterface/qualitymetrics/quality_metric_list.py # spikeinterface/qualitymetrics/tests/test_metrics_functions.py
@Moritz-Alexander-Kern @musall any update on this? |
Update: Currently porting the code from elephant. Following your suggestion to port the code from elephant to spikeinterface. I'm in the process of implementing this change and will update you once it is complete. |
We recently changed the main branch to We should not port the full Would you have time to work on this? |
Closing in favor of #1951 |
This PR is adding a metric for the presence of synchronous spiking events across multiple spike trains.
This is used to characterize synchronous events within the same spike train and across different spike
trains. This way synchronous events can be found both in multi-unit and single-unit spike trains.
The code was adapted from Elephant - Electrophysiology Analysis Toolkit, see docs for more information
Spike train synchrony