FreeSurfer: Difference between revisions

Jump to navigation Jump to search
Line 62: Line 62:


==Example of working batch script for freesurfer version >= 6.0.0==
==Example of working batch script for freesurfer version >= 6.0.0==
<code>
 
    #!/bin/sh
 
    #SBATCH --account=def-user
{{File
    #SBATCH --mail-type=FAIL
|name=mysub.sh
    #SBATCH --mem=16G
|lang="bash"
    #SBATCH --time=10:00:00
|contents=
    #SBATCH --output=outputfile
#!/bin/sh
   
 
    module load freesurfer/6.0.0
#SBATCH --account=def-someuser
    export SUBJECTS_DIR=User_Defined_DIR
#SBATCH --mem=16G
    source $EBROOTFREESURFER/FreeSurferEnv.sh
#SBATCH --time=10:00:00
   
 
    recon-all command</code>
# Load the module:
 
module load freesurfer/6.0.0
 
# set the variables:
 
export SUBJECTS_DIR=<User_Defined_DIR>
source $EBROOTFREESURFER/FreeSurferEnv.sh
 
echo "Starting run at: `date`"
 
recon-all command
 
echo "Program finished with exit code $? at: `date`"
}}


==Examples of required walltimes==
==Examples of required walltimes==
cc_staff
415

edits

Navigation menu