There was a typo in my earlier message.

The last example I intended to send was:
>>> mol = Chem.MolFromSmiles('N1C=CC=C1')
>>> Chem.Kekulize(mol,clearAromaticFlags=True)
>>> for atom in mol.GetAtoms():
     if atom.GetAtomicNum() in (7,15,16) and atom.GetNumExplicitHs()==1:
        atom.SetNumExplicitHs(0)
...
>>> tempMol = Chem.EditableMol(mol)
>>> idx = tempMol.AddAtom(Chem.Atom(0))
>>> tempMol.AddBond(idx,0,Chem.BondType.SINGLE)
6
>>> nm = tempMol.GetMol()
>>> print Chem.MolToSmiles(nm)
[*]N1C=CC=C1

The earlier message included a spurious "sanitize=False" argument to the
Chem.MolFromSmiles() call.

-greg
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to