Data Loading and Saving#

Readers and writers for EEG datasets, channel locations, and MNE interchange.

eegprep.cart2topo(x, *args)

Convert XYZ Cartesian coordinates to polar topoplot coordinates.

eegprep.chancenter(x, y, z[, center])

Return XYZ coordinates centered around a known or fitted sphere center.

eegprep.convertlocs(chans[, command, verbose])

Return channel locations with requested coordinate fields filled in.

eegprep.coregister(chanlocs1[, chanlocs2, ...])

Coregister one electrode montage to another without opening a GUI.

eegprep.decodechan(*args, **kwargs)

Wrap eeg_decodechan.

eegprep.eeg2mne(*args, **kwargs)

Wrap eeg_eeg2mne.

eegprep.eeg_decodechan(chanlocs, chanstr[, ...])

Resolve channel identifiers to 0-based indices and labels.

eegprep.eeg_eeg2mne(EEG)

Convert EEG data structure to MNE Raw object.

eegprep.eeg_mne2eeg(raw)

Convert MNE Raw object to EEG data structure.

eegprep.eeg_mne2eeg_epochs(epochs, ica)

Convert MNE epochs with ICA to EEGLAB dataset format.

eegprep.floatread(filename, size[, format, ...])

Read a binary float32 matrix using MATLAB/EEGLAB column ordering.

eegprep.floatwrite(data, filename[, format, ...])

Write a matrix as float32 values using MATLAB/EEGLAB ordering.

eegprep.loadset(file_path)

Load EEGLAB dataset from file (alias for pop_loadset).

eegprep.mne2eeg(*args, **kwargs)

Wrap eeg_mne2eeg.

eegprep.mne2eeg_epochs(*args, **kwargs)

Wrap eeg_mne2eeg_epochs.

eegprep.readeetraklocs(filename)

Read a simple EETrak/ASA .elc location file.

eegprep.readegilocs(EEG[, fileloc])

Return EEG with EGI channel locations from packaged montages.

eegprep.readelp(filename)

Read a Polhemus .elp electrode-position file.

eegprep.readlocs(filename, *args[, ...])

Read a channel-location file or structure into EEGPrep dictionaries.

eegprep.saveset(*args, **kwargs)

Wrap pop_saveset.

eegprep.snapread(filename[, seekframes, ...])

Read a SnapMaster .SMA file into data, params, events, and header.

eegprep.writelocs(chans, filename, *args, ...)

Write channel locations to an EEGLAB-compatible text file.