forked from c-eis/Filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
change_parameter.sh
executable file
·123 lines (123 loc) · 3.57 KB
/
change_parameter.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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
##
## Time-stamp: <2016-08-05 11:11:17 (cluettig)>
##
#for ((i=2;i<=50;i+=2));
#do
# #p=$(grep "^minimum" parameter.txt |awk -F : '{print $2}')
# id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
# id=$(echo "$id + 1" | bc)
# sed -i '/^minimum/d' parameter.txt
# sed -i "8iminimum number of elements in a segment:$i" parameter.txt
# sed -i 's/id.*$/id :'$id'/' parameter.txt
# ./run_filter.sh
# cat -A -n parameter.txt
# sleep 2
#done
#sed -i '/^minimum/d' parameter.txt
#sed -i "8iminimum number of elements in a segment:8" parameter.txt
p=0.0
for ((i=1;i<=10;i+=1));
do
id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
id=$(echo "$id + 1" | bc)
p=$(echo "$p +0.1" | bc)
sed -i '/^a:/d' parameter.txt
sed -i "8ia:$p" parameter.txt
sed -i 's/id.*$/id :'$id'/' parameter.txt
cat -A -n parameter.txt
./run_filter.sh
sleep 2
done
sed -i '/^a/d' parameter.txt
sed -i "9ia:0.2" parameter.txt
#p=0.9
#for ((i=1;i<=11;i+=1));
#do
# id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
# id=$(echo "$id + 1" | bc)
# p=$(echo "$p +0.1" | bc)
# sed -i '/^difference/d' parameter.txt
# sed -i "9idifference to prior field factor:$p" parameter.txt
# sed -i 's/id.*$/id :'$id'/' parameter.txt
# cat -A -n parameter.txt
# ./run_filter.sh
# sleep 2
#done
#sed -i '/^difference/d' parameter.txt
#sed -i "9idifference to prior field factor:1.5" parameter.txt
#p=0.5
#for ((i=1;i<=9;i+=1));
#do
# id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
# id=$(echo "$id + 1" | bc)
# p=$(echo "$p +0.5" | bc)
# sed -i '/^eps std/d' parameter.txt
# sed -i "26ieps std:$p" parameter.txt
# sed -i 's/id.*$/id :'$id'/' parameter.txt
# cat -A -n parameter.txt
# ./run_filter.sh
# sleep 2
#done
#sed -i '/^eps std/d' parameter.txt
#sed -i "26ieps std:3" parameter.txt
#p=0.5
#for ((i=1;i<=9;i+=1));
#do
# id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
# id=$(echo "$id + 1" | bc)
# p=$(echo "$p +0.5" | bc)
# sed -i '/^e std/d' parameter.txt
# sed -i '$ae std:'$p'' parameter.txt
# sed -i 's/id.*$/id :'$id'/' parameter.txt
# ./run_filter.sh
# cat -A -n parameter.txt
# sleep 2
#done
#sed -i '/^e std/d' parameter.txt
#sed -i '$ae std:3' parameter.txt
#p=0
#for ((i=1;i<=9;i+=1));
#do
# id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
# id=$(echo "$id + 1" | bc)
# p=$(echo "$p +5" | bc)
# sed -i '/^chipsize median/d' parameter.txt
# sed -i "25ichipsize median:$p" parameter.txt
# sed -i 's/id.*$/id :'$id'/' parameter.txt
# ./run_filter.sh
# cat -A -n parameter.txt
# sleep 2
#done
#sed -i '/^chipsize median/d' parameter.txt
#sed -i "25ichipsize median:25" parameter.txt
#p=0
#for ((i=1;i<=9;i+=1));
#do
# id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
# id=$(echo "$id + 1" | bc)
# p=$(echo "$p +5" | bc)
# sed -i '/^chipsize direction/d' parameter.txt
# sed -i "30ichipsize direction:$p" parameter.txt
# sed -i 's/id.*$/id :'$id'/' parameter.txt
# cat -A -n parameter.txt
# ./run_filter.sh
# sleep 2
#done
#sed -i '/^chipsize direction/d' parameter.txt
#sed -i "30ichipsize direction:25" parameter.txt
#p=0
#for ((i=1;i<=12;i+=1));
#do
# id=$(grep "^id" parameter.txt |awk -F : '{print $2}')
# id=$(echo "$id + 1" | bc)
# p=$(echo "$p +2.5" | bc)
# sed -i '/^angle/d' parameter.txt
# sed -i "29iangle:$p" parameter.txt
# sed -i 's/id.*$/id :'$id'/' parameter.txt
# cat -A -n parameter.txt
# ./run_filter.sh
# sleep 2
#done
#sed -i '/^angle/d' parameter.txt
#sed -i "29iangle:20" parameter.txt