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

stereochemical labels #23

Open
nbehrnd opened this issue Feb 16, 2024 · 2 comments
Open

stereochemical labels #23

nbehrnd opened this issue Feb 16, 2024 · 2 comments

Comments

@nbehrnd
Copy link
Contributor

nbehrnd commented Feb 16, 2024

En route to prepare a C2 symmetric box ligand, I wonder about the line

opts.addStereoAnnotation = True

(line 25) in the unchanged file depict_ligands.py. Was this installed to add a small (R) or (S) next to the corresponding center -- similar to the example to the left in RDKit's cookbook here?

The setup I use relies on Python 3.11.7 to use a virtual environment amended by pip install -r ./requirements.txt and hence RDKit 2023.09.4 (as checked within Python's CLI by print(rdkit.__version__)) while any RDKit related package provided by Linux Debian intentionally was removed ahead of time. An entry of

C[C@H]1COC2=[N]1*[N]1=C(C2)OC[C@@H]1C a box01

in a file submitted to depict_ligands.py only yields an illustration

box01

without the labels in .png and .svg file format. Later, I equally would like to add for instance either one of the two BINOLs. This is why the presence of the small markers in the eventual preview by Avogadro might be helpful to identify the wanted isomer.

box01.cjson.zip

@ghutchis
Copy link
Member

That was certainly my goal - to indicate stereo wherever it's specified.

Maybe the first thing to check is whether something with a well-defined stereo (e.g., camphor or an amino acid) works first?

I'll check this against my version of RDKit - certainly I know they've found some subtle bugs in the depiction code from time to time.

@ghutchis
Copy link
Member

Looking at the cookbook, it might also need:

from rdkit.Chem import rdCIPLabeler
rdCIPLabeler.AssignCIPLabels(…)

nbehrnd added a commit to nbehrnd/fragments that referenced this issue Feb 18, 2024
The script now assigns the (R,S) configuration in the preview of
chiral ligands.  This is based on the second example in RDKit's
cookbook[1] described as available since the 2020.09 release of
RDKit and aims to close an issue report about the script.[2]

[1] https://www.rdkit.org/docs/Cookbook.html#include-stereo-annotations
[2] OpenChemistry#23

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
nbehrnd added a commit to nbehrnd/fragments that referenced this issue May 31, 2024
Based on an earlier discussion,[1] the two prototypic (4R,12R)-
and (4S,12S)-dimethyl bisoxazoline ligands provided by this
commit are the first ligands to carry a stereogenic centre.

[1] OpenChemistry#23

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
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

No branches or pull requests

2 participants