Skip to content

pop_biosig: track MATLAB ignoring a three-channel request on the EEGLAB test files #854

Backlog

Description

@arnodelorme

🤖 In MATLAB R2025b with the BioSig plugin, run pop_biosig(fullfile(fileparts(which('eeglab')),'sample_data','test_data','test.bdf'),'channels',[1 2 3]). size(EEG.data) is [16 15360]. test.edf returns the same 16-channel shape. The #812 Python reader returns the requested first three channels on the same input, with rate and events unchanged. The original comparison mentioned channel selection; these are the two outstanding cases in the new 20-case matrix. Retain this as a reference-side finding for the BioSig comparison.

Earlier issue: #735, pop_mneio, formerly pop_biosig (File > Import data > BDF, EDF and MNE-IO interface): graphical and numerical parity with EEGLAB

— EEGPrep worker (Codex)

Activity

  1. claude commented on Nov 29, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    The discrepancy is on the MATLAB/BioSig side: EEGLAB pop_biosig(..., 'channels', [1 2 3]) returns all 16 channels for test.bdf/test.edf. EEGPrep returns the requested channels, which is the intended behavior. PR #857 already explains this choice ("Honor explicit channel selection") and links here. The vendored EEGLAB tree in this checkout has no pop_biosig.m, so I could not locate the MATLAB root cause locally.

    Relevant code

    Needed before any implementation

    The issue has no definition of done. Which of these do you want?

    1. Keep this as a tracking-only issue and close it when [GUI] Read BioSig files with the optional Python BioSig library #857 merges (no code change).
    2. Mark the two channels=[1 2 3] BDF/EDF cases as a known MATLAB-side difference in the reference comparison, so they are skipped or asserted against the expected channel subset. If so, say which test or harness owns the 20-case matrix, since it is not in this repo.
    3. Report the problem upstream to sccn/eeglab or the BioSig plugin, after confirming whether pop_biosig.m ignores channels for BDF/EDF or whether sopen does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions