CurlySMILES class Notation: method aaa_indices_compnt

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

Module: csm_notation.py
Method: aaa_indices_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 the molecular graph of a component that have one or more atom-anchored annotations.
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 = [2,4]


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