-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqsub_HardSweep
executable file
·61 lines (47 loc) · 1.32 KB
/
qsub_HardSweep
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
57
58
59
60
#### submit_Admixture job####
#!/bin/bash #-- what is the language of this shell
#$ -cwd
# error = Merged with joblog
#$ -o joblog.$JOB_ID.$TASK_ID
#$ -j y
## Edit the line below as needed:
#$ -l h_rt=200:00:00,h_data=13G,highp
## Modify the parallel environment
## and the number of cores as needed:
#$ -pe shared 1
# Notify when
##$ -m e
# Job array indexes
#$ -t 1-10:1
# echo job info on joblog:
echo "Job $JOB_ID started on: " `hostname -s`
echo "Job $JOB_ID started on: " `date `
echo " "
# load the job environment:
. /u/local/Modules/default/init/modules.sh
module load anaconda3
module load python/3.7.3
#activate slim environment
source /u/local/apps/anaconda3/2020.11/etc/profile.d/conda.sh
conda activate slim
is=(null ${is[@]}) # this pads the file with an extra line in the beginning.
i=${is[$SGE_TASK_ID]}
echo $i
id=$SGE_TASK_ID
slim -v
sampleSize=177
PF=1
recomb_rate=5e-9
for introduceMut in 280 500 1000; do
for AgeSweep in 40 100 250; do
for s in 0.01 0.0075; do #0.001 0.005 0.1 0.025 0.05
file=tmp_intermediate_files/HardSweep_tmp_${id}.txt
echo ${file}
bash run_HardSweep.sh ${file} $sampleSize $id $introduceMut $PF $recomb_rate $AgeSweep $s
done
done
done
# echo job info on joblog:
echo "Job $JOB_ID ended on: " `hostname -s`
echo "Job $JOB_ID ended on: " `date `
echo " "