-
Notifications
You must be signed in to change notification settings - Fork 76
Third party
If you want to run the convert <dataset>-to-bids
commands (e.g. adni-to-bids
), you may have to install the dcm2niix, dcm2nii and/or FreeSurfer tools.
dcm2nii | dcm2niix | FreeSurfer | |
---|---|---|---|
adni-to-bids |
x | x | |
aibl-to-bids |
x | x | x |
nifd-to-bids |
x | ||
oasis-to-bids |
Please refer to each tool’s website for installation instructions:
- dcm2niix Download here and follow the installation instructions on the same page.
-
dcm2nii
dcm2nii
is incuded in MRIcron and can be downloaded here. Please download the 2016 version sincedcm2nii
is no more available afterwards. -
FreeSurfer 6.0
- For Linux users, download and install FreeSurfer following the instructions on the wiki. Please note that on Ubuntu you will need to install the packages
tcsh
andlibjpeg62
(asudo apt-get install tcsh libjpeg62
should do the job). - For Mac users, download here and follow the instructions on the FreeSurfer wiki.
- For Linux users, download and install FreeSurfer following the instructions on the wiki. Please note that on Ubuntu you will need to install the packages
Do not forget to check the installations following each tool’s guidelines.
Not all the following dependencies are necessary to install and run Clinica. You may want to only install the software packages used by certain pipelines of Clinica. Pipelines' specific dependencies are listed below:
ANTs | CAT12 | Convert3D | FreeSurfer | FSL | ITK | Matlab | MRtrix3 | PETPVC | SPM | |
---|---|---|---|---|---|---|---|---|---|---|
t1-volume-* |
x | x | x | |||||||
t1-freesurfer |
x | |||||||||
dwi-preprocessing-* |
x | x | x | x | ||||||
dwi-dti |
x | x | x | |||||||
dwi-connectome |
x | x | x | |||||||
pet-surface |
x | x* | x* | x | ||||||
pet-volume |
x | x* | x | x* | x | |||||
statistics-surface |
x | |||||||||
machine-learning-* |
*You only need to install ITK if you plan to perform partial volume correction using PETPVC.
Depending on the architecture and OS of your system, setup of third party libraries can change. Please refer to each tool’s website for installation instructions:
- ANTs v2.3.1 Download here and follow the instructions on the ANTs wiki.
- CAT12 Download the latest version here and follow the instructions to ensure that your cat12 folder is located in your spm/toolbox folder.
- Convert3D Download here.
-
FreeSurfer
- For Linux users, download and install FreeSurfer following the instructions on the wiki. Please note that on Ubuntu you will need to install the packages
tcsh
andlibjpeg62
( asudo apt-get install tcsh libjpeg62
should do the job). - For Mac users, download here and follow the instructions on the FreeSurfer wiki.
- For Linux users, download and install FreeSurfer following the instructions on the wiki. Please note that on Ubuntu you will need to install the packages
- FSL 6.0 Download here and follow the instructions on the FSL wiki (this page for Linux users and this page for Mac users).
- ITK Follow the instructions on the ITK blog (this page for Linux users and this page for Mac users).
-
MRtrix3 Follow the instructions on the MRtrix website (this page for Linux users and this page for Mac users). Note for Mac users: the fastest solution is to use Homebrew: a
brew tap MRtrix3/mrtrix3
command followed bybrew install mrtrix3
will install MRtrix3. - Matlab
- PETPVC 1.2.4 Follow the instructions here. Do not forget to compile in RELEASE mode, otherwise, partial volume correction will be very slow.
- SPM12 Download the latest version here and follow the instructions on the SPM wiki (this page for Linux users and this page for Mac users).
Do not forget to check the installations following each tool’s guidelines.
Edit the configuration file associated to your shell. If you are using bash
, it can be ~/.bashrc
or ~/.bash_profile
, if you are using zsh
, it must be ~/.zshrc
. Your file must look like as below. Please be careful if you copy/paste this, some adjustments are needed. You must specify on the corresponding lines the path to your different installations.
# System language setting:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Miniconda
source /path/to/your/Miniconda/etc/profile.d/conda.sh
# ANTs
export ANTSPATH="/path/to/your/ANTs"
export PATH=${ANTSPATH}:${PATH}
# FreeSurfer
export FREESURFER_HOME="/Applications/freesurfer"
source ${FREESURFER_HOME}/SetUpFreeSurfer.sh &> /dev/null
# FSL
# Uncomment the line below if you are on Mac:
#export FSLDIR="/usr/local/fsl"
# Uncomment the line below if you are on Linux:
#export FSLDIR="/usr/share/fsl/6.0"
export PATH="${FSLDIR}/bin":${PATH}
source ${FSLDIR}/etc/fslconf/fsl.sh
# Matlab
export MATLAB_HOME="/path/to/your/matlab/bin/"
export PATH=${MATLAB_HOME}:${PATH}
export MATLABCMD="${MATLAB_HOME}/matlab"
# MRtrix3
export MRTRIX_HOME="/path/to/your/mrtrix3"
export PATH="${MRTRIX_HOME}/bin":"${MRTRIX_HOME}/scripts":${PATH}
# SPM
export SPM_HOME="/path/to/your/spm12"
# Dcm2nii
export PATH="/path/to/your/dcm2nii:$PATH"
!!! Note
zsh
shell users will have to add this right before the last line of their configuration file to enable autocompletion in Clinica:
bash autoload bashcompinit bashcompinit source ~/.bash_completion.d/python-argcomplete.sh
You must also add SPM to the MATLAB path variable if you installed it as a toolbox. To do so, add the following line to your startup.m
file located in your initial working folder, by default ~/Documents/MATLAB
(see here for more details). If the file does not exist, you can create it and type inside:
addpath('/path/to/your/spm12');
You can also replace the previous line by the following, assuming the SPM_HOME
environment variable is set in your ~/.bashrc
file.
[~, spmhome] = system('source ~/.bashrc > /dev/null; echo $SPM_HOME;');
spmhome = strsplit(spmhome,'\n');
addpath(spmhome{end-1});
!!! Note
zsh
shell users will have to replace ~/.bashrc
by ~/.zshrc
.