-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpymol-wrapper.sh
executable file
·50 lines (44 loc) · 1023 Bytes
/
pymol-wrapper.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
#!/bin/bash
PDBNAME=
DEBUG=
TEXT=
BASE_NORMALS=
MAX_STEM_DISTANCE=0
while getopts "xtbm:p:" OPTION
do
case $OPTION in
x)
set -x
DEBUG=1
;;
t)
TEXT=-t
;;
b)
BASE_NORMALS=-b
;;
m)
MAX_STEM_DISTANCE=$OPTARG
;;
p)
PDBNAME=$OPTARG
echo $PDBNAME
;;
esac
done
if [[ -z $PDBNAME ]]
then
echo "Usage.sh: ./pymol-wrapper.sh -p struct_id"
exit 1
fi
OUTPUT_DIR=~/data/ernwin/processed/${PDBNAME}
OUTPUT_PYMOL_DIR=${OUTPUT_DIR}/pymol
OUTPUT_PREPARE_DIR=${OUTPUT_DIR}/prepare
if [[ -z $DEBUG ]]
then
./fess/scripts/create_pymol.sh $TEXT $BASE_NORMALS -m $MAX_STEM_DISTANCE -p fess/structures/$PDBNAME.pdb
else
./fess/scripts/create_pymol.sh $TEXT $BASE_NORMALS -m $MAX_STEM_DISTANCE -xp fess/structures/$PDBNAME.pdb
fi
pymol $OUTPUT_PREPARE_DIR/temp.pdb $OUTPUT_PYMOL_DIR/cartoon.pml
#pymol $OUTPUT_PYMOL_DIR/cartoon.pml