Valdes-Tresanco-MS / gmx_MMPBSA

gmx_MMPBSA is a new tool based on AMBER's MMPBSA.py aiming to perform end-state free energy calculations with GROMACS files.
https://valdes-tresanco-ms.github.io/gmx_MMPBSA/
GNU General Public License v3.0
215 stars 64 forks source link

[Bug-gmx_MMPBSA]: KeyError: 'temperature' when calculating QH entropy #450

Closed camattelaer closed 8 months ago

camattelaer commented 8 months ago

Bug summary

error performing quasi harmonic calculation

error shows both without 'temperature' key in input and when adding 'temperature' key to inputfile. Also calling gmx_MMPBSA with or without MPI parallelization causes the same issue example.zip

Terminal output

File "/home/camattelaer/Programs/anaconda3/envs/gmxMMPBSA/bin/gmx_MMPBSA", line 8, in <module>
    sys.exit(gmxmmpbsa())
  File "/home/camattelaer/Programs/anaconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/app.py", line 100, in gmxmmpbsa
    app.file_setup()
  File "/home/camattelaer/Programs/anaconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/main.py", line 127, in file_setup
    create_inputs(INPUT, self.normal_system, self.pre)
  File "/home/camattelaer/Programs/anaconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/createinput.py", line 294, in create_inputs
    qh_in = QuasiHarmonicInput(com_mask, rec_mask, lig_mask, temperature=INPUT['temperature'],
KeyError: 'temperature'
Error occurred on rank 0.
Exiting. All files have been retained.
Abort(1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

gmx_MMPBSA.log

gmx_MMPBSA.log

Operating system

ubuntu 22.04

gmx_MMPBSA Version

gmx_MMPBSA v1.6.2 based on MMPBSA version 16.0 and AmberTools 20

Python version

Python 3.9.15

Installation

conda AmberTools + conda

marioernestovaldes commented 8 months ago

Thanks for reporting the issue. I did fix the issue (a05956df213081e694525f5212d4b42a7e99cb14) and it should run smoothly now. Please, update gmx_MMPBSA from our repo and try again:

python -m pip install git+https://github.com/Valdes-Tresanco-MS/gmx_MMPBSA

camattelaer commented 8 months ago

updated to my conda env and QH entropy was calculated, closing.

Thank you for your very quick reply!

ale94mleon commented 4 months ago

This command python -m pip install git+https://github.com/Valdes-Tresanco-MS/gmx_MMPBSA is giving:

setuptools.extern.packaging.version.InvalidVersion: Invalid version: 'v.1.6.3-2.g6ff56c9'

I am in macOS Senoma-14.4.1.

ale94mleon commented 4 months ago

Oh, I see that it is already reported in #487

marioernestovaldes commented 4 months ago

Oh, I see that it is already reported in #487

@ale94mleon please, try again as we updated the versioneer

ale94mleon commented 4 months ago

Oh, I see that it is already reported in #487

@ale94mleon please, try again as we updated the versioneer

Now is working!