Method atoms_ibors_compnt belongs to
class Notation, the core class for managing
a CurlySMILES notation.
Module:
|
csm_notation.py
|
Method:
|
rings_compnt(iCompnt)
|
Argument:
|
iCompnt (index of component);
type: integer;
values: 1,
2,..., or
nCompnt
|
Return:
|
lstRings, a
list of sublists of ring indices.
Each sublist contains the indices of all the atoms (in contiguous order)
that are members of a particular ring of the molecular graph.
Atom indices start with 0
for the sake of compatibility with Python indexing rules.
|
Example:
|
For the one-component CurlySMILES notation
___
sNotation = 'c1cc(OC)ccc1C2=COc3cc(O)ccc3C2=O'
the call
___
lstRings = oNotation.rings_compnt(1)
makes the assignment
___
lstRings = [ [0,1,2,5,6,7],
________________
[8,9,10,11,17,18],
________________
[11,12,13,15,16,17]
______________
]
|
|
|