-
Notifications
You must be signed in to change notification settings - Fork 0
/
5.clean_bin_folder.sh
80 lines (58 loc) · 1023 Bytes
/
5.clean_bin_folder.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
rm -fr average_curves*bin*
cd DATA
for ((v=1; v<=4 ; v+=1)) do
if [ $v -eq 1 ]; then
virus=ZIKV-UG
fi
if [ $v -eq 2 ]; then
virus=ZIKV-BR
fi
if [ $v -eq 3 ]; then
virus=DENV2
fi
if [ $v -eq 4 ]; then
virus=WNV
fi
cd $virus
for ((f=4; f<=5 ; f+=1)) do
if [ $f -eq 1 ]; then
arch=monomer
fi
if [ $f -eq 2 ]; then
arch=dimer
fi
if [ $f -eq 3 ]; then
arch=dimer_0.005M
fi
if [ $f -eq 4 ]; then
arch=dimer
fi
if [ $f -eq 5 ]; then
arch=d_vdw
fi
if [ $f -eq 6 ]; then
arch=fixed_charges
fi
if [ $f -eq 7 ]; then
arch=charge_central
fi
if [ $f -eq 8 ]; then
arch=charge_distributed
fi
cd $arch
#rm -r pH*_pmf_bin4 pH*_pmf_bin6
ls | grep rdf | grep pH > list
line=$(ls | grep rdf | grep pH | wc -l)
for ((i=1;i<=$line;i+=1)) do
file_rdf=$(head -n$i list | tail -n1)
cd $file_rdf
#rm -fr bin_4 bin_6 5.bin_6.py 5.bin_4.py
cd ..
done
#rm -fr pH*_pmf_bin*
rm list
cd ..
done
cd ..
done
cd ..