mne.read_epochs_fieldtrip

mne.read_epochs_fieldtrip(fname, info, data_name='data', trialinfo_column=0)[source]

Load epoched data from a FieldTrip preprocessing structure.

This function expects to find epoched data in the structure data_name is pointing at.

Warning

Only epochs with the same amount of channels and samples are supported!

Warning

FieldTrip does not normally store the original information concerning channel location, orientation, type etc. It is therefore highly recommended to provide the info field. This can be obtained by reading the original raw data file with MNE functions (without preload). The returned object contains the necessary info field.

Parameters
fnamestr

Path and filename of the .mat file containing the data.

infodict or None

The info dict of the raw data file corresponding to the data to import. If this is set to None, limited information is extracted from the FieldTrip structure.

data_namestr

Name of heading dict/ variable name under which the data was originally saved in MATLAB.

trialinfo_columnint

Column of the trialinfo matrix to use for the event codes.

Returns
epochsinstance of EpochsArray

An EpochsArray containing the loaded data.

Examples using mne.read_epochs_fieldtrip