Hello to all,
I encountered an error while attempting to execute ‘make_hybrid.py’:
Traceback (most recent call last):
File “…/scripts/ligands/make_hybrid.py”, line 1308, in
main( sys.argv )
File “…/scripts/ligands/make_hybrid.py”, line 552, in main
itp1 = ITPFile(cmdl[‘-itp1’])
File “…/pmx/forcefield2.py”, line 1071, in init
TopolBase.init(self, filename)
File “…/pmx/forcefield2.py”, line 116, in init
self.read()
File “…/pmx/forcefield2.py”, line 134, in read
self.read_pairs(lines)
File “…/pmx/forcefield2.py”, line 298, in read_pairs
idx = [int(x) for x in line.split()]
ValueError: invalid literal for int() with base 10: ‘3.46559601357e-01’
I suspect this issue arises from additional parameters present in the [ pairs ] section, as I am using CGenFF. The error doesn’t appear when I remove those parameters. Is there an existing modification to ‘make_hybrid.py’ that can accommodate this, or if not, could anyone recommend another script that is both efficient and user-friendly?
Thank you for the comment!
I installed now the pmx-develop version now, and try the script ‘ligandHybrid.py’ (pmx/src/pmx/scripts/ligandHybrid.py).
However, I encountered the same error once again.
For some reason, I can’t upload my files, so I’m attaching only the part in the lig1.itp that I think caused the problem (look at the pairs section):
[ atoms ]
; nr type resnr residu atom cgnr charge mass
1 NG321 1 NC9 N 1 -0.879 14.0070 ; qtot -0.879
…
31 HGA3 1 NC9 H21 31 0.090 1.0080 ; qtot 0.000
[ bonds ]
; ai aj funct b0 Kb
1 2 1 1.474000e-01 2.200784e+05
…
10 31 1 1.111000e-01 2.694496e+05