Data Loading and Saving#
Readers and writers for EEG datasets, channel locations, and MNE interchange.
getchanlist returns 1-based channel numbers.
|
Convert a BioSig |
|
Convert XYZ Cartesian coordinates to polar |
|
Return XYZ coordinates centered around a known or fitted sphere center. |
|
Return channel locations with requested coordinate fields filled in. |
|
Coregister one electrode montage to another without opening a GUI. |
|
Wrap eeg_decodechan. |
|
Wrap eeg_eeg2mne. |
|
Return 0-based indices for channel labels. |
|
Resolve channel identifiers to 0-based indices and labels. |
|
Convert an EEG dataset to an MNE Raw or Epochs object. |
|
Convert an MNE Raw or Epochs object to an EEG dataset. |
|
Convert MNE epochs with ICA to an EEG dataset. |
|
Return a unique nearest large-montage channel for each small channel. |
|
Merge channel locations by label while preserving montage order. |
|
Merge ordered montages and report incompatible electrode ordering. |
|
Read a binary float32 matrix using MATLAB/EEGLAB column ordering. |
|
Write a matrix as float32 values using MATLAB/EEGLAB ordering. |
|
Load a Neuroscan CNT file into a low-level CNT dictionary. |
|
Load a Neuroscan epoch file and its per-sweep metadata. |
|
Read an EEGLAB-style numeric or mixed-value text table. |
|
Load EEGLAB dataset from file (alias for pop_loadset). |
|
NumPy-compatible handle for channel-major EEG data stored on disk. |
|
Construct an EEGLAB-compatible memory-mapped EEG data handle. |
|
Return 1-based channel indices matching one or more types. |
|
Wrap eeg_mne2eeg. |
|
Wrap eeg_mne2eeg_epochs. |
|
Read a BDF header and prepare an EEGLAB-compatible record dataset. |
|
Split text at any delimiter character and discard empty tokens. |
|
Load a BrainVision |
|
Load a Neuroscan CNT recording into an EEG dictionary. |
|
Read selected 1-based BDF records. |
|
Read an ERPSS recording into channel-major microvolt data. |
|
Read an EGI Simple Binary file (versions 2 through 7). |
|
Read an EGI Simple Binary header. |
|
Read a simple EETrak/ASA |
|
Return |
|
Read a Polhemus |
|
Read a channel-location file or structure into EEGPrep dictionaries. |
|
Read a Neuroscan |
|
Return file contents with one leading newline and normalized lines. |
|
Wrap pop_saveset. |
|
Read a SnapMaster |
|
Read an int16 matrix using MATLAB column ordering. |
|
Write channel locations to an EEGLAB-compatible text file. |
|
Write finite continuous channel-major data as GDF 1.25. |
readegilocs includes packaged EGI montages for 32/33, 64/65, 128/129,
and 256/257-channel nets.
loadcnt and pop_loadcnt read Neuroscan CNT data without an EEGLAB
checkout. They support 16- and 32-bit recordings, channel-blocked storage,
microvolt calibration, partial reads, event tables, and .fdt-backed data.
ANT Neuro CNT is a separate format and is not accepted by this reader.
BrainVision recordings#
Load a BrainVision Data Exchange recording through its header. The companion data and marker files are resolved from the header and must remain beside it.
from eegprep import pop_loadbv
EEG = pop_loadbv("subject01.vhdr")
EEG = pop_loadbv("/data/session", "subject01.vhdr", [1001, 5000], [1, 2, 8])
srange and chans use EEGLAB-compatible 1-based indexing; a two-value
sample range is inclusive. Binary and ASCII, multiplexed and vectorized data
are supported. Voltage data is normalized to microvolts while the original
unit and resolution remain in each channel’s bvunit and bvresolution
fields. Use metadata=True to inspect dimensions, channels, and events
without loading samples. Uniform marker-based or fixed-time segments are
returned as trials rather than a flattened continuous array. BIDS import uses
this same reader for .vhdr files.
read_erpss reads uncompressed and delta-compressed ERPSS .RAW and
.RDF recordings without a compiled MEX extension. It preserves channel
labels and 1-based event sample offsets, and supports both little- and
big-endian files.
readegi reads EGI Simple Binary RAW versions 2 through 7 without an
EEGLAB installation. Frame and segment selections are 1-based, while returned
sample arrays are channel-major. readegihdr reads the same acquisition and
event-code metadata without loading signal samples.