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 a mistake in hydrogen bond acceptor identification #151

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

kalinni
Copy link
Contributor

@kalinni kalinni commented Mar 26, 2024

Ligand structures in PLIP do not contain hydrogens. While this was accounted for in donor detection (hydrogens are obviously needed there) this was not the case for acceptor detection. However, as OpenBabel checks the degree of the atom to determine its availability as an acceptor, the hydrogens are needed there as well.

This pull request fixes the issue and closes #123

Ligand structures in PLIP do not contain hydrogen, which affects HBond donor/acceptor identification.

For donor identification, the atoms of the full structure with hydrogens is used, for acceptor identification this mapping was missing so far. This commit fixes the issue and closes pharmai#123.
The removed bit was not doing anything and seems to be a residual from more than 10 years ago (last change related to the in_ring variable was in commit 2b87b08)
@kalinni kalinni marked this pull request as draft March 26, 2024 14:55
@kalinni kalinni changed the base branch from master to development March 26, 2024 14:56
@kalinni kalinni marked this pull request as ready for review March 26, 2024 14:56
@fkaiserbio fkaiserbio merged commit bf04ce7 into pharmai:development Mar 26, 2024
1 check passed
@kalinni kalinni deleted the bug/hbond-detection branch March 28, 2024 15:44
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.

Plip shows same Hydrogen Bond twice (Donor and Acceptor switched)
2 participants