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

standardizer.standardize_molblock() removes StereoGroups #49

Open
lavoisiermod opened this issue Feb 18, 2023 · 0 comments
Open

standardizer.standardize_molblock() removes StereoGroups #49

lavoisiermod opened this issue Feb 18, 2023 · 0 comments

Comments

@lavoisiermod
Copy link

from rdkit import Chem
from chembl_structure_pipeline import standardizer
# a molecule with enhanced stereochemistry
m3bis = Chem.MolFromSmiles('Cl.O[C@@H]1CC[C@H](Cl)C[C@@H]1O |a:5,&1:2,8|')
m3bis

image
(the carbon bearing Cl has absolute configuration, the two carbons bearing OH are part of an 'and' stereo group, so they are present as depicted above + both inverted; so this represents a sample of two diastereoisomers, HCl salts).

len(m3bis.GetStereoGroups())
# 2
m3bis_mb = Chem.MolToMolBlock(m3bis)
m3bis_mb_std = standardizer.standardize_molblock(m3bis_mb)
m3bis_mb_std_mol = Chem.MolFromMolBlock(m3bis_mb_std)
len(m3bis_mb_std_mol.GetStereoGroups())
# 0 # all stereogroups are gone

There might be a more fundamental/theoretical point regarding why one would want to represent mixtures of stereoisomers vs individual stereoisomers.
However, in actual chemoinformatics practice, commercial and corporate samples, including many drugs, often are mixtures of stereoisomers, and they must be handled somehow.
Vendors and companies have long adopted appropriate logic to represent their samples (more) accurately: the chirality flag in V2000 CTAB's to discriminate between ABS and RAC samples; enhanced stereochemistry in V3000 CTAB's for more complex cases like the diastereomeric mixture in the above example; more recently even ChemAxon CXSMILES.

So my question is: is there any rationale behind the removal of stereo groups by standardize_molblock ?
Or is it perhaps related to this similar issue: rdkit/rdkit#6099 ?
And do you know how this can be circumvented ?

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

1 participant