-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdtiblank
executable file
·54 lines (40 loc) · 1.54 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
#!/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=/opt/software/mrtrix3/rc3
#PBS -l nodes=1:ppn=8,mem=8G
# *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 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/rc3
module load freesurfer/6.0.0
module load ants/2.1.0
#Manually add other software
FSLDIR=/home/mpib/LNDG/FSL/fsl-5.0.11
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
#Extract ID of subject and their corresponding folder holding raw image files
subj=@@@@
subjBIDSDIRECTORY=????
cd $subjBIDSDIRECTORY
%%%% #"%%%%" will match to the string that corresponds to your personalised batch script, or preferred pipeline