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

Bug in intramolecular and or unbound energy #200

Closed
diogomart opened this issue May 16, 2023 · 4 comments
Closed

Bug in intramolecular and or unbound energy #200

diogomart opened this issue May 16, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@diogomart
Copy link
Member

diogomart commented May 16, 2023

Using the vina or vinardo scoring functions, the unbound and intramolecular energy of the top pose should be equal. However, ligands with macrocycle closure atoms, which are CG0, G0, CG1, etc, show large discrepancies in these energies, sometimes leading to predicted free energies that are absurdely low, e.g. -50 kcal/mol.

REMARK VINA RESULT:   -17.786      0.000      0.000
REMARK INTER + INTRA:         -10.788
REMARK INTER:                 -10.720
REMARK INTRA:                  -0.068
REMARK UNBOUND:                17.397
@diogomart diogomart added the bug Something isn't working label May 16, 2023
@diogomart diogomart assigned atillack and diogomart and unassigned atillack May 16, 2023
@diogomart diogomart transferred this issue from ccsb-scripps/AutoDock-GPU May 16, 2023
@diogomart
Copy link
Member Author

Fixed by c1217c1

May by related to #168, #172, #68.

@atillack I forgot to PR... could you take a look at c1217c1 just to make sure there's nothing obviously wrong?

Attaching plots of intramolecular vs unbound energies for the top pose of about 34k molecules, using flexible side chains. A few molecules are macrocycles (hence the number of glue pairs in the legend).

Before the fix:
buggy

After the fix:
fixed

@atillack
Copy link
Member

atillack commented Jun 7, 2023

@diogomart Looked over the commit - good work and glad you found the bug.

@diogomart
Copy link
Member Author

Thank you @atillack

@diogomart
Copy link
Member Author

Attaching plots of the free energy estimate from line "REMARK VINA RESULT" before and after the fix. The first plot is docking without flexible sidechains, and the second plot is for docking with flexible sidechains. This used high exhaustiveness (64) and the same random seed (42) in all runs. There are about 34k points (ligands) in each plot, of which about 570 have at least a macrocycle glue pair.

Here are some stats for these plots. It is possible that small grid boxes, large spacing between grid points (not recommended in any case), and large number of docked poses result in larger discrepancies.

flexible sidechains, which ligands, Kendall's tau,   r^2
                 no,           all,          0.90,  0.23
                 no, no glue pairs,          0.96,  0.99
                yes,           all,          0.87,  0.17
                yes, no glue pairs,          0.93,  0.87

vina-results-rigid
vina-results-flex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants