Is there a recommended way in RDKit to preserve hydrogens necessary for representing cis/trans stereochemistry of imines?
For example, given the attached SDF I need to maintain explicit hydrogens
in the output SMILES string to maintain the imine cis/trans
stereo-chemistry.
mol = Chem.ForwardSDMolSupplier(open('ZINC23714507.sdf'),
removeHs=False).next()
print(Chem.MolToSmiles(mol, True))
Yields the correct but ugly smiles:
[H]/N=C(/[H])C([H])([H])N(C([H])([H])/C([H])=N\[H])S(=O)(=O)c1c([H])c([H])c(C(=O)N([H])c2sc3c(c2C(=O)N([H])C([H])([H])[H])C([H])([H])C([H])([H])[N+]([H])(C([H])([H])C([H])([H])C([H])([H])[H])C3([H])[H])c([H])c1[H]
RemoveHs is too heavy a hammer as it removes my cis/trans stereo:
print(Chem.MolToSmiles(Chem.RemoveHs(mol), True))
CCC[NH+]1CCc2c(sc(NC(=O)c3ccc(S(=O)(=O)N(CC=N)CC=N)cc3)c2C(=O)NC)C1
I can write the explicit loop myself to only remove hydrogens not part of
stereo chemistry, but seems like this might be functionality buried
somewhere in the RDKit.
Thanks,
Brian
ZINC23714507.sdf
Description: Binary data
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Rdkit-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

