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.
Method Summary |
|
__init__(self)
|
|
add_instance(self,
instance)
|
|
get_instance_by_name(self,
name)
|
|
make_consensus(self,
minimum_frequency)
|
|
make_pssm(self)
|
|
_alphabet(self,
alphabet)
|
|
_consensus(self,
consensus)
|
|
_length(self,
length)
|
|
_name(self,
name)
|
|
_numoccurrences(self,
number)
|