This pipeline has some scripts to use recon-all and extract stats.
Main reference: http://freesurfer.net/fswiki/LongitudinalProcessing
- freesurfer
- MATLAB
- Sun Grid Engine
- LobesScalingCode, MATLAB toolbox
-
First, export your data using BIDS specs.
-
Copy file
.env_sample
renaming to.env
and set the environment variables inside this file with the path for each directory. -
Run recon-all using this command in a terminal:
./01-preproc_sge.sh
This script looks for each session present in the BIDS dataset and performs the command
recon-all
for them. Output directories that already exist are skipped. It also generates the template and longitudinal folders. Reference: http://freesurfer.net/fswiki/LongitudinalProcessing -
recon-all again, but this time with the flag -localGI. Run this command in a terminal:
./02-scriptalllgi.sh
This step requires the software MATLAB. Output are located at
$LOGDIR
.Note: Check for errors using the script
check-logs.sh
-
Extract some stats using this command in a terminal:
./03-extracts_stats.sh
The results will be placed inside
$STATSDIR
-
In MATLAB, run this command:
lobes_scaling_code.m
The results will be placed inside the output directory of each subject, inside the directory
LobesScaling