-
Notifications
You must be signed in to change notification settings - Fork 0
/
SIM_tacc.sbatch
52 lines (40 loc) · 1.08 KB
/
SIM_tacc.sbatch
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
#!/bin/bash
#SBATCH --job-name=SIM.NAD.RFT
#SBATCH --output=error/out.SIM.NAD.RFT
#SBATCH --error=error/err.SIM.NAD.RFT
#SBATCH --time=3:00:00
#SBATCH -n 25
#SBATCH -N 1
#SBATCH -p normal
#SBATCH [email protected]
#SBATCH --mail-type=begin # email me when the job starts
#SBATCH --mail-type=end # email me when the job finishes
. ./config_tacc.sh
# Load modules
module load fsl/5.0.9
module load python/2.7.11
# Parameters for software
export FSLDIR=/work/01329/poldrack/lonestar/software_lonestar5/fsl-5.0.8
export PATH=$PATH:$FSLDIR
source $FSLDIR/etc/fslconf/fsl.sh
export FSLOUTPUTTYPE='NIFTI_GZ'
PILOT=10
FINAL=40
EXC="2.3"
MODEL="RFT"
BATCH=$i
simsperbatch=25
#indices=($(seq 2 226))
#indices=("${indices[@]}" $(seq 251 275))
#echo ${#indices[@]}
for k in $(seq 1 $simsperbatch);
do
id=$(((i-1)*$simsperbatch+k))
SEED=$id
#SEED=${indices[$id]}
ADAPTIVE="predictive"
export OUTDIR=$(echo $RESDIR\SIM_$ADAPTIVE\_$PILOT\_$EXC\_$MODEL)
if [ ! -d "$OUTDIR" ]; then mkdir $OUTDIR; fi
python $SCRIPTDIR/SIM.py $EXC $PILOT $FINAL $SEED $ADAPTIVE $MODEL &
done
wait