LFP data for 8-Neuropixels recordings from Stringer et al 2019 Science Nick Steinmetz Matteo Carandini Kenneth Harris 10.6084/m9.figshare.8784311.v1 https://figshare.com/articles/dataset/LFP_data_for_8-Neuropixels_recordings_from_Stringer_et_al_2019_Science/8784311 <div>Companion to <a href="https://janelia.figshare.com/articles/Eight-probe_Neuropixels_recordings_during_spontaneous_behaviors/7739750">https://janelia.figshare.com/articles/Eight-probe_Neuropixels_recordings_during_spontaneous_behaviors/7739750</a></div><div><br></div><div>Each LFP file has 385 channels of int16 data at 2500Hz. They can be loaded directly into software like Neuroscope, and can be read in matlab like:</div><div><br></div><div>>> fid = fopen('thisfile.bin', 'r');</div><div>>> dat = fread(fid, [385 Inf], '*int16');</div><div>>> fclose(fid);<br></div><div><br></div><div>Note that the file may well be too large to fit into memory so you may not want to read "Inf" samples as in this example. </div><div><br></div><div><div>Each file has different start and end times, and there are drifts in the clocks between probes - so the timestamp files, which give the aligned timing information, must be used. The aligned timestamps are specified in a particular way: an Nx2 matrix where the first column is sample numbers and the second column is the time in seconds at which those samples occurred. Since LFP was sampled regularly, N=2, just the first and last sample. So, to get the time at which every sample occurred, use this line in matlab: </div><div><br></div><div>>> tsData = readNPY('...lf.timestamps.npy');</div><div>>> allTS = interp1(tsData(:,1), tsData(:,2), tsData(1,1):tsData(2,1));</div><div><br></div><div>That's just linearly interpolating between the times given for the first and last samples.</div></div><div><br></div><div>An important note about data quality: The referencing was not functioning properly for several probes. The AP (i.e. high-pass filtered) data was essentially perfectly recovered using common average referencing, but this has not been assessed for the LFP data. So, please check the data quality carefully for whatever you plan to analyze, and if it looks noisy with matched noise across channels, try CAR to fix it. </div> 2019-07-09 18:52:35 neuropixels local field potential Neuroscience