Re: [Rdkit-discuss] Atom-map numbers in SMILES
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Grégori G. <gr...@ge...> - 2014-10-20 13:09:24
|
Hi Eleanor,
This is the way you can access the atom-map numbers:
for atom in mol.GetAtoms():
atom_map = atom.GetProp("molAtomMapNumber")
What you obtain is a string.
Best,
Grégori
On 20. 10. 14 15:03, Eleanor J Gardiner wrote:
> Hi//RDkitters
>
> I'm trying to access atom-map numbers in SMILES strings in Python. I
> read in
> ***** Release_2010.12.1 ******* (Changes relative to Release_2010.09.1)
> that
>
> Atom-map numbers in SMILES are now supported. They can be accessed as
> the atomic "molAtomMapNumber" property. (issue 3140494)
>
> but I cannot work out the Python syntax to get at them! What do I need
> to import and what is the name of the property?
>
> Thanks
>
> Eleanor
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
>
>
> _______________________________________________
> Rdkit-discuss mailing list
> Rdk...@li...
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
|