[FieldTrip] Issue reading data from old sqd file version

Mrugank Dake mrugank.dake at nyu.edu
Sat Apr 5 19:40:00 CEST 2025


Hi everyone,

I am reading MEG data from .sqd for data collected at NYU using the MEG-KIT
160 system back in 2009. I believe there are multiple versions of sqd file
and the current sqd file I am loading is an old version. I faced issues
reading data from these sqd files using MNE python basically warning me
that the file is old and the data read was indeed corrupt with neural
channels and trigger channels all messed up in order. I switched to
Fieldtrip and have been successfully able to read the data and do all the
sensor-level analyses but I never really bothered wondering what goes
inside the sqd files and what has changed over the versions.

Currently, I am trying out source reconstruction and from the looks of it,
the HPI and fiducials I have recorded for the subjects back in 2009 don't
look at all aligned with the gradiometer positions. I am unsure if this
problem goes with the version of sqd file itself, but that's definitely on
my mind and would be open to know if anyone here knows more about this.

Secondly, fieldtrip (the latest versions), provides two reading options for
the Yokogawa MEG system: "external/yokogawa" and
"external/yokogawa_meg_reader". By default Fieldtrip resorts to using
yokogawa_meg_reader, but if I force fieldtrip to use "yokogawa", I get the
following error:
"
    hdr = read_yokogawa_header(rawSqdPath)
         The P-code file

/System/Volumes/Data/d/DATD/hyper/software/fieldtrip-20250318/external/yokogawa/GetMeg160SystemInfoM.p
         was generated prior to MATLAB version 7.5 (R2007b) and is no
longer supported.  Use
         pcode to regenerate the file using MATLAB R2007b or later.

         Error in read_yokogawa_header (line 62)
         [id, ver, rev, sys_name] = GetMeg160SystemInfoM(fid);
"

And since I am working on a Mac with an M1 chip, I do not have an option to
install MATLAB 2007b. Is there any other workaround? Or am I going in the
wrong direction? What is the difference between these two reading options
from Yokogawa?

Thanks in advance for taking time to read this long spiel and helping find
a solution.

Best,
-- 
Mrugank Dake,
PhD Student,
Curtis Lab,
NYU Department of Psychology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20250405/620de531/attachment.htm>


More information about the fieldtrip mailing list