Installation
Last updated
Last updated
Recommended RAM size: 32GB or more
MATLAB: R2022b or later
MATLAB Image Processing Toolbox
MATLAB Signal Processing Toolbox
MATLAB Statistics and Machine Learning Toolbox
MATLAB Curve Fitting Toolbox (optional)
MATLAB Parallel Computing Toolbox (optional)
Download Lead-DBS from .
Extract the downloaded zip into your MATLAB toolbox folder. For example, it can be in your home folder under Documents/MATLAB/toolbox
. Please avoid extracting Lead-DBS into MATLAB installation folder or other folder which requires sudo
or administrator
permission. An installation directory path with spaces should also be avoided.
Add SPM12 in your MATLAB search path: right-click on the SPM12 folder and choose Add to Path
-> Selected Folders
(NOT Selected Folders and Subfolders
).
Add Lead-DBS in your MATLAB search path: right-click on the Lead-DBS folder and choose Add to Path
-> Selected Folders and Subfolders
.
Once Lead-DBS is added to your MATLAB search path, you can start it by running lead dbs
in MATLAB Command Window.
For more experienced users or developers who'd also wish to modify the code and potentially improve Lead-DBS, there is an alternative way of installation:
Add SPM12 in your MATLAB search path: right-click on the SPM12 folder and choose Add to Path
-> Selected Folders
(NOT Selected Folders and Subfolders
).
Add Lead-DBS in your MATLAB search path: right-click on the Lead-DBS folder, choose Add to Path
-> Selected Folders
(NOT Selected Folders and Subfolders
) and then run ea_setpath
in MATLAB Command Window to set the path.
This alternative way of installation can also make it easy to receive quicker (most often daily) hotfixes or updates and helps us to assist you in a more flexible way.
We'd love to implement your improvements into Lead-DBS – feel free to submit pull requests or contact us for direct push access.
Several add-ons are available which can be installed manually from inside Lead-DBS. For most cases, Lead-DBS will try to auto-install these when needed. You can also take a look at the Install
menu within the main Lead-DBS GUI to install custom items.
If you have a normal installation of Lead-DBS, you can use the menu Install
-> Install development version of Lead-DBS
. It will download and apply the latest hotfix before a new release is available.
If you have Lead-DBS installed via GitHub, simply pull
from GitHub (in the terminal or any Git client you prefer).
Clone (NOT download) the Lead-DBS repository from and switch to develop
branch.
Download the necessary and unzip it into the cloned git repository.
If you have the GitHub installation of Lead-DBS and need to switch between the develop
branch and the classic
branch, you must also download the and unzip it into the Lead-DBS installation folder. To switch branches, you can utilize the MATLAB helper functionsea_switch2classic
and ea_switch2dev
(ensure is installed on your system. While it often comes preinstalled on Linux and macOS, Windows users typically need to install it manually). This will ensure that the prefs and recent histories for both branches are preserved correctly.
We try to maintain compatibility to Linux, masOS and Windows, but given our small team, not all functions are well tested on all OSs ().
DICOM viewer
NIfTI viewer ,
(macOS)