cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
314 stars 157 forks source link

ISI in logspace rather than linear #1216

Closed adredish closed 4 months ago

adredish commented 1 year ago

I would like to have the ISI histogram be of log(ISI) rather than a linear ISI. This is much better to see ISI shapes, as the real issues appear at oscillatory frequencies in log space. (EMG noise, for example, has a very specific shape in log ISI space.)

What is the easiest way to implement this? I assume that there is a simple function doing the ISI calculation and displaying it. Where are those calculations done?

thanks

zm711 commented 1 year ago

https://github.com/cortex-lab/phy/blob/master/phy/cluster/views/histogram.py

The histogram based functions (including ISI) are performed there.

https://phy.readthedocs.io/en/latest/plugins/

How to make your own personal plug-in to use with phy included in the documentation above.

Cheers, Zach