GHeinzelmann / BAT.py

The Binding Affinity Tool (BAT.py) is a fully automated tool for absolute binding free energy calculations on protein-ligand systems, compatible with the AMBER and OpenMM simulation packages.
MIT License
166 stars 45 forks source link

Constraints.in file was missing #20

Closed a-abdoman closed 3 years ago

a-abdoman commented 3 years ago

First of all, thanks for providing such convenient scripts for FE calculation.

Right now, I repeated the test calculation of BRD4 examples, with all default settings. I have successfully run the equal and fe calculations for pose0. Then I ran the python BAT.py -i input-dd.sh -s analysis, there is an error message. It located the place, in BAT/libanalysis.py, line 56. The restraints.dat file, which should be generated by cpptraj -I restraints.in command. But I could not find the restraints.in file.

I use Centos 7.6, the default python2.7.5, amber20 and the new BAT2.0 for the calculation. I use the GPU2080TI card with coda-11.1.

Thanks very much for your help.

GHeinzelmann commented 3 years ago

Hi, you are welcome, and thanks for contacting me with possible issues with the code. This really helps improving it and fixing any issues that might appear.

BAT.py was written for use with python 3.8, and there are a few differences from python 2.7.5. Since you have AMBER20, I suggest using the miniconda version of python 3.8 from AMBER, as explained in the Equilibration section of the tutorial:

$AMBERHOME/miniconda/bin/python BAT.py -i input-dd.in -s analysis

Let me know if you are still having problems after running it like above. Best,

Germano

GHeinzelmann commented 3 years ago

Oh, I remembered one more thing, make sure cpptraj is in your path before running the analysis, which is done by running your amber.sh file beforehand.

a-abdoman commented 3 years ago

Thanks for your suggestion. Yes, It works, after I use the new version of python (3.7.5, I don't have 3.8). The calculation finished normally. I will try it more.