Convert MEG and EEG brain scan data from FieldTrip toolbox in Matlab to MNE toolbox in python.
pip install fieldtrip2mne==0.0.7
A Python module facilitating data conversion between MEG/EEG analysis toolboxes FieldTrip in MATLAB and MNE in Python. It works by reading FieldTrip data structures stored in .mat files and reassinging them to equivalent MNE structures. Several functions are provided to convert from different data types.
from fieldtrip2mne import read_raw
data = read_raw(filename)
from fieldtrip2mne import read_epoched
data = read_epoched(filename)
from fieldtrip2mne import read_avg
data = read_avg(filename)
This module is developed by Thomas Hartmann & Dirk Gütlin at the Universität Salzburg. You are free to use, copy, modify, distribute it under the terms of the BSD 2 clause license.