open-ephys / plugin-GUI

Software for processing, recording, and visualizing multichannel electrophysiology data
https://open-ephys.org/gui
GNU General Public License v3.0
193 stars 683 forks source link

v0.6.1 Spikes Viewer: Unable to set the duration (x axis) of each channels plot #523

Open pfre017 opened 2 years ago

pfre017 commented 2 years ago

In previous versions of open ephys it was possible to set the duration of the x-axis for each channel spike in Spike Viewer. This was done by setting the number of pre- and post-samples.

The ability to set this is not possible (or obvious?) in open ephys 0.6.1. Can this useful option be reinstated. In addition, an improvement could be to also show the duration of the x-axis somewhere in the plot (top right hand corner?).

open ephys spike viewer issue

jsiegle commented 2 years ago

Hi there – it's true that it's no longer possible to change the duration of detected spikes v0.6.x. Previously, the Spike Sorter allowed you to customize the # of pre and post samples, but we have now consolidated all of the spike extraction functionality into the Spike Detector and fixed the number of waveform samples at 8 pre/32 post. So the length of the window will be 40 divided by the sample rate, or 1.3 ms for a 30 kHz recording.

If you need to detect spikes with a different (fixed) window length, you can re-compile the Spike Detector with this parameter changed. This would just entail adding an entry for pre- and post-samples to the SpikeChannelSettings struct. We are happy to help with this if you get stuck.

We plan to add back the ability to customize the spike window length in a future version of the GUI, but we don't have an exact timeline for that yet.

pfre017 commented 2 years ago

Thank you for that information and I will look into modifying the Spike Detector. Pete