spikeinterface icon indicating copy to clipboard operation
spikeinterface copied to clipboard

Support for syncing data from multiple Neuropixels as well as an NIDQ device when using SpikeGLX for acquisition

Open manimoh opened this issue 2 years ago • 7 comments

Hi! I was wondering if there was a functionality on syncing all the data-streams from 1 or more NPX probes as well as the analog digital channels on the NIDQ device, when using SpikeGLX for acquisition. While SpikeGLX provides command-line functionality to sync individual timestamps (spike timing, event onset etc) across various devices using their 'TPrime' command, there is no way to synchronize the the continuous data-streams acquired on different devices (for example LFP channels from 2 different Neurpixels probes, and an analog channel on the NIDQ device which actually recordings the running speed of the animals).

I see that there is some work in progress here, but was wondering if that function will satisfy the requirements I am asking about, or are there alternate ways to achieve it!

manimoh avatar Nov 21 '23 17:11 manimoh

Hi Manish. This is on my todo list since almost 1.5 years! I swear I will do it for christmas but I prefer to not tell which year :)

I have private code somewhere that is doing this I need to propagate to that place this should be quite easy. Leave this issue open and feel free to write "ping" in the discussion every 2 weeks.

samuelgarcia avatar Nov 22 '23 08:11 samuelgarcia

I actually would appreciate this functionality for my own use -- happy to help debug/test it :)

manimoh avatar Nov 22 '23 15:11 manimoh

"ping" @samuelgarcia :)

manimoh avatar Dec 04 '23 14:12 manimoh

Sorry for being annoying, but "ping"

manimoh avatar Jan 24 '24 16:01 manimoh

Hi @manimoh. Thank you the recurent ping. I am quite busy witha big refactporing the month. Do not stop the ping! After this big work I will try to implement your need in spikeinterface. Sorry for the very long delay. Have a nice day.

samuelgarcia avatar Jan 29 '24 07:01 samuelgarcia

"Ping"

manimoh avatar Apr 24 '24 19:04 manimoh

@samuelgarcia still interested in this? we need it for conversion of our neuropixels data.

TheChymera avatar Jun 25 '24 14:06 TheChymera

Hi @samuelgarcia , how can we can help with implementing this?

guptadivyansh avatar Mar 13 '25 16:03 guptadivyansh

@guptadivyansh if you have some solutions it would be great to draft a PR so we can discuss about it! This will probably be in this file: https://github.com/SpikeInterface/spikeinterface/blob/main/src/spikeinterface/extractors/neoextractors/spikeglx.py

Do you have time to give it a try?

alejoe91 avatar Mar 13 '25 16:03 alejoe91

I can give it a go this weekend. If that doesn't pan out, I'll have some time mid-next month (after a conference deadline)

guptadivyansh avatar Mar 13 '25 16:03 guptadivyansh