Open nielskm opened 1 year ago
Are you sure that SMILES fully defines the stereochemistry? OEChem thinks the nitrogen in the non-aromatic ring is a stereocenter
# problematic atom is ..................... *
smiles = "[H]/N=C\CC(=O)N1CC[C@@H](C)[C@@H](N(C)c2ncnc3[nH]ccc23)C1"
I have the same issue. It seems that only E/Z isomerism cannot be assigned.
My Configuration :
I got the same issue with ligand UI3 from PDB file 1QST. I have already extracted the ligand UI3 and the file is attached.
Using the command
smiles_ui3 = r'[H]/N=C(/c1ccc2ccc(c(c2c1)c3cnn(c3)S(=O)(=O)C)OC)\N'
ui3 = Chem.MolFromSmiles(smiles_ui3)
ui3_manual = Chem.MolFromPDBFile("ui3.pdb")
corrected_ui3 = Chem.AssignBondOrdersFromTemplate(ui3, ui3_manual)
gave me the error message ValueError: No matching found
terminal-imine.pdb.txt
Assigning bond orders to the attached PDB with SMILES:
[H]/N=C\CC(=O)N1CC[C@@H](C)[C@@H](N(C)c2ncnc3[nH]ccc23)C1
removes the stereochemistry of the C=N bond in the terminal imine group.To Reproduce
Expected behavior The
result_smiles
from the code above should have the stereochemistry information from the original SMILES.Configuration (please complete the following information):
Additional context I need the stereochemistry information to be assigned in order to use the OpenFF Toolkit
Molecule
class (constructed withMolecule.from_rdkit
). If I addb2.SetStereo(b.GetStereo())
to theAssignBondOrdersFromStereo
function, this problem dissapears. But the SMILES produced by RDKit still lack the isomer information.