Interactive Pop Workflows#
User-facing pop_* wrappers. Each accepts return_com=True and returns a replayable history command.
Loading and Saving#
pop_biosig and pop_fileio accept their options as keywords or as
positional name/value pairs. blockrange=[start, stop] requests a
half-open, seconds-based read of continuous EDF, BDF, and other MNE-backed
formats. A window or a whole recording with fewer samples than channels stays
channel-major. BioSemi BDF import decodes Status with bdfeventmode (default
4, rising edges of the lower 16 bits), stores those triggers when
importevent is on, and removes Status when rmeventchan is
on. A requested time range reads only the overlapping BDF records.
pop_fileio also accepts EEGLAB’s 1-based channels selection
and inclusive samples and trials ranges. pop_loadset supports
metadata-only and 1-based channel loading through loadmode.
pop_importpres recognizes tab-delimited Presentation headers and also
accepts EEGLAB’s positional event-type, time, and duration field names.
pop_read_erpss imports uncompressed and delta-compressed ERPSS .RAW
and .RDF recordings. Pass a sampling rate only when timing is absent from
the recording header.
pop_readegi imports continuous or equal-length segmented EGI Simple Binary
RAW files, including event channels and segment categories. An epoc event
with no tim0 event is stored as boundary. When both codes are present,
every epoc latency is the last sample of a trial, and the sample count
divides evenly into one more trial than there are epoc events, the pauses
become the trial boundaries and the epoc events are removed.
pop_readsegegi
joins a numbered continuous series ending in 001.RAW, 002.RAW, and so
on, and validates that acquisition headers agree before concatenating samples.
pop_importegimat reads EGI Net Station MATLAB exports. Segment variables
named <condition>_Segment<number> become trials with one condition event
per trial; continuous exports are read from the Session variable by
default. An embedded samplingRate takes precedence over the supplied rate,
and latpoint0 is expressed in milliseconds.
|
Import BIOSIG-style EDF/BDF/GDF files, optionally over a time range. |
|
Edit EEG channel-location metadata. |
|
Edit dataset metadata fields in an EEG dictionary. |
|
Export |
|
Export EEG data or ICA activity to a delimited text file. |
|
Export EEG dataset(s) as BIDS-like EEGLAB files and sidecars. |
|
Import event records from a text table or in-memory rows. |
|
Import data from an array or supported file into an EEG dataset. |
|
Import a segmented or continuous EGI Net Station MATLAB file. |
|
Import per-epoch metadata and construct its corresponding events. |
|
Import events from a text table or record array. |
|
Load an EEG data file of a supported format from a BIDS dataset. |
|
Load an EEGLAB dataset, its metadata, or selected channels. |
|
Load EEG data from HDF5 file. |
|
Import an ERPSS recording into an EEG dictionary. |
|
Read channel locations and return an EEGPrep |
|
Import an EGI Simple Binary file. |
|
Import the contiguous |
|
Save dataset or session command history to a script file. |
|
Save EEG data to file. |
|
Write continuous EEG data to EDF, BDF, or GDF. |
Event and Epoch Tables#
importevent converts standalone event tables into event dictionaries using
the same field, delimiter, time-unit, alignment, and append rules as
pop_importevent. pop_importevent accepts text files or record sequences
and stores the result on an EEG dataset. Imported latencies
use seconds by default, timeunit=1e-3 selects milliseconds, and
timeunit=numpy.nan selects sample positions. Existing events are appended
unless append="no" is supplied. Alignment can anchor imported rows to the
existing event stream and optionally compensate for small clock-rate drift;
indices uses 1-based event numbers when updating selected rows.
pop_importepoch accepts one row per epoch. It preserves the row metadata in
EEG["epoch"] and creates time-locking and latency-field events in
EEG["event"]. Event latencies are stored as 1-based absolute samples, and
durations are stored as sample counts.
Preprocessing#
|
Run EEGLAB's automatic epoch rejection protocol. |
|
Clean continuous EEG data using the clean_rawdata workflow. |
|
Filter EEG data through the legacy |
|
Filter EEG data using EEGLAB's Hamming-windowed FIR defaults. |
|
Mark or reject epochs using EEGLAB |
|
Extract data epochs time locked to event types or event indices. |
|
Filter EEG data using a windowed-sinc FIR filter. |
|
Estimate a windowed-sinc FIR order. |
|
Interpolate EEG channels using EEGLAB |
|
Mark or reject epochs by local/global joint probability. |
|
Reject channels by probability, kurtosis, spectrum, or standard deviation. |
|
Reject bad channels from spectral outliers. |
|
Reject continuous data portions based on high-frequency power. |
|
Remove rejected epochs. |
|
Mark or reject epochs by local/global kurtosis. |
|
Mark or reject epochs by spectral power thresholds. |
|
Mark or reject epochs containing line-like trends. |
|
Convert an EEG dataset to average or common-reference data. |
|
Resample EEG data to a new sampling rate. |
|
Remove baseline means from an epoched or continuous EEG dataset. |
|
Select EEG data using EEGLAB |
|
Inspect components and optionally mark them in |
|
Select, rename, or delete events using EEGLAB |
|
Design a FIRFilt windowed-sinc FIR and optionally export an |
ICA and Components#
|
Export the ICA weight matrix or inverse weight matrix. |
|
Set ICA rejection thresholds and update |
|
Classify independent components using ICLabel. |
|
Plot properties of one channel or independent component. |
|
Render the EEGLAB viewprops-style extended property dashboard. |
|
Run ICA decomposition with EEGLAB |
|
Remove ICA components from data. |
|
Render channel/component property overview figures and activity views. |
Plotting and Review#
|
Plot precomputed STUDY channel or component measures. |
|
Compare ERP averages for selected datasets using |
|
Run legacy |
|
Plot localized DIPFIT component positions. |
|
Inspect EEG channel or component activity in the scrolling browser. |
|
Plot largest component ERP envelopes and component maps. |
|
EEGLAB-style |
|
Plot ERP or component maps on a spline-interpolated 3-D head mesh. |
|
Plot event-related channel/component cross-coherence. |
|
Plot a channel or component ERSP/ITC decomposition. |
|
Plot channel or component activity in a rectangular/scalp array. |
|
Plot channel ERP traces in a rectangular/scalp-like array. |
|
Plot channel or component spectra and scalp maps. |
|
Plot channel ERP traces and scalp maps at selected latencies. |
|
Select channels by label/index using EEGPrep's channel selector. |
|
Plot EEGLAB-style 2-D scalp maps for ERP latencies or ICA components. |
pop_erpimage follows EEGLAB’s pop_erpimage arguments
(typeplot, channel, projchan, titleplot, smooth, decimate, sortingtype, sortingwin, sortingeventfield
and then any erpimage option),
sorts the trials by event values with eeg_getepochevent,
and returns the erpimage result described under ERP images.
Unlike erpimage, it draws the ERP trace, a colorbar and a scalp map by default.
Its lastcom= keyword reopens the dialog with an earlier history command,
as the Plot menu does.
newtimef accepts EEGLAB’s default outputformat='plot' option; other
output layouts are not yet implemented.
STUDY#
|
Cluster STUDY component rows in |
|
Run cluster edit and plotting actions on |
|
Load a STUDY JSON file saved by |
|
Prepare a STUDY component clustering matrix. |
|
Precompute STUDY channel or component measures. |
|
Save a STUDY structure as an EEGPrep JSON |
|
Create or edit a STUDY structure from loaded EEG datasets. |
|
Edit STUDY designs and select the current design. |
|
Create a STUDY marked as a simple ERP design. |
|
Load selected datasets and create a STUDY. |
Other#
|
Return |
|
Adjust event offset of all or selected events. |
|
Convert data to average reference through |
|
Recenter channel locations using a known or optimized sphere center. |
|
Return 1-based channel correspondences by label. |
|
Import events from rising, falling, or both edges of data channels. |
|
Open an EEGLAB |
|
Edit or assign dataset comments. |
|
Compute and plot grand-average ERPs across loaded datasets. |
|
Copy dataset |
|
Delete datasets from |
|
Run a standalone spherical coarse grid search for ICA components. |
|
Validate headmodel inputs, then fail clearly until FieldTrip is ported. |
|
Validate LORETA prerequisites, then fail clearly until a backend exists. |
|
Run standalone nonlinear dipole refinement for one component. |
|
Configure DIPFIT settings without requiring an EEGLAB runtime. |
|
Add, remove, rename, or update fields in |
|
Edit individual |
|
Update EEGPrep's EEGLAB-compatible options. |
|
Compute and plot statistics for numeric EEG event fields. |
|
Import an EEG file, optionally selecting 1-based channels, samples, or trials. |
|
Import a BrainVision Analyzer MATLAB file. |
|
Find current-dataset components matching another set of scalp maps. |
|
Filter EEG data using a moving-average FIR filter. |
|
Filter EEG data using a Parks-McClellan equiripple FIR filter. |
|
Estimate Parks-McClellan FIR order and pass/stop weights. |
|
Keep only common channels across datasets with the same subject/session. |
|
Flag ICLabel-classified components for later rejection. |
|
Load one or more EEG files from a BIDS dataset. |
|
Import an ERPLAB-style event text file through the generic event importer. |
|
Attach one imported variable value per STUDY subject. |
|
Import a Presentation LOG file using its named event columns. |
|
Estimate Kaiser window beta from passband ripple. |
|
Compute a standalone spherical leadfield for explicit source points. |
|
Fit first-level models for every selected STUDY dataset. |
|
Compute and retain one standalone LIMO second-level result. |
|
Return factor descriptors for one STUDY or design structure. |
|
Import a BCI2000-style file into an EEG dictionary. |
|
Merge two or more EEG datasets. |
|
Fit multiple ICA components using grid search and nonlinear refinement. |
|
Store or retrieve datasets following EEGLAB's |
|
Import an ERPSS recording into an EEG dictionary. |
|
Open a compact rejection menu that combines stored non-browser marks. |
|
Keep or remove continuous data around event types. |
|
Run a Python history script selected by the user. |
|
Compute and plot statistics for one channel or component. |
|
Import a SnapMaster |
|
Run legacy |
|
Write channel locations and return a replayable history command. |