README.md
Alzheimer’s Disease Neuroimaging Initiative ADNI T1-weighted MRI pre-processing for deep learning pipelines. Huge thanks to Tian Xia for sharing initial code.
------->- Reorientation (FSL fslreorient2std)
- Cropping (FSL robustfov)
- Brain Extraction (FSL bet)
- Atlas Affine Registration (FSL flirt)
- Resolution (1 or 2 mm) can be chosen at this step
- Structure segmentation and bias correction (FSL fast)
- Intensity normalization between [-1,1]
- Clip intensity at 99.5% of max values (numpy.percentile)
- Central slice cropping. Default to 60mm around the centre along the z axis.
For downloading the dataset, we refer the user to the ADNI website . You will need to apply for the data with a brief description of your project. Upon acceptance (which should take only a few days), you will download the images through the LONI Image and Data Archive. After login in and selecting the ADNI dataset, you will need to download at least two files:
- Summary spreadsheet
- Download > Study Data > Data&Database > Key ADNI tables merged into one table (file)
- MRI Images
- Download > Image Collections > Other Shared Collections
- ADNI1_Screening_1.5T
- ADNI1_Complete_1Yr_1.5T
- ADNI1_Complete_2Yr_1.5T
- ADNI1_Complete_3Yr_1.5T
- Download > Image Collections > Other Shared Collections
Unzip the imaging folders and save them in a single folder called "raw_data" which will have the following structure:
raw_data/<subject_id>/<preprocessing>/<date>/<acquisition_id>/<file_name>.nii
Create a conda environment with
conda env create -f environment.yml
then, activate the environment with
conda activate adni
Most image processing methods were done using using the FSL Neuroimaging tool. You may install it by running:
python2 fsl_ubuntu/fslinstaller.py
or by following the instructions here.