Hi Greg,

I've noticed the following:
>>> m = Chem.MolFromSmarts("[O]=[O+]-[O-]")
>>> print Chem.MolToSmarts(m)
O=[O&+]-[O&-]
>>> print Chem.MolToSmiles(m)
O=OO

In order to have a correct SMILES for it I do:
>>> smiles = Chem.MolToSmarts(m).replace("&". "")
>>> m1 = Chem.MolFromSmiles(smiles)
>>> print Chem.MolToSmiles(m1)
O=[O+]-[O-]

Regards,

Christos

Christos Kannas

Researcher
Ph.D Student

Mob (UK): +44 (0) 7447700937
Mob (Cyprus): +357 99530608

[image: View Christos Kannas's profile on
LinkedIn]<http://cy.linkedin.com/in/christoskannas>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Rdkit-devel mailing list
Rdkit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-devel

Reply via email to