Closed shaoqx closed 4 years ago
Here is the .py I ran
from pypka.pypka import Titration
parameters = {'structure' : './2kz2init_amb.pdb',
'epsin' : 10,
'ionicstr' : 0.1,
'pbc_dimensions': 0,
'ncpus' : 4}
pKa = Titration(parameters)
for site in pKa:
print(site, pKa[site], pKa.getProtState(site, 7))
print(pKa.getParameters())
Solution:
ffinput
to AMBER (In the parameter
)print( site.resiname, site.pK, site.getProtState(7)[0] )
This works.
I generate the pdb file with tLeAP and I can be recognized by all Amber modules. But when I tried it with the PypKa installed from pip, it aborted like this:
The residue 1 in my file is like:
And I'm just using the example script from the document, replacing the filename with what I have.
I successfully ran the
pKa = Titration(parameters)
after deleting the GLY, but still, some error was raised for theprint(site, pKa[site], pKa.getProtState(site, 7))
line: