Evgueni:

On Mon, Oct 12, 2009 at 10:05 AM, Evgueni Kolossov <[email protected]> wrote:
> Dear Greg,
>
> I want to have a fragment where atom (*) can be set to aromatic
>

Oh, you can still do that. You just can't sanitize the resulting molecule.
An illustration in Python:

[3]>>> m = Chem.MolFromSmiles('*CCC')
[4]>>> m.GetAtomWithIdx(0).SetIsAromatic(1)
[5]>>> Chem.SanitizeMol(m)
[10:09:27] non-ring atom 0 marked aromatic
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/scratch/RDKit-sf/Code/<ipython console> in <module>()

ValueError: Sanitization error: non-ring atom 0 marked aromatic

But I can still do some work with the molecule without problems. For example:

[6]>>> Chem.MolToSmiles(m)
Out[6] '[*]CCC'

[9]>>> AllChem.Compute2DCoords(m)
Out[9] 0

[12]>>> print Chem.MolToMolBlock(m,kekulize=False)

     RDKit          2D

  4  3  0  0  0  0  0  0  0  0999 V2000
    1.9796    0.1365    0.0000 R   0  0  0  0  0  0  0  0  0  0  0  0
    0.5994   -0.4508    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   -0.5994    0.4508    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   -1.9796   -0.1365    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
  1  2  1  0
  2  3  1  0
  3  4  1  0
M  END

Note the "kekulize=False" argument here.


Hope this helps,
-greg

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to