Package Bio :: Package motifs :: Class Instances
[hide private]
[frames] | no frames]

Class Instances

source code

object --+    
         |    
      list --+
             |
            Instances

A class representing instances of sequence motifs.
Instance Methods [hide private]
new empty list

__init__(self, instances=[], alphabet=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
integer

count(self)
return number of occurrences of value
source code
 
search(self, sequence)
a generator function, returning found positions of motif instances in a given sequence
source code
 
reverse_complement(self) source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, instances=[], alphabet=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty list

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

count(self)

source code 
return number of occurrences of value

Returns:
integer

Overrides: list.count
(inherited documentation)