Gallicchio-Lab / AToM-OpenMM

OpenMM-based framework for absolute and relative binding free energy calculations with the Alchemical Transfer Method
Other
120 stars 31 forks source link

Error running equilibration #12

Closed vemaparna closed 1 year ago

vemaparna commented 1 year ago

Hi! Very delighted to use your plugin. It is simply awesome. I could run the tutorials without any error. But when i tried to build my own systems for RBFE , the simulation crashes with an error " Particle coordinate is nan" To avoid this I have minimised the protein-ligand complex in opemm seperately and used the equilibrated protein file as input. Now the script "setup-atm.sh" is picking up all the atoms of protein as atoms of one of the ligand and then crashes during the equilibrium phase. The protein files looks decent with no errors. Couldnt identify from where the probelm arise. please find the link of protein, ligands and the script used ( since my protein has ZN, i had to modify the script file to include ZN parameter in leap) https://drive.google.com/drive/folders/1fNb5ySlZDX9vk_uFMEAXO6-SDQ2UEFeq?usp=share_link

Can you help me to rectify this?

egallicc commented 1 year ago

Thank you for the feedback @vemaparna.

It is a good idea to investigate whether it is a crash due to the alchemical settings or the molecular system itself. Assuming you are using the packaged structure preparation tool, edit the control file (<jobname>_asyncre.cntl) and reset the alchemical restraints:

CM_KF = 0.00
POSRE_FORCE_CONSTANT = 0.0
ALIGN_KF_SEP = 0.0
ALIGN_K_THETA = 0.0
ALIGN_K_PSI = 0.0

With these changes, minimization and equilibration with NPT and NVT will proceed as for any other standard OpenMM system. If the system goes through these steps without errors, then it is likely that the alchemical-related settings (Vsite, alignment restraints, etc.) are not set properly.

vemaparna commented 1 year ago

Hi! egallicc! My observations with simulation

  1. I have converted ligand files into mol2 files using pymol. This adds an extra line in mol2 file and therefore the script setup-atm.sh picks wrong atoms. using obabel to conver mol2 files works fine.

2.I have ligands whose atom type is changed from N to C. I have observed that any change in the atom type among the reference atoms leads to MD crash. Otherwise the simulations works fine. Thank you for the support

egallicc commented 1 year ago

Thank you for the feedback. AToM unfortunately does not make system setup for MD any easier. It probably adds fewer complications than other alchemical methodologies do. But, yes, weird setup issues remain.