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.
Thanks for your response.
I am now able to read the file through MNE. I got 2 runtime warnings, which are as follows:
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.
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?
I’m wondering if you successfully imported your preprocessed fieldtrip data to MNE?
I’m currently trying to do the same, but running into problems.
My preprocessed EEG data from fieldtrip is already segmented into trials. I also have a time variable, and a variable that stores all channel labels used.
I do:
data = ft_timelockanalysis(cfg, eegdata) %I select a subset of trials (based on condition)
fieldtrip2fiff(‘data.fif’,data)
But importing this into MNE (using Python), I get many errors regarding missing data, so I wonder if the conversion isn’t happening properly.
If you have any thoughts or ideas about which functions to use, it would be very helpful. Thank you so much!