Package mmLib :: Module Library :: Class Library
[show private | hide private]
[frames | no frames]

Class Library

      object --+    
               |    
LibraryInterface --+
                   |
                  Library


Interface to the mmLib element and monomer library. The library data is in XML and mmCIF files in the Data directory of the mmLib distribution.
Method Summary
  __init__(self)
  get_element(self, symbol)
Loads and caches a instance of the Element class for the given element symbol.
  get_monomer(self, res_name)
Loads and caches the monomer description.
  is_amino_acid(self, res_name)
Returns True if the monomer defined by the 3 letter code res_name is a L-amino acid, otherwise returns False.
  is_nucleic_acid(self, res_name)
Returns True if the monomer defined by res_name is a nucleic acid, otherwise returns False.
  is_water(self, res_name)
Returns True if the 3 letter code res_name is one of the synonyms for water, otherwise returns False.
    Inherited from LibraryInterface
  is_standard_residue(self, res_name)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Method Details

get_element(self, symbol)

Loads and caches a instance of the Element class for the given element symbol. The source of the element data is the elements.xml file.
Overrides:
mmLib.Library.LibraryInterface.get_element

get_monomer(self, res_name)

Loads and caches the monomer description.
Overrides:
mmLib.Library.LibraryInterface.get_monomer

is_amino_acid(self, res_name)

Returns True if the monomer defined by the 3 letter code res_name is a L-amino acid, otherwise returns False.
Overrides:
mmLib.Library.LibraryInterface.is_amino_acid (inherited documentation)

is_nucleic_acid(self, res_name)

Returns True if the monomer defined by res_name is a nucleic acid, otherwise returns False.
Overrides:
mmLib.Library.LibraryInterface.is_nucleic_acid (inherited documentation)

is_water(self, res_name)

Returns True if the 3 letter code res_name is one of the synonyms for water, otherwise returns False.
Overrides:
mmLib.Library.LibraryInterface.is_water (inherited documentation)

Generated by Epydoc 2.0 on Wed Nov 24 17:34:57 2004 http://epydoc.sf.net