v2.0.0
Loading...
Searching...
No Matches
selectionio.h File Reference

Reader / writer for MNE .sel channel-selection files and Brainstorm .mon montage files. More...

#include "utils_global.h"
#include <vector>
#include <string>
#include <map>
#include <QMap>
#include <QStringList>
Include dependency graph for selectionio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UTILSLIB::SelectionIO
 Reader/writer for MNE .sel channel-selection files and Brainstorm .mon montage files. More...

Namespaces

namespace  UTILSLIB
 Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).

Detailed Description

Reader / writer for MNE .sel channel-selection files and Brainstorm .mon montage files.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2015-2026 MNE-CPP Authors

Author
Lorenz Esch loren.nosp@m.z.es.nosp@m.ch@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org; Juan GPC jgarc.nosp@m.iapr.nosp@m.ieto@.nosp@m.mgh..nosp@m.harva.nosp@m.rd.e.nosp@m.du; Gabriel Motta gabri.nosp@m.elbe.nosp@m.nmott.nosp@m.a@gm.nosp@m.ail.c.nosp@m.om; Andreas Griesshammer ag@fi.nosp@m.eldl.nosp@m.inein.nosp@m.c.co.nosp@m.m
Since
0.1.0
Date
May 2015

UTILSLIB::SelectionIO converts between two text-based grouping formats that mne-cpp's GUI tools and command-line pipelines hand back and forth with sibling toolchains:

  • MNE .sel — one selection group per line, holding the channels visible in a given montage ("Left-temporal", "All MEG", ...); shared with mne-python and mne-c.
  • Brainstorm .mon — one montage definition per file, used by the Brainstorm GUI for the same purpose.

Both directions are supported (single-file .sel, fanned- out .mon set) and both QString and std::string overloads exist so the parser can be used from the Qt GUI layer and from headless tests without a string conversion.

Definition in file selectionio.h.