michellab / BioSimSpace

Code and resources for the EPSRC BioSimSpace project.
https://biosimspace.org
GNU General Public License v3.0
77 stars 19 forks source link

Bad alignment of ligands in different conformational states #269

Closed msuruzhon closed 2 years ago

msuruzhon commented 2 years ago

Hi,

Recently I have had to work with merged molecules, where the two endstates are not necessarily nicely input in the same conformation, but are instead taken from equilibrated structures which may or may not be in the same conformation. When this is not the case, however, rmsdAlign() produces (somewhat expectedly) very distorted structures (input files attached here):

image

For reference, the nitrogen at the bottom is bonded to the carbon at the top to form a nitrile. Unfortunately, in this case an initial MD minimisation is not sufficient to completely remove this distortion when AMBER is used, so the subsequent simulations crash.

I just wanted to make sure this is expected behaviour? @jmichel80 we have been talking about aligning structures after equilibration and I was wondering whether you were running into similar issues in your protocols? I would personally expect a rigid RMSD-based algorithm to fail when the conformers are significantly different but there might be something I am missing.

Cheers.

lohedges commented 2 years ago

Have you tried using the flexAlign function? (You can also use this during matchAtoms when scoring the mappings.) This often produces better alignment when the conformations aren't well matched.

msuruzhon commented 2 years ago

Thanks @lohedges . I didn't get the chance to try flexAlign becase we don't have a license for FKCOMBU and I'll have to check if we can get one. I am currently using a simple routine I wrote some time ago using RDKit, which basically constrains the mobile MCS atoms to have the same coordinates as the reference MCS and force field minimises the rest of the atoms before restoring all dummy dihedrals to their initial values before alignment. This procedure has so far served me well during my alchemical runs. @jmichel80 do you use flexAlign instead of rmsdAlign in your runs?

lohedges commented 2 years ago

FKCOMBU is BSD licensed and is bundled with the conda install of BioSimSpace. Let me know if the commands aren't working for some reason and I'll look into it for you.

jmichel80 commented 2 years ago

Hi @msuruzhon I think generally we tend to use rmsdAlign, and fall back to flexAlign if that doesn't work. We haven't benchmarked yet on a scale that would allow us to recommend an automated approach.

msuruzhon commented 2 years ago

Thanks @lohedges I didn't know that, I will let you know if I have any issues.

@jmichel80 as we have opted for the other alignment algorithm I described above, I have uploaded the generated aligned and merged serialised BioSimSpace objects to the RBFE repo. Please let me know if you have any issues.