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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to