Methods
|
|
|
|
__add__
|
__add__ ( self, other )
Exceptions
|
|
TypeError, ("incompatable alphabets", str( self.alphabet ), str( other.alphabet ) )
|
|
|
__getitem__
|
__getitem__ ( self, i )
|
|
__getslice__
|
__getslice__ (
self,
i,
j,
)
|
|
__init__
|
__init__ (
self,
data,
alphabet=Alphabet.generic_alphabet,
)
|
|
__len__
|
__len__ ( self )
I don't think I like this method...
def __cmp__(self, other):
if isinstance(other, Seq):
return cmp(self.data, other.data)
else:
return cmp(self.data, other)
|
|
__radd__
|
__radd__ ( self, other )
Exceptions
|
|
TypeError, ("incompatable alphabets", str( self.alphabet ), str( other.alphabet ) )
|
|
|
__repr__
|
__repr__ ( self )
|
|
__str__
|
__str__ ( self )
|
|
count
|
count ( self, item )
|
|
tomutable
|
tomutable ( self )
|
|
tostring
|
tostring ( self )
|
|