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

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>
Include dependency graph for mna_subject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MNALIB::MnaSubject

Namespaces

namespace  MNALIB
 MNE Analysis Container Format (mna/mnx).

Detailed Description

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

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.0
Date
April 2026

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.