forked from garudlab/Harris_etal_response
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qsub_admixture_mode_theta0
38 lines (28 loc) · 1.67 KB
/
qsub_admixture_mode_theta0
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
#!/bin/bash #-- what is the language of this shell
# #-- Any line that starts with #$ is an instruction to SGE
#$ -S /bin/bash #-- the shell for the job
#$ -o output_error_directory #-- output directory (fill in)
#$ -e output_error_directory #-- error directory (fill in)
#$ -cwd #-- tell the job that it should start in your working directory
#$ -r y #-- tell the system that if a job crashes, it should be restarted
#$ -j y #-- tell the system that the STDERR and STDOUT should be joined
#$ -l mem_free=1G #-- submits on nodes with enough free memory (required)
#$ -l netapp=1G,scratch=1G #-- SGE resources (home and scratch disks)
#$ -l h_rt=24:00:00 #-- runtime limit (see above; this requests 24 hours)
#$ -t 1-100 #-- remove first '#' to specify the number of
#-- tasks if desired (see Tips section)
# reset the mem to 1G
readarray is < ~/Jensen_response/tmp_intermediate_files/indexes.txt
is=(null ${is[@]}) # this pads the file with an extra line in the beginning.
i=${is[$SGE_TASK_ID]}
echo $i
rho_in=5e-9
adaptive_theta=0
selection=False
model=admixture_mode
#for locusLength in 11000 10000 100000; do
for locusLength in 11000; do
file=/scrapp/ngarud/tmp_intermediate_files/${model}_tmp_${i}.txt
outFile=~/Jensen_response/analysis/${model}_neutrality_locusLen${locusLength}
bash ~/Jensen_response/scripts/run_any_model.sh ${model} ${file} $outFile $rho_in $adaptive_theta $selection $locusLength
done