Package generic_fns :: Package structure :: Module scientific :: Class MolContainer
[hide private]
[frames] | no frames]

Class MolContainer

source code

The empty list-type container for the non-protein and non-RNA molecular information.

Instance Methods [hide private]
 
from_xml(self, mol_node)
Recreate the MolContainer from the XML molecule node.
source code
 
reload_pdb(self)
Reload the PDB from the original file.
source code
 
to_xml(self, doc, element)
Create XML elements for the contents of this molecule container.
source code
Method Details [hide private]

from_xml(self, mol_node)

source code 

Recreate the MolContainer from the XML molecule node.

Parameters:
  • mol_node (xml.dom.minicompat.NodeList instance) - The molecule XML node.

to_xml(self, doc, element)

source code 

Create XML elements for the contents of this molecule container.

Parameters:
  • doc (xml.dom.minidom.Document instance) - The XML document object.
  • element (XML element object) - The element to add the molecule XML elements to.