Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong RMSD calculation? #14

Open
lkfo415579 opened this issue Sep 6, 2022 · 2 comments
Open

Wrong RMSD calculation? #14

lkfo415579 opened this issue Sep 6, 2022 · 2 comments

Comments

@lkfo415579
Copy link

lkfo415579 commented Sep 6, 2022

I noticed there is a problem with the docking pose generation script you provided #Docking_CASF2016_CoreSet.ipynb.

In dock_compound function, there is a line
result['rmsd'] = Chem.rdMolAlign.AlignMol(opt_mol, real_mol, atomMap=list(zip(opt.noHidx,opt.noHidx))).

This means you are aligning opt_mol to real_mol, then calculate the rmsd, when I delete this line, the docking pose will become much worse than before. This operation is only used in the molecule generation task but not in the docking task, it will neglect the error of rotation and translation of ligand.
You should output the conformer to a file and then use obrms(from openbabel) to calculate the real reliable rmsd.

I reproduced your experiment, using the code directly from your code the result successful rate is correct and is about 62%.
After I removed the alignment line and redo the experiments, the successful rate drops down to 41%. (percentage of docking pose is <2A RMSD compare to crystal-structure)

@Glinttsd
Copy link

Hi, as for it will neglect the error of rotation and translation of ligand, I have a question. Doesn't aligning mean neglecting the relative postion error instead of rotation and translation?

@lkfo415579
Copy link
Author

lkfo415579 commented Sep 19, 2022

Hi, as for it will neglect the error of rotation and translation of ligand, I have a question. Doesn't aligning mean neglecting the relative postion error instead of rotation and translation?

I think they are the same meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants