Skip to content

Support single-chromophore fNIRS data (HbO only)? #14533

Open

Description

@kalomak

Describe the new feature or enhancement

Some public datasets ship only HbO, e.g. Hudak et al. 2018 (Hitachi ETG-4000, doi:10.17026/DANS-XRK-HNHB).

The fNIRS data validation method _check_channels_ordered called in most api functions requires both chromophores, so e.g. set_montage and interpolate_bads raise

ValueError: At least two chromophore must exist in info, got ['hbo']

Should this be supported? It looks feasible and easy to implement, since chromophores are always(?) treated independently in data processing functions like the ones above. But would probably require additional checks or handling of single chromophore data in places like plotting functions.

I can implement if yes.

Describe your proposed implementation

Relax the check in _check_channels_ordered (mne/preprocessing/nirs/nirs.py) for chromophore data to accept ["hbo"] or ["hbr"] alone in addition to ["hbo", "hbr"].

Describe possible alternatives

Additional context

No response

Activity

  1. yashgoyal0110 commented on Nov 13, 2026

    @yashgoyal0110

    assign please!

  2. larsoner commented on Nov 17, 2026

    @larsoner
    Member

    @kalomak feel free to open a PR if you're up for implementing this!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions