brain_deer.plugins.leaddbs_stimulation_manager.widget

Lead-DBS Stimulation Manager widget — single-patient & cohort electrode overlays.

Classes

CohortEntry

One patient / reconstruction in the Stimulation Manager cohort.

StimulationManagerWidget

Lead-DBS electrode overlays for one patient or a multi-patient cohort.

Functions

discover_patient_dirs(→ List[str])

Return subject folders under path that contain a reconstruction .mat.

Module Contents

class brain_deer.plugins.leaddbs_stimulation_manager.widget.CohortEntry

One patient / reconstruction in the Stimulation Manager cohort.

brain_deer.plugins.leaddbs_stimulation_manager.widget.discover_patient_dirs(path: str) → List[str]

Return subject folders under path that contain a reconstruction .mat.

Accepts a single subject folder, a derivatives/leaddbs folder, or any parent that contains sub-* children with reconstructions.

class brain_deer.plugins.leaddbs_stimulation_manager.widget.StimulationManagerWidget(main_window=None, parent=None)

Bases: PyQt5.QtWidgets.QWidget

Lead-DBS electrode overlays for one patient or a multi-patient cohort.

configure_dbs_paths(*, leaddbs_root: str | None = None, patient_dir: str | None = None, space: str | None = None, save_settings: bool = True, load_patient: bool = False) → dict

Set toolbox / space. Optionally load patient_dir into the cohort.

load_dbs_electrodes(*, silent: bool = False, reconstruction_mat: str | None = None, patient_dir: str | None = None) → dict

Load (or reload) one patient’s electrodes — CLI / API compatibility.