3 # BioPerl module for Bio::SeqEvolution::EvolutionI
5 # Cared for by Heikki Lehvaslaiho <heikki at bioperl dot org>
7 # Copyright Heikki Lehvaslaiho
9 # You may distribute this module under the same terms as perl itself
11 # POD documentation - main docs before the code
15 Bio::SeqEvolution::EvolutionI - the interface for evolving sequences
19 # not an instantiable class
23 This is the interface that all classes that mutate sequence objects in
24 constant fashion must implement. A good example is
25 Bio::SeqEvolution::DNAPoint.
31 User feedback is an integral part of the evolution of this and other
32 Bioperl modules. Send your comments and suggestions preferably to
33 the Bioperl mailing list. Your participation is much appreciated.
35 bioperl-l@bioperl.org - General discussion
36 http://bioperl.org/MailList.shtml - About the mailing lists
40 Report bugs to the Bioperl bug tracking system to help us keep track
41 of the bugs and their resolution. Bug reports can be submitted via the
44 http://bugzilla.bioperl.org/
48 Heikki Lehvaslaiho E<lt>heikki at bioperl dot orgE<gt>
52 Additional contributor's names and emails here
56 The rest of the documentation details each of the object methods.
57 Internal methods are usually preceded with a _
62 # Let the code begin...
65 package Bio
::SeqEvolution
::EvolutionI
;
68 use base
qw(Bio::Root::RootI);
73 Usage : $obj->annotation($newval)
74 Function: Get the annotation collection for this annotatable object.
76 Returns : a Bio::AnnotationCollectionI implementing object, or undef
77 Args : on set, new value (a Bio::AnnotationCollectionI
78 implementing object, optional) (an implementation may not
79 support changing the annotation collection)
81 See L<Bio::AnnotationCollectionI>
89 Usage : $obj->seq($newval)
90 Function: Set the sequence object for the original sequence
91 Returns : The sequence object
92 Args : newvalue (optional)
94 Setting this will reset mutation and generated mutation counters.
98 sub seq
{ shift->throw_not_implemented(); }
103 Usage : $obj->next_seq
104 Function: Evolve the reference sequence to desired level
105 Returns : A new sequence object mutated from the reference sequence
110 sub next_seq
{ shift->throw_not_implemented(); }
117 Function: mutate the sequence at the given location according to the model
119 Args : integer, start location of the mutation, required argument
121 Called from next_seq().
125 sub mutate
{ shift->throw_not_implemented(); }