Tutorials

Load exports in MNE-Python and EEGLAB

Hand a recording, or its cleaned run, to Python or MATLAB as one folder with its own loaders.

3 min readUpdated December 2026

Make a Research Handoff

  1. In the app, choose Create Research Handoff on the recording’s page, on the Analysis page, or on a saved preprocessing run.

    the Research Handoff page
  2. Confirm the data range (a custom segment, a saved window or the whole recording) and the channel order.

  3. Choose the source: the original recording data, or one saved preprocessing run, which is the cleaned signal with its bad channels and ICA. A run that is missing is never replaced by the original.

  4. Generate the handoff and copy the whole folder to the computer with Python or MATLAB.

A Research Handoff is part of Pro and Max; Batch Handoff, for several recordings at once, is part of Max.

What is in the folder

The main files of a Research Handoff
FileWhat it holds
metadata/manifest.jsonThe range, channel order, sample rate, units, source, reference, filters and warnings
signals/selected-window-long.csvThe signal, one row per sample of each channel: channel_id, channel, sample_index, recording_sample_index, time_seconds, value, unit
metadata/channels.tsv and events.tsvThe channels, with the bad ones marked and why, and the events
metadata/checksums.jsonA SHA-256 checksum and byte count for every file
scripts/load_mne.py and load_eeglab.mThe loaders, with requirements.txt for Python
README.md, warnings.txtWhat the folder is, and anything to look at before using it

Load it in MNE-Python

cd path/to/the-handoff-folder
python -m pip install -r scripts/requirements.txt
python scripts/load_mne.py

load_mne.py reads the manifest and the signal file, keeps the recorded channel order, converts the EEG to volts and builds an MNE RawArray. Channels marked bad go into raw.info["bads"]. A handoff of a run with ICA carries its components, which the loader returns with load_preprocessing.

Load it in EEGLAB

cd('path/to/the-handoff-folder')
run('scripts/load_eeglab.m')

With EEGLAB on the MATLAB path, load_eeglab.m builds the channel × sample data, sets the sample rate and labels, calls pop_importdata and runs eeg_checkset. Bad channels are listed in EEG.etc.eegtracelab.bad_channels, and the kept ICA components of a run go into EEG.icaweights and EEG.icawinv, as after pop_subcomp.

Check before you analyse

  • The channel count and order, the sample rate and the number of samples (in EEGLAB: EEG.nbchan, EEG.srate, EEG.pnts) match the manifest.
  • warnings.txt is read; the loaders check the checksums themselves and stop if a file has changed.
Download on the App StoreDownload on the Mac App Store

Common problems

The script stops with “No module named 'mne'”

Install the packages in scripts/requirements.txt into the Python you run the script with, then run it again.

A file is not found

Keep the folder whole, with the loaders in its scripts folder: they find the other files from there.

Which data does the folder hold, raw or cleaned?

The manifest names the source: the original recording data, or the saved preprocessing run, with the run’s processing history.

Can I load an exported EDF+ or BDF+ segment instead?

Yes: a segment exported from the app or the Online EEG Reviewer opens with MNE-Python’s read_raw_edf or read_raw_bdf, or EEGLAB’s BIOSIG import: see How to read EDF files in Python and MATLAB.