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

Fixes mistakes in waterbridge detection and filtering #152

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

kalinni
Copy link
Contributor

@kalinni kalinni commented Mar 26, 2024

During water bridge detection, the supplementary angle of omega (i.e. 180° - omega) instead of omega was calculated.
During filtering a globally ambiguous index instead of the original index from the pdb file was used to filter out donor atoms already participating in hydrogen bonds. Also during filtering the water bridges with angles closest to the ideal omega were discarded instead of the ones with the biggest difference.

This pull request fixes these issues. However, a closer look at hydrogen bond donors and acceptors in PLIP should be taken in the future as atoms (depending on the number of hydrogens they are bound to/the number of free electron pairs) can participate in hydrogen bonds multiple times and from what I see this is currently not considered consistently.

kalinni and others added 4 commits March 26, 2024 15:06
Instead of the bond with angle omega closest to the ideal value the one further away was kept.
When checking, whether the donor atom already forms a hydrogen bond, the openBabel molecules atom index instead of the original index in the pdb file was used, resulting in random hydrogen bonds in other parts of the structure preventing water bridges from showing up and potentially not filtering out the ones that actually needed filtering.
@fkaiserbio fkaiserbio merged commit 8b37a0f into pharmai:development Mar 26, 2024
1 check passed
@kalinni kalinni deleted the bug/waterbridge-detection branch March 28, 2024 15:40
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

Successfully merging this pull request may close these issues.

2 participants