brain_deer.plugins.leaddbs_space_paths

Portable LeadDBS MNI template paths (no machine-specific absolute paths).

Set LEADDBS_SPACE_ROOT to the directory that contains atlases/ and t1.nii (e.g. .../templates/space/MNI152NLin2009bAsym) if leadDBS is not under the default ~/leadDBS or ~/Documents/Toolboxes/leadDBS layout.

Set LEADDBS_ROOT to the leaddbs program directory (the folder that contains templates/electrode_models/) when that tree is not next to the space template or when you use a custom Lead-DBS install path. The atlas browser and future Lead-DBS/BrainDeer links use leaddbs_toolbox_root().

Functions

leaddbs_space_root(→ Optional[str])

.../templates/space/MNI152NLin2009bAsym if it exists on disk.

leaddbs_toolbox_root(→ Optional[str])

The leaddbs program directory (contains templates/electrode_models/, ea_*.m, …).

fallback_atlases_path_for_ui(→ str)

QFileDialog start path when LeadDBS is not detected.

candidate_template_paths(→ List[str])

Ordered unique existing template NIfTI paths under common layouts.

Module Contents

brain_deer.plugins.leaddbs_space_paths.leaddbs_space_root() → str | None

.../templates/space/MNI152NLin2009bAsym if it exists on disk.

brain_deer.plugins.leaddbs_space_paths.leaddbs_toolbox_root() → str | None

The leaddbs program directory (contains templates/electrode_models/, ea_*.m, …). Set LEADDBS_ROOT to your clone (e.g. .../leaddbs) so DBS features find electrode .mat files when space templates are not under the same tree. Future LeadDBS braindeer bridge uses the same root.

brain_deer.plugins.leaddbs_space_paths.fallback_atlases_path_for_ui() → str

QFileDialog start path when LeadDBS is not detected.

brain_deer.plugins.leaddbs_space_paths.candidate_template_paths() → List[str]

Ordered unique existing template NIfTI paths under common layouts.