One participant in an MNA project — owner of measurement sessions and link to the FreeSurfer anatomy. More...
#include "mna_global.h"#include "mna_session.h"#include <QString>#include <QList>#include <QJsonObject>#include <QCborMap>#include <QSet>

Go to the source code of this file.
Classes | |
| struct | MNALIB::MnaSubject |
Namespaces | |
| namespace | MNALIB |
| MNE Analysis Container Format (mna/mnx). | |
One participant in an MNA project — owner of measurement sessions and link to the FreeSurfer anatomy.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
MnaSubject is the root of the per-participant subtree in an MNA project. It binds together all sessions/recordings that belong to one person and pins their structural MRI reconstruction via freeSurferDir, a project-relative path to the matching $SUBJECTS_DIR entry. Keeping that pointer alongside the data means forward solutions, source spaces and parcellations always resolve to the correct anatomy without relying on environment variables at analysis time.
The id mirrors the BIDS sub-XX convention and is the key downstream consumers (forward modelling, source estimation, group statistics) use to look the subject up. sessions holds the ordered MnaSession list, and extras preserves any demographic, clinical or consent-tracking fields that newer tooling may attach so older MNALIB builds can still read and re-write the project without data loss.
Definition in file mna_subject.h.