CurlySMILES class Notation: method atpair_bond_compnt

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

Module: csm_notation.py
Method: atpair_bond_compnt(iCompnt,iAtom,jAtom)
Argument: iCompnt (index of component);
type: integer;
values: 1, 2,..., or nCompnt;
iAtom and jAtom are indices of a selected pair of atoms of the component
with integer values from 1 to nAtoms.
Return: '-', '=', '#', '$', ':', or '~', depending on the bond symbol assigned to the bond between the atoms with indices iAtom and jAtom;
None, if there is no bond between these two atoms
Example: For the CurlySMILES notation of (E)-2-butenedioic acid (fumaric acid)

___ sNotation = 'O=C(O)C=C{E}C(=O)O'

the call

___ cBondSymb = oNotation.atpair_bond_compnt(1,4,5)

makes the assignment

___ cBondSymb = '='


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