forked from breakspear/diffusion-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dtiblank
executable file
·56 lines (40 loc) · 1.6 KB
/
dtiblank
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
#Template file which sets up PBS requirements for all jobs
# All required resource statements start with "#PBS -l"
# These will be interpreted by the job submission system (PBS pro)
#PBS -v ncpus=8,MRTRIX=/software/mrtrix3/mrtrix3-AP
#PBS -l ncpus=8,mem=2G
# *select* is the number of parallel processes
# *ncpus* is the number of cores required by each process
# *mem* is the amount of memory required by each process
#PBS -l walltime=47:00:00
# *walltime* is the total time required in hours:minutes:seconds
# to run the job.
# Warning: all processes still running at the end of this period
# of time will be killed and any temporary data will be erased.
#PBS -m abe
#NOTE: if you want to receive notifications about job status, enter your QIMR email after the "abe" above
# *m* situations under which to email a) aborted b) begin e) end
# *M* email address to send emails to
export OMP_NUM_THREADS=8
####
#Find all scripting files
#currdir=$(pwd)
pipedir=&&&&
PATH=$PATH$( find $pipedir/ -not -path '*/\.*' -type d -printf ":%p" )
#export PATH:$PATH
####
#Load all required software
module load mrtrix3/3.0_RC3
module load freesurfer/6.0.0
module load ANTs/20160509
module load fsl/5.0.9_eddy
####
#Setup dir for temp MRtrix files to be written - otherwise they get sent to nodes tmp dir
#WORKDIR=&&&&
#echo "TempDir: ${WORKDIR}/tmp" > /mnt/lustre/$USER/.mrtrix.conf
#Extract ID of subject and their corresponding folder holding raw image files
subj=@@@@
subjDIRECTORY=????
cd $subjDIRECTORY
%%%% #"%%%%" will match to the string that corresponds to your personalised batch script, or preferred pipeline