#!/bin/bash -l # Set SCC project #$ -P PROJECT_NAME # Give this job a name #$ -N JOB_NAME # Combine output and error files into a single file #$ -j y # Send an email when the job finishes or if it is aborted (by default no email is sent). #$ -m ae # Request 4 cores for the -parellel flag. #$ -pe omp 4 # Defaults to fair-share mem_per_core, which is at minimum 4GB. #$ -l mem_per_core=4G # Load desired version of freesurfer module load freesurfer/8.0.0 # Set environment variables. # SUBJECT_ID # description: an arbitrary string to identify this subject # examples: SUBJECT_ID=sub-001 SUBJECT_ID=YOUR_DESIRED_SUBJECT_IDENTIFIER # SUBJECTS_DIR # description: the full path to a directory where the output will be written. A new folder $SUBJECTS_DIR/$SUBJECT_ID will be created # examples: SUBJECTS_DIR=/projectnb/scv/kkurkela/bids/derivatives/freesurfer/ # note: freesurfer will look for this variable in the enviornment. See recon-all -help export SUBJECTS_DIR=/FULL/PATH/TO/SOME/OUTPUT/DIRECTORY # Set recon-all variables recon-all -autorecon2-cp -autorecon3 -subjid $SUBJECT_ID -parallel -openmp $NSLOTS