mne-tools / mne-tools/mne-python

support user-defined event fields in mne.read_epochs_eeglab()

Open
#3,837 23 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

Hi all,

EEGLAB supports adding custom field names in the event structure, on top of the default ones (type, latency, duration, urevent, epoch) :
https://sccn.ucsd.edu/wiki/Chapter_03:_Event_Processing#Event_fields

For instance I use a behaviour field to store the subjects responses on each epoch.

It would be very useful if one could somehow access those custom fields in MNE (maybe the option already exists but I haven't found it).

Best wishes,
Nicolas

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing mne.read_epochs_eeglab() and how it currently handles EEGLAB's default event fields. Determine how a custom field such as behaviour should be exposed in MNE, then verify that custom event values remain accessible for imported epochs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.