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

Add wavy stereo bond support to cdxml #5755

Merged
merged 4 commits into from
Nov 17, 2022

Conversation

bp-kelley
Copy link
Contributor

Fixes #5752

@bp-kelley bp-kelley added the bug label Nov 14, 2022
@bp-kelley bp-kelley self-assigned this Nov 14, 2022
Copy link
Member

@greglandrum greglandrum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

} else if (bond.display == "Wavy") {
switch(bond.getBondType()) {
case Bond::BondType::SINGLE:
bnd->setBondDir(Bond::BondDir::UNKNOWN);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not part of this PR, but the mol file parser sets the _MolFileBondCfg property on bonds which have wedging information. This is then used by the CXSMILES writer and in reapplyMolBlockWedging(). It's worth considering doing that for the CDXML parser as well at some future point.

@greglandrum greglandrum merged commit 6d10f90 into rdkit:master Nov 17, 2022
greglandrum pushed a commit that referenced this pull request Nov 23, 2022
* Add wavy stereo bonds

* Add wavy single bonds

* Single bonds have bond stereo stripped

Co-authored-by: Brian Kelley <bkelley@relaytx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDXML reader incorrectly sets stereo on crossed double bonds
2 participants