error with sdf when using SDMolSupplier #7337
-
Hi all! Recently, I have encountered an error with a molecule in SDF format when trying to process it with a SDMolSupplier. The molecule has some aromatic bonds, when I replace them with single and double bonds, it works fine. The snippet of code where I have the error is:
If I use mol_ok.sdf (without aromatic bonds) everything works just fine, but when I use mol_fail.sdf (with aromatic bonds) it crashes. It gives me this error: I adjoint both SDF files. (As I can't add files with .sdf extension I have converted them to .txt files) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@migueltarancon : According to the documentation, SDF files are only supposed to include aromatic bond types if they are encoding queries. It's better to provide the structures with explicit single and double bonds and thus both follow the format spec and avoid all problems with incompatible aromaticity models. |
Beta Was this translation helpful? Give feedback.
@migueltarancon : According to the documentation, SDF files are only supposed to include aromatic bond types if they are encoding queries. It's better to provide the structures with explicit single and double bonds and thus both follow the format spec and avoid all problems with incompatible aromaticity models.