spikeinterface icon indicating copy to clipboard operation
spikeinterface copied to clipboard

Can I concate two recordings from one probe and perform motion correction to restore them to one recording?

Open David-H-Chang opened this issue 1 year ago • 3 comments

Hey! An system error occurred during when I was using neuropixels for recordings. I restarted the system and got two recordings from one probe. There will be some drifting due to the interval from the end of my first recordings to the beginning of my second reording, which lasts for approximately 10 min. I wonder is it possible to concate two recordings together and use motion correction, in order to restore them as one recording for later sorting process? Thanks a lot!

David-H-Chang avatar Oct 01 '24 04:10 David-H-Chang

Hi @DaohanZhang , this problem is being worked on (mainly by @JoeZiminski) here: https://github.com/SpikeInterface/spikeinterface/pull/3126 but this is still in development.

Until that is ready, you could just try and concatenate the recordings using both_recordings = concatenate_recordings([recording_1, recording_2]) (see more here), apply motion correction (or nothing) to both_recordings and see what happens.

chrishalcrow avatar Oct 02 '24 17:10 chrishalcrow

Hi @DaohanZhang , I'd second what Chris has written there! This is a strategy I've used for some multi-segment recordings in the past.

cwindolf avatar Oct 16 '24 21:10 cwindolf

Thanks @cwindolf! So you got consistent number of units in each segments after sorting process, just like sorting one segments, right?

David-H-Chang avatar Oct 19 '24 14:10 David-H-Chang