Backported PROPKA code base to Python2.

Now this same code can be run with either Python2.7 or Python3.
This commit is contained in:
Matvey Adzhigirey authored and Mike Beachy committed 2012-12-20 11:29:15 -05:00
1 parent 2aaf2d3a48
commit cfab0bbe69
8 files changed
+12 -6

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@
from subprocess import call
import os, re
import sys
pdbs = ['1FTJ-Chain-A',
'1HPX',
@@ -14,7 +15,7 @@ for pdb in pdbs:
print('RUNNING '+pdb)
# Run pka calculation
call(['../propka.py','pdb/'+pdb+'.pdb'], stdout = open(pdb+'.out', 'w+'))
call([sys.executable, '../propka.py','pdb/'+pdb+'.pdb'], stdout = open(pdb+'.out', 'w+'))
# Test pka predictiona
result = open('results/'+pdb+'.dat','r')