Table of Contents

Class: SequenceSet /amd/bernoulli/1/home/abt_vin/georgi/hmm/0.7/ghmm//ghmmwrapper/ghmm.py
Methods   
__del__
__getitem__
__init__
__len__
__str__
getSeqLabel
getSequence
getStateLabel
getSubset
getWeight
merge
sequenceLength
setSeqLabel
setWeight
write
  __del__ 
__del__ ( self )

Deallocation of C sequence struct.

  __getitem__ 
__getitem__ ( self,  index )

Return an EmissionSequence object initialized with a reference to sequence index.

Exceptions   
IndexError
  __init__ 
__init__ (
        self,
        emissionDomain,
        sequenceSetInput,
        labelDomain=None,
        labelInput=None,
        )

Exceptions   
IOError, 'File ' + str( sequenceSetInput ) + ' not found.'
NoValidCDataType, "C data type " + str( self.emissionDomain.CDataType ) + " invalid."
UnknownInputType, "inputType " + str(type( sequenceSetInput ) ) + " not recognized."
  __len__ 
__len__ ( self )

Return the number of sequences in the SequenceSet.

  __str__ 
__str__ ( self )

Defines string representation.

  getSeqLabel 
getSeqLabel ( self,  index )

  getSequence 
getSequence ( self,  index )

Returns the index-th sequence in internal representation

Exceptions   
IndexOutOfBounds( str( index ) + " is out of bounds, only " + str( self.cseq.seq_number ) + "sequences" )
  getStateLabel 
getStateLabel ( self,  index )

Returns the labeling of the index-th sequence in internal representation

Exceptions   
IndexOutOfBounds( str( 0 ) + " is out of bounds, only " + str( self.cseq.seq_number ) + "labels" )
  getSubset 
getSubset ( self,  seqIndixes )

Returns a SequenceSet containing (references to) the sequences with the indixes in seqIndixes.

  getWeight 
getWeight ( self,  i )

Return the weight of sequence i. Weights are used in Baum-Welch

  merge 
merge ( self,  emissionSequences )

Merge emisisonSequences with self. emisisonSequences can either be an EmissionSequence or SequenceSet object.

Exceptions   
TypeError, "EmissionSequence or SequenceSet required, got " + str( emissionSequences.__class__.__name__ )
  sequenceLength 
sequenceLength ( self,  i )

Return the lenght of sequence i in the SequenceSet

  setSeqLabel 
setSeqLabel (
        self,
        index,
        value,
        )

  setWeight 
setWeight (
        self,
        i,
        w,
        )

Return the weight of sequence i. Weights are used in Baum-Welch

  write 
write ( self,  fileName )

Writes (appends) the SequenceSet into file fileName.


Table of Contents

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