-
Notifications
You must be signed in to change notification settings - Fork 248
Description
Hi there,
I have used spikeInterface to concatenate three sessions recorded in the same day using NPX2 via SpikeGLX.
But I am a bit clue less about how to handle the ap.meta file.
I have tried to load the concatenated ap.bin file via read_spikeglx, but the traces looks quite weird.
If I use read_binary instead, the concatenated traces looks identical when I load the first trial of the recording using read_spikeglx.
There are some gap of time between each recordings, I manually save the ap.meta file by changing the
I want to keep the firstSample in the concatenated file as the same as in the first recording, so I can have absolute timestamps for all the recording, and for later synchronize with behavior cameras.
I applied phaseshift for each raw recording ap.bin file before concatenation.
rec = spre.phase_shift(rec)
tr02_HC
fileSizeBytes: 35,800,368,450
fileTimeSecs: 1549.7995
firstSample: 149,507,283
tr03_OF
fileSizeBytes: 28,292,999,350
fileTimeSecs: 1224.8051666666668
firstSample: 199,523,031
tr05_HC
fileSizeBytes: 30,213,765,890
fileTimeSecs: 1307.9552333333334
firstSample: 282,583,158
Based on theses, I manually changed the number for the ap.meta
concatenated_session
fileSizeBytes=94062180096
fileTimeSecs=4071.955833
firstSample=149507283
Which is in accordance with the actual size and duration of the concatenated recording ap.bin
concatenated_rec = si.concatenate_recordings(rec_list)
I also want to know how to deal with nidq.ap and nidq.meta for the concatenated sessions.
Unlike CatGT, those files seems not generated automatically in SpikeInterface.
I couldn't find the documentations for construct the concatenated ap.meta file in SpikeInterface, and will appreciate any suggestion and advices.
When I plot the traces of the concatenated recording after load it using read_spikeglx, it looks like this:
But if I use read_binary, the trace looks like this:
And if I use read_spikeglx for the first recording, the traces looks like this:
