Closed sistar2020 closed 2 months ago
This is special chirality in rdkit
for S or P and other multi-electron elements, you can refer to the link:"https://www.rdkit.org/docs/RDKit_Book.html".
You can insert the below code in line 549
of MolScribe/molscribe/chemistry.py
to reassure the removal of special chirality in other elements.
for atom in mol.GetAtoms():
if atom.GetSymbol() != "C":
atom.SetChiralTag(Chem.rdchem.ChiralType.CHI_UNSPECIFIED)
Gotcha! Thank you very much.
The following two images are seemingly almost identical: Image1:
Image2:
Image1 gives a correct SMILES, but Image2 gives a wrong one.
I thought this is a bit weird since there are no elements like T and B in Image2.