Package schrodinger :: Module structure :: Class _Ring
[hide private]
[frames] | no frames]

Class _Ring

_AtomCollection --+
                  |
                 _Ring

Class representing a ring.

Important methods include extractStructure and getAtomList. The atom attribute returns an iterator over all atoms in the ring, and the number of atoms can be determined via len(molecule.atom). The edge attribute works in a similar manner for bonds in the ring.

Instance Methods [hide private]
 
__init__(self, st, ringnum, atoms, iterator)
 
__str__(self)
 
_getRingEdgeIterator(self)
 
isAromatic(self)
 
isHeteroaromatic(self)
 
applyStyle(self, atoms=ATOM_BALLNSTICK, bonds=BOND_BALLNSTICK)
Applies the given display styles to the atoms and bonds of the ring.

Inherited from _AtomCollection: __len__, atom, extractStructure, getAtomList

Class Variables [hide private]
  edge = property(_getRingEdgeIterator, doc= "Returns a bond ite...
Method Details [hide private]

__init__(self, st, ringnum, atoms, iterator)
(Constructor)

 
Overrides: _AtomCollection.__init__

applyStyle(self, atoms=ATOM_BALLNSTICK, bonds=BOND_BALLNSTICK)

 

Applies the given display styles to the atoms and bonds of the ring.

Parameters:
  • atoms (int) - display style for atoms given by structure module constants ATOM_NOSTYLE, ATOM_CIRCLE, ATOM_CPK, ATOM_BALLNSTICK. Default is ATOM_BALLNSTICK.
  • atoms (int) - display style for bonds given by structure module constants BOND_NOSTYLE, BOND_WIRE, BOND_TUBE, BOND_BALLNSTICK. Default is BOND_BALLNSTICK.
  • bonds (int)

Class Variable Details [hide private]

edge

Value:
property(_getRingEdgeIterator, doc= "Returns a bond iterator for all e\
dges in the ring.")