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
2012-12-04 14:52:52 -08:00
committed by Mike Beachy
parent 2aaf2d3a48
commit cfab0bbe69
8 changed files with 12 additions and 6 deletions

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')