The software has been tested under Linux CentOS 7.2 and Ubuntu 16.04.
To use this software, one should have:
- Matlab 2015b or higher;
- FSL (https://fsl.fmrib.ox.ac.uk/fsl/fslwiki);
- AFNI (https://afni.nimh.nih.gov/);
- All the .m files in this package and the BrainWavelet toolbox (http://www.brainwavelet.org/) are in the Matlab Path.
- The BrainWavelet toolbox should be compiled.
The preprocessing steps include:
- fMRI data brain extraction (bet in FSL).
- Slice timing correction (slicetimer in FSL).
- Motion correction (mcflirt in FSL).
- Smoothing (fslmath in FSL).
- Wavelet Despiking (BrainWavelet toolbox).
- Regress out WM/CSF/Motion parameters and temporal filtering (3dTproject in AFNI).
- FunImg register to T1, then normalize to 3mm Standard Space (BBR, flirt and fnirt in FSL).
- T1 data are also preprocessed duing these steps (bet,fast,flirt,fnirt).
Arrange the data in a folder as (see 'example' folder as an example) :
('data' is a folder, 'subject 1',..., 'subject n' are folders, 'T1' are folders)
(/subject_k_rest.nii.gz/ is the resting-state fMRI data of k-th subjects. The name of the data can be arbitrary.)
(/subject_k_t1.nii.gz/ is the T1 structure data of k-th subjects. The name of the data can be arbitrary.)
|---/subject_1_rest.nii.gz/
|---'subject 1'-----|---'T1'---/subject_1_t1.nii.gz/
|---/subject_2_rest.nii.gz/
|---'subject 2'-----|---'T1'---/subject_2_t1.nii.gz/
'data'-- |---....nii.gz
|---...........-----|---'T1'---....nii.gz
|---/subject_n_rest.nii.gz/
|---'subject n'-----|---'T1'---/subject_n_t1.nii.gz/
Set the parameters in the 'Script_to_run.m' script, and type
nohup matlab -nodisplay <Scipt_to_Run.m> report.log &
in the terminal to begin the preprocessing. If something goes wrong, you can just delete or fix the 'bad' data and rerun the above command. The software will automatically continue to process the steps that have not been done.
Outputs of this software:
-
The file 'FunImg_3mmStdSpace.nii.gz' and 'FunImg_3mmStdSpace_NoGlobalSignal.nii.gz' in the '7_FunImg_to_Std' folder is data one can use for further analysis. 'FunImg_3mmStdSpace.nii.gz' is the data in the 3mm standard space with global signal preserved. 'FunImg_3mmStdSpace_NoGlobalSignal.nii.gz' is the data in the 3mm standard space with global signal being regressed out.
-
The file 'meanFD_power.1D' in the '3_Motion_Corrected' folder is the mean Framewise displacement (FD) of this subject.
-
The file '**_normalization.tif' is a picture for checking the spatial normalization quality of fMRI data and T1 data. The first column shows the normalized fMRI data in standard space, and the second column shows the normalized T1 data in standard space, and the third column is the template used.
-
The file '**_6head_motion.tif' is a picture that shows the 6 ridge-body transformation parameters estimated in the motion correction step by mcflirt in FSL.
If you have any questions, please email me at [email protected]