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

Module mmLib.FileLoader

Load and save mmLib.Structure objects from/to mmLib supported formats. The mmCIF and PDB file formats are currently supported.
Function Summary
  decode_format(path)
Returns the 3-letter MIME code for the file format.
  LoadStructure(**args)
Loads a mmCIF file(.cif) or PDB file(.pdb) into a Structure class and returns it.
  SaveStructure(**args)
Saves a Structure object into a supported file type.

Function Details

decode_format(path)

Returns the 3-letter MIME code for the file format.

LoadStructure(**args)

Loads a mmCIF file(.cif) or PDB file(.pdb) into a Structure class and returns it. The function takes 5 named arguments, one is required:

fil = <file object or path; required> format = <PDB|CIF; defaults to PDB> library = <mmLib.Library class; defaults to mmLib.Library> struct = <mmLib.Structure object to build on; defaults to createing new> build_properties = <tuple of strings for the StructureBuilder>

SaveStructure(**args)

Saves a Structure object into a supported file type. fil = <file object or path; required> struct = <mmLib.Structure object to save; required> format = <PDB|CIF; defaults to PDB>

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