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: Handling of multiple bridgehead atom pairs #585

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

avcopan
Copy link
Collaborator

@avcopan avcopan commented Dec 2, 2024

No description provided.

The code was failing to distinguish between forward/reverse directions
(and stereoassignments) to decide the canonical direction for this
reaction:
```
 C1CC2[CH]C1O2 => [CH]1CC2CC1O2
 ^  *  ^  *        ^    * ^*
 [* marks the first pair of bridgehead stereo atoms]
 [^ marks the first pair of bridgehead stereo atoms]
```

This now appears to be fixed.
This was another bug affecting this case:
```
 C1CC2[CH]C1O2 => [CH]1CC2CC1O2
 ^  *  ^  *        ^    * ^*
 [* marks the first pair of bridgehead stereo atoms]
 [^ marks the first pair of bridgehead stereo atoms]
```

Note: The filter for exluding strained stereoisomers is now treating the
two pairs of bridgehead atoms as fully independent, resulting in 4
"un-strained" stereoisomers. In reality, I think there should only be 2,
but handling that logic correctly seems tricky.
@avcopan avcopan merged commit 6214499 into Auto-Mech:dev Dec 2, 2024
3 checks passed
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