CurlySMILES class Notation: method atoms_charge_compnt

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

Module: csm_notation.py
Method: atoms_charge_compnt(iCompnt)
Argument: iCompnt (index of component);
type: integer;
values: 1, 2,..., or nCompnt
Return: lstCharge, a list with negative or positive integers or 0 depending on the value of the formal charge associated with an atom. The integers occur in the order of the corresponding atomic symbols in the component notation.
Example: For the CurlySMILES notation of ethylammonium benzoate

___ sNotation = 'CC[NH3+].[O-]C(=O)c1ccccc1'

the calls

___ lstCharge1 = oNotation.atoms_aromat_compnt(1)
___ lstCharge2 = oNotation.atoms_aromat_compnt(2)

make the assignments

___ lstCharge1 = [0,0,1]
___ lstCharge2 = [-1,0,0,0,0,0,0,0,0]


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