Commit dc42860 1 parent 82f63c1 commit dc42860 Copy full SHA for dc42860
File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ def make_apo_pdb(pdbin,pdbout):
33
33
34
34
with open (pdbin , 'r+' ) as fd :
35
35
contents = fd .readlines ()
36
-
37
36
#first find if there is an SSBOND
38
37
for line in contents :
39
38
if ('SSBOND' in line ):
@@ -57,7 +56,9 @@ def make_apo_pdb(pdbin,pdbout):
57
56
58
57
for line in contents :
59
58
row = line .strip ().split ()
60
-
59
+ if (len (row ) == 0 ):
60
+ continue
61
+
61
62
if row [0 ]== 'MODEL' :
62
63
model_num = row [- 1 ].strip ()
63
64
if (model_num == '1' ): protein .append (line )
Original file line number Diff line number Diff line change 8
8
from urllib .request import urlopen
9
9
from io import StringIO
10
10
11
+ from pkaani .prep_pdb import prep_pdb
12
+
11
13
class MyParser (argparse .ArgumentParser ):
12
14
def error (self , message ):
13
15
sys .stderr .write ('error: %s\n ' % message )
@@ -88,10 +90,9 @@ def main():
88
90
with open (outfile , 'w' ) as f2 :
89
91
for line in contents :
90
92
f2 .write (line )
91
-
92
- from pkaani .prep_pdb import prep_pdb
93
- prep_pdb (pdbfile )
94
- file_exist = True
93
+
94
+ prep_pdb (pdbfile )
95
+ file_exist = True
95
96
96
97
#CALCULATER PKA
97
98
from pkaani .pkaani import calculate_pka
You can’t perform that action at this time.
0 commit comments