Menu

#668 wrong mol2 -> SMILES conversion

2.3.x
open
nobody
5
2012-10-23
2010-11-10
filips
No

there is a problem with indicating Z/E isomers in SMILES generated from mol2 files.

Eg. for 1,2-dichloroethane. For structures saved in mol files, smiles (smi or can) are generated correctly:

babel Z.mol -o can
Cl/C=C\Cl Z
1 molecule converted
32 audit log messages

babel E.mol -o can
Cl/C=C/Cl E
1 molecule converted
32 audit log messages

while for files saved in mol2 format, we dont get the E/Z isomerism:

babel Z.mol2 -o can
ClC=CCl Z
1 molecule converted
32 audit log messages

babel E.mol2 -o can
ClC=CCl E
1 molecule converted
32 audit log messages

Converting mol2 back to mol fixes the problem.

greetings,
F

Discussion

  • Noel O'Boyle

    Noel O'Boyle - 2010-11-24

    Can you provide a test file?

     
  • filips

    filips - 2010-11-25

    E isomer

     
  • filips

    filips - 2010-11-25

    Z isomer

     
  • filips

    filips - 2010-11-25

    Here they are. Files generated in ChemSketch 12 v. 12.01 and exported as mol2000.

     
  • Noel O'Boyle

    Noel O'Boyle - 2010-12-06

    This bug refers to MOL2 files, but the examples you provided are MOL files. Which is the problem?