Using fieldtrip processed .mat data with MNE

  • MNE version: ‘1.2.1’

  • operating system: macOS 12.6

I am using publicly available MEG data from Donder’s institute website.
Data is already preprocessed using FieldTrip and I am able to load it in python using mat73 package. I get a dictionary as shown in the embedded image here for a condition in participant’s dataset.
This dictionary is itself in a dictionary as a value to key called data.

As this my first time using MNE as well as with MEG data, I am not sure how to use this mat file data in MNE.

Any help will be very appreciated!

Hello, MNE provides dedicated functions for reading FieldTrip data:

https://mne.tools/stable/auto_tutorials/io/10_reading_meg_data.html#fieldtrip-meg-eeg-data-mat

I’d suggest you try the approaches outlined here.

Best wishes
Richard

Hi,

Thanks for your response.
I am now able to read the file through MNE. I got 2 runtime warnings, which are as follows:

  1. RuntimeWarning: Importing FieldTrip data without an info dict from the original file. Channel locations, orientations and types will be incorrect. The imported data cannot be used for source analysis, channel interpolation etc.

  2. RuntimeWarning: Cannot guess the correct type of channel HLC0037. Making it a MISC channel. (I got this for many other channels);

I understand the reason for 1st warning from the documentation but I am confused by 2nd one, what does the 2nd one mean?

Also I do not understand why does _channel_type_idx[‘eeg’] has a value ([303, 304, 305, 306, 307, 308, 309, 310] in this case) when the data comes from MEG?

Thanks,
Saurabh