-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMT_sbatch_antsReg_02.sh
More file actions
executable file
·42 lines (29 loc) · 925 Bytes
/
MT_sbatch_antsReg_02.sh
File metadata and controls
executable file
·42 lines (29 loc) · 925 Bytes
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
#!/bin/bash
#SBATCH --time=05:00:00 # walltime
#SBATCH --ntasks=4 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH --mem-per-cpu=8gb # memory per CPU core
#SBATCH -J "mniV2ants" # 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
cd $1
FIX=$3
MOV=$2
OUT=ants_
subj=${2%_*}
ITS=100x100x100x20
DIM=3
INTENSITY=CC[${FIX},${MOV},4,4]
${ANTSPATH}/ANTS \
$DIM \
-o $OUT \
-i $ITS \
-t SyN[0.1] \
-r Gauss[3,0.5] \
-m $INTENSITY
WarpImageMultiTransform $DIM $MOV ${subj}_mni.nii.gz ${OUT}Warp.nii.gz ${OUT}Affine.txt -R $FIX