This script is used for brain age prediction. Below is a description of each input arguments:
./get_brainage.sh -input <input_directory> \
-output <output_directory> \
-BIDS <yes/no> \
-CONDOR <yes/no> \
-RAW <yes/no> \
-RUN_FILE <bash_file_path> \
-SAVE_ALL <yes/no> \
-CONTAINER_PATH <path/to/containers> \
<subject_name>_<model>.csv
condor.submit
filerun_<model>.sh
filesubject_features
), if yes then the files will be stored in the folder <subject_name>_<model>
1) Building the container
singularity build brainageR.sif brainageR.def
(not working at the moment)
2) Run the get_brainage.sh
with the proper files and paths
Example:
./get_brainage.sh -input <input_directory> \
-output <output_directory> \
-BIDS <yes/no> \
-CONDOR <yes/no> \
-RAW <yes/no> \
-RUN_FILE run_brainageR.sh \
-SAVE_ALL <yes/no> \
-CONTAINER_PATH <path/to/containers> \
1) Building the containers
Preprocessing: singularity build --fakeroot cat_preprocessing.simg Singularity_r2042
Prediction: singularity build --fakeroot enigma_stacking_agepred.simg enigma_stacking_pred.def
/!\ It is important to not change the name of the containers
2) Run the get_brainage.sh
with the proper files and paths
Example:
./get_brainage.sh -input <input_directory> \
-output <output_directory> \
-BIDS <yes/no> \
-CONDOR <yes/no> \
-RAW <yes/no> \
-RUN_FILE run_enigma.sh \
-SAVE_ALL <yes/no> \
-CONTAINER_PATH <path/to/containers> \
1) Downloading the files
You should first download the following files: Singularity_r2042
, BA_predict.recipe
and run_more.sh
2) Building the containers
Preprocessing: singularity build --fakeroot cat_preprocessing.simg Singularity_r2042
Prediction: singularity build --fakeroot BA_predict.sif BA_predict.recipe
/!\ It is important to not change the name of the containers
3) Run the appropriate bash script for one subject or several
Examples:
For one subject:
./run_more.sh -input <path/to/input_file> \
-output <path/to/output_dir> \
-RAW <yes/no> \
-SAVE_FILE <yes/no> \
-CONTAINER_PATH <path/to/container_dir> \
-MODEL_NAME <model_name>
For several subjects:
./get_brainage.sh -input <input_directory> \
-output <output_directory> \
-BIDS <yes/no> \
-CONDOR <yes/no> \
-RAW <yes/no> \
-RUN_FILE run_more.sh \
-SAVE_ALL <yes/no> \
-CONTAINER_PATH <path/to/containers> \
-MODEL_NAME <model_name>