-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSimulation_script_3_n=5.sh
More file actions
32 lines (25 loc) · 959 Bytes
/
Simulation_script_3_n=5.sh
File metadata and controls
32 lines (25 loc) · 959 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
#!/bin/bash
# $ -S /bin/bash
# $ -N job-simulation_mCAVIAR_rosemary_1
# $ -cwd = run from this current working directory (relative paths)
# -o stdout-Simulation_3_numOfSnps.out
# $ -l h_data=12G,h_rt=24:00:00
# $ -t 1-1000:1
source ~/.bash_profile
# SGE_TASK_ID=3
this_num_of_snps=5
sim='Simulation_3_numOfSnps='$this_num_of_snps
simulation='Simulation_3_numOfSnps='$this_num_of_snps'_'$SGE_TASK_ID
echo $simulation
mkdir $simulation
cd $simulation
outfile='sim_numOfSnps_5_'$SGE_TASK_ID'_results'
python3 ../simulate.py -l ../sample_data/50_LD.txt -z ../sample_data/50_Z.txt -c $this_num_of_snps
python3 ../MCaviar.py -l LD -z Z -o $outfile'_'$i -c $this_num_of_snps
# rm -r LD
# rm -r Z
speculate_file=$outfile'_'$i'_set.txt'
python3 ../capture.py -s $speculate_file -t true_causal_set.txt -p '../'$sim
# mv '../'$sim'_config_size.txt' '../'Config_Size
# mv '../'$sim'_recall_rate.txt' '../'Recall_Rate
mv '../'$simulation ../Simulation_3_numOfSnps=5