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
EmbedMolecule not respecting double-bond stereochemistry in rings #1852
Comments
Hi, I stumbled upon this and ended up making a fix, following how the enforceChirality option works. Briefly, the idea is to look for bond direction tags (ENDUPRIGHT/ENDDOWNRIGHT) around the double bonds, and mark one of the relevant torsions to be either 0 or 180 degrees. Later in the embedding cycles it checks that the generated conformers have the marked torsions correct: if not, the conformer is skipped. Anyway, before I make an actual PR out of this, I'm asking if someone involved to the embedding code would take a look if I'm going to correct direction with this, or missing something critical. The commit is available at JLVarjo@178d7a9 Please note that currently the check breaks some other tests (being too strict for those probably), thus I think it's better to make this under a separate option later. Cheers, Juuso |
@JLVarjo For my purposes I don't use bond direction for double-bond stereo. I always have the double bond's stereo field set to Also I only have this issue with double bonds inside rings - for non-cyclic double bonds the current embedding routines work fine. I tested the code from your branch in my own embedding code and it worked great, see the image below of cis- and trans-cyclodecene. I encourage you to open a pull request so others with more expertise can opine. I modified the loop in
|
I think this is fixed with #5967? |
The SMILES string refers to trans-cyclodecane, but
EmbedMolecule
returns a conformer with the cis conformation.The text was updated successfully, but these errors were encountered: