Table of Contents

Class: PairHMMOpenFactory /amd/bernoulli/1/home/abt_vin/georgi/hmm/0.7/ghmm//ghmmwrapper/ghmm.py

factory to create PairHMM objects from XML files

Base Classes   
HMMOpenFactory
Methods   
__call__
  __call__ 
__call__ (
        self,
        fileName_file_or_dom,
        modelIndex=None,
        )

a call to the factory loads a model from a file specified by the filename or from a file object or from a XML Document object and initializes the model on the C side (libghmm). @param fileName_file_or_dom: load the model from a file specified by a filename, a file object or a XML Document object @param modelIndex: not used (inherited from HMMOpenFactory) @return: PairHMM object

Exceptions   
IOError, 'File ' + str( fileName_file_or_dom ) + ' not found.'
InvalidModelParameters("in state %s len(emissions) = %i size should be %i" %( pystate.id, len(B [ i ] ), size ) )
InvalidModelParameters, " Different number of entries in A and B."
InvalidModelParameters, "A is not quadratic."
InvalidModelParameters, "Length of pi does not match length of A."
InvalidModelParameters, "Model type specified in the XML file (%s) is not pairHMM" % hmm_dom.modelType

Table of Contents

This document was automatically generated on Fri Jan 20 14:56:59 2006 by HappyDoc version WORKING