-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPP_sbatch_act_7.sh
executable file
·58 lines (39 loc) · 1.27 KB
/
PP_sbatch_act_7.sh
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
#!/bin/bash
# written by Nathan Muncy on 8/11/17
#SBATCH --time=15:00:00 # walltime
#SBATCH --ntasks=2 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH --mem-per-cpu=8gb # memory per CPU core
#SBATCH -J "PPants" # job name
# Compatibility variables for PBS. Delete if not needed.
export PBS_NODEFILE=`/fslapps/fslutils/generate_pbs_nodefile`
export PBS_JOBID=$SLURM_JOB_ID
export PBS_O_WORKDIR="$SLURM_SUBMIT_DIR"
export PBS_QUEUE=batch
# Set the max number of threads to use for programs using OpenMP. Should be <= ppn. Does nothing if the program doesn't use OpenMP.
export OMP_NUM_THREADS=$SLURM_CPUS_ON_NODE
### passed variables
workDir=$1
scan=$2
### functions
DoACT.Function() {
struct=$1
tempDir=~/compute/PreProc_Methods/Template
priorDir=${tempDir}/priors_ACT
tempH=${tempDir}/PreProc_head_template.nii.gz
tempB=${tempDir}/PreProc_brain_template.nii.gz
pmask=${priorDir}/Template_BrainCerebellumProbabilityMask.nii.gz
emask=${priorDir}/Template_BrainCerebellumExtractionMask.nii.gz
out=act_
antsCorticalThickness.sh \
-d 3 \
-a $struct \
-e $tempH \
-t $tempB \
-m $pmask \
-f $emask \
-p ${priorDir}/Prior%d.nii.gz \
-o $out
}
cd $workDir
DoACT.Function $scan