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

Non sanitize draw #23

Merged
merged 14 commits into from
Jul 27, 2024
Merged

Non sanitize draw #23

merged 14 commits into from
Jul 27, 2024

Conversation

EBjerrum
Copy link
Owner

Major update of the drawing stack.
The bug with double bonds shifting and stereo deptictions of E/Z necessitated some deep changes in the way the drawing works. Things are no longer sanitized or prepared when drawing, so all fixed must be done to the actual mol object. The drawcode then depicts the graph more thruthfully e.g. with aromatic bonds if they are so, or the true single and double bond. Theres now an option to clean up the chemistry of the molecule (SanitizeMol), with and optional kekulization afterwards.

The template system thus also needed changes and was redesigned to something more expandable via reaction SMARTS and SMILES.

Also some minor bug fixes.

Esben Jannik Bjerrum added 14 commits July 19, 2024 08:28
…the aromatic and single-double bonds as present in the graph.
…ome of the stereoinfo (_CIPCode I think). Solution is a draft. It needs better thought for how and when to update the stereoinfo, as editing elsewhere in the molecule can change the CIP priority.
… Seems to work, but all templates are not exposed in GUI
…illed menu. there's a bug, if the molecule object have several objects, they are deleted when adding to a bond or atom (GetOwningMol gets only mol, not object?)
…es still seem to get sanitized, at least they turn aromatic when addin the next template to either bond or atom.
…bridised. Maybe the problem is really how many implicit hydrogens are available at each atom in the bond? e.g. for the CN additon problem the N only has one, which determines what template can really be used?
@EBjerrum EBjerrum merged commit e2f4db4 into master Jul 27, 2024
2 checks passed
@EBjerrum EBjerrum deleted the non_sanitize_draw branch July 27, 2024 09: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.

1 participant