[DRAFT] RFC Bonds orders perception - #1855
Draft
papillot wants to merge 10 commits into
Draft
Conversation
This is based on an algorithm authored by Roger Sayle. Optionally applied when connectivity is not available. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
build-data.mjs downloads the pdb and CCD cifs. bonds orders and aromaticity are extracted from the cifs (source of truth). ligand extracted from the PDB are processed and compared with the results from CCD. The data files are not commited to the repo. Only useful for validation purposes.
Script that downloads PDB files to extract ligands and compares bond assignments with the CCD cif There is some logic to take into account equivalent terminal atoms. Double bonds in aromatic rings have a lso a tolerance as long as the ring is aromatic
This allows overcome false positive or triage issues
arose
marked this pull request as draft
June 22, 2026 05:53
Member
|
this is a tricky one validation tests should be separate from the spec tests unless we move chemistry perception into structure creation (which would be a very big change I am not sure about) I feel this should better be calculate property like the other chemistry perception stuff and you would need to explicitly opt-in to use it instead of the given bond-orders in unit.bonds. For sure, more cumbersome but much less obtrusive. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR is a WIP. POC for the Mol* implementation of Roger Sayle's algorithm for bond perception https://www.daylight.com/meetings/mug01/Sayle/m4xbondage.html which is mentioned in different bug reports #36 #626 #1361
The PR is not ready yet: the code has been partly vibe coded: it requires simplifications and thorough review. Also, the validation has only started and the implementation is incomplete (inter-unit bonds are not considered as of now, behavior with ).
While working on these tasks, I would like advices about the integration in Mol* codebase:
Actions
[Unreleased]section ofCHANGELOG.mdpackage.json'scontributorsdocs