CurlySMILES class Notation: method aaa_indices_iu_compnt

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

Module: csm_notation.py
Method: aaa_indices_iu_compnt(iCompnt)
Argument: iCompnt (index of component);
type: integer;
values: 1, 2,..., or nCompnt
Return: lstIndices, a list of indices identifying those atomic symbols in a component notation that have one or more atom-anchored annotations. Atomic nodes in a component notation are enumerated from left to right, starting with 1. To get indices based on an enumeration starting with 0, use method aaa_indices_compnt.
Example: For the one-component CurlySMILES notation of (2R,3R)-2,3,4-trihydroxybutanal (D-erythrose)

___ sNotation = 'O=CC{R}(O)C{R}(O)CO'

the call

___ lstIndices = oNotation.aaa_indices_compnt(1)

makes the assignment

___ lstIndices = [3,5]


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