-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hydrogen handling in scaffolds with explicit attachment points (#70)
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.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters