Methods
|
|
|
|
__del__
|
__del__ ( self )
Deallocation of C sequence struct.
|
|
__getitem__
|
__getitem__ ( self, index )
Return the symbol at position index .
|
|
__init__
|
__init__ (
self,
emissionDomain,
sequenceInput,
labelDomain=None,
labelInput=None,
ParentSequenceSet=None,
)
Exceptions
|
|
IOError, 'File ' + str( sequenceInput ) + ' not found.'
NoValidCDataType, "C data type " + str( self.emissionDomain.CDataType ) + " invalid."
UnknownInputType, "inputType " + str(type( sequenceInput ) ) + " not recognized."
badCPointer, "Use SequenceSet for multiple sequences."
|
|
|
__len__
|
__len__ ( self )
Returns the length of the sequence.
|
|
__setitem__
|
__setitem__ (
self,
index,
value,
)
|
|
__str__
|
__str__ ( self )
Defines string representation.
|
|
getSeqLabel
|
getSeqLabel ( self )
|
|
getStateLabel
|
getStateLabel ( self )
Returns the labeling of the sequence in internal representation
Exceptions
|
|
IndexOutOfBounds( str( 0 ) + " is out of bounds, only " + str( self.cseq.seq_number ) + "labels" )
|
|
|
getWeight
|
getWeight ( self )
|
|
sequenceSet
|
sequenceSet ( self )
Return a one-element SequenceSet with this sequence.
|
|
setSeqLabel
|
setSeqLabel ( self, value )
|
|
setWeight
|
setWeight ( self, value )
|
|
write
|
write ( self, fileName )
Writes the EmissionSequence into file fileName .
|