CurlySMILES class Notation: method deloc_charge_compnt

Method deloc_charge_compnt belongs to class Notation, the core class for managing a CurlySMILES notation.

Module: csm_notation.py
Method: deloc_charge_compnt(iCompnt)
Argument: iCompnt (index of component);
type: integer;
values: 1, 2,..., or nCompnt
Return: nCharge, a positive or negative integer derived as sum of charge values in atom-anchored MDAM annotations via key e ; zero otherwise.
Example: For the CurlySMILES notation of the aromatic cyclooctatetraenide dianion

___ sNotation = 'c1ccccccc1{!re=-2}'

the call

___ nCharge = oNotation.deloc_charge_compnt(1)

makes the assignment

___ nCharge = -2


Please, email comments and suggestions to axeleratio@yahoo.com
Custom Search