-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
29 lines (25 loc) · 827 Bytes
/
test.sh
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
#!/bin/bash
genome_length=3000000000
mutation_rate=.000000025
reproduction_rate=1.0
geo_generations=100
recombination_rate=.000000013
init_generations=20
init_pop=1000
disease_prob="1:0"
num_geo=2
test_percent=.2
python joint_analysis.py geo_group_*
echo "Choose classification types"
read pos_class
python probabalistic_disease_class_fast.py eve.dat positive.dat negative.dat $pos_class $disease_prob geo_group_*
for ((i=0; i<$num_geo; i++));
do
python probabalistic_disease_class_fast.py eve.dat "positive_$i.dat" "negative_$i.dat" $pos_class $disease_prob "geo_group_$i.dat"
done
# classification
python cluster_log_reg.py eve.dat positive.dat negative.dat $genome_length .1 $num_geo
for ((i=0; i<$num_geo; i++));
do
python log_reg_fast.py eve.dat "positive_$i.dat" "negative_$i.dat" $genome_length $test_percent
done