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

Fix hydrogen handling in scaffolds with explicit attachment points #70

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

kmaziarz
Copy link
Collaborator

@kmaziarz kmaziarz commented Dec 16, 2023

When a scaffold is provided during decoding, we assume the model is free to attach further atoms to any atom in the scaffold, unless it contains explicit attachment points, in which case we only allow attaching to those atoms. However, the handling of these attachment points had a bug regarding explicit hydrogens, which would cause the scaffold molecule to be malformed and decoding to fail. This PR fixes this issue by carefully updating the hydrogen count where appropriate.

@kmaziarz kmaziarz force-pushed the kmaziarz/fix-scaffold-hydrogens branch from ece5851 to b44f614 Compare December 17, 2023 23:20
@kmaziarz kmaziarz marked this pull request as ready for review December 17, 2023 23:21
@kmaziarz kmaziarz merged commit e7e9e38 into main Dec 18, 2023
4 checks passed
@kmaziarz kmaziarz deleted the kmaziarz/fix-scaffold-hydrogens branch December 18, 2023 12:09
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