-
Notifications
You must be signed in to change notification settings - Fork 2
/
make-resp.sh
47 lines (31 loc) · 868 Bytes
/
make-resp.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
#!/bin/bash
#whats necessary? out from gaussian
#usage ./make-resp.sh gout (s/ _esp.out) ndx
#variables
gout="$1"
ndx="$2"
enter="If this step is ok, press [Enter] key to continue..."
end="If it's all ok, press [Enter] to finish. Good Job!"
#Colors
RED='\033[0;31m'
NC='\033[0m'
BLUE='\033[0;34m'
GREEN='\033[0;32m'
MAG='\033[0;95m'
#pause
function pause(){
read -p "$*"
}
###
#antechamber-----------------------------------------------------------------
echo -e "${RED}ANTECHAMBER${NC}"
antechamber -i ${gout}_esp.out -fi gout -o ${gout}.mol2 -fo mol2 -c resp -eq 2 -s 2 -pf y -rn ${ndx}
pause $(echo -e ${BLUE}$enter${NC})
rm esout
rm punch
rm qout
rm QOUT
parmchk -i ${gout}.mol2 -f mol2 -o ${gout}.frcmod
antechamber -i ${gout}.mol2 -fi mol2 -o ${gout}.pdb -fo pdb -rn ${ndx}
#sed -i '/CONECT/d' ${gout}.pdb
pause $(echo -e ${GREEN}$end${NC})