Package Bio :: Package MEME :: Module Motif :: Class Motif
[hide private]
[frames] | no frames]

Class Motif

source code

Known Subclasses:

A generic motif class.

A Motif has information about the alphabet used in the motif, the length of the motif, the motif name, the number of occurrences, and the individual instances of the motif. Each of the instances is an object of the Instance class.

Methods: add_instance(instance): adds a new instance of the motif. get_instance_by_name(name): returns an instance with the specified name.

Instance Methods [hide private]
 
__init__(self) source code
 
add_instance(self, instance) source code
 
get_instance_by_name(self, name) source code
 
_alphabet(self, alphabet) source code
 
_length(self, length) source code
 
_name(self, name) source code
 
_consensus(self, consensus) source code
 
_numoccurrences(self, number) source code
 
make_pssm(self) source code
 
make_consensus(self, minimum_frequency=0.6) source code