-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hello, we did our recording using Neuropixels 1.0 with SpikeGLX instead of openEphys, and we didn't have the expected metadata in the wrapper.
I tried to generate a session.mat file using Jennifer Colonell's SGLXMetatoCoords tool, but it seems SGLX has an extra channel (385 instead of 384) for synchronization signals and couldn't be run with this wrapper.
Here's the error message:
import numpy as np
from kilosort4_loadmat import kilosort4Wrapper
from pathlib import PathbasePath = Path(r"I:\ExerciseTemp\OM929\Session_241207_213032_hippo\RestWalkRest_241207_g0_imec0")
dataPath = Path(r"I:\ExerciseTemp\OM929\Session_241207_213032_hippo\RestWalkRest_241207_g0_imec0\RestWalkRest_241207_g0_imec0.dat")tmin = 0
tmax = np.inf
probeLetter = ''kilosort4Wrapper(basePath, dataPath, tmin, tmax, probeLetter)
Loading file: I:\ExerciseTemp\OM929\Session_241207_213032_hippo\RestWalkRest_241207_g0_imec0\RestWalkRest_241207_g0_imec0_kilosortChanMap.session.mat
Detected MATLAB v7.3 file. Attempting to load with mat73.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Tom\Documents\GitHub\kilosort4Wrapper\kilosort4_loadmat.py", line 32, in kilosort4Wrapper
plotChannelMap(xc, yc, kcoords, plotAllElectrodes=True)
File "C:\Users\Tom\Documents\GitHub\kilosort4Wrapper\find_and_load_session_mat.py", line 137, in plotChannelMap
plt.scatter(activeX[mask], activeY[mask], c=colors[shank - 1], marker='o', s=20, label=f'Shank {shank}')
IndexError: boolean index did not match indexed array along dimension 0; dimension is 384 but corresponding boolean dimension is 385
Would you be able to embed a standard neuropixel1.0 metadata from OpenEphys so I can test if this is a size issue or metadata issue?