2 # BioPerl module for Bio::SeqEvolution::EvolutionI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Heikki Lehvaslaiho <heikki at bioperl dot org>
8 # Copyright Heikki Lehvaslaiho
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
16 Bio::SeqEvolution::EvolutionI - the interface for evolving sequences
20 # not an instantiable class
24 This is the interface that all classes that mutate sequence objects in
25 constant fashion must implement. A good example is
26 Bio::SeqEvolution::DNAPoint.
32 User feedback is an integral part of the evolution of this and other
33 Bioperl modules. Send your comments and suggestions preferably to
34 the Bioperl mailing list. Your participation is much appreciated.
36 bioperl-l@bioperl.org - General discussion
37 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
41 Please direct usage questions or support issues to the mailing list:
43 I<bioperl-l@bioperl.org>
45 rather than to the module maintainer directly. Many experienced and
46 reponsive experts will be able look at the problem and quickly
47 address it. Please include a thorough description of the problem
48 with code and data examples if at all possible.
52 Report bugs to the Bioperl bug tracking system to help us keep track
53 of the bugs and their resolution. Bug reports can be submitted via the
56 https://github.com/bioperl/bioperl-live/issues
60 Heikki Lehvaslaiho E<lt>heikki at bioperl dot orgE<gt>
64 Additional contributor's names and emails here
68 The rest of the documentation details each of the object methods.
69 Internal methods are usually preceded with a _
74 # Let the code begin...
77 package Bio
::SeqEvolution
::EvolutionI
;
80 use base
qw(Bio::Root::RootI);
85 Usage : $obj->annotation($newval)
86 Function: Get the annotation collection for this annotatable object.
88 Returns : a Bio::AnnotationCollectionI implementing object, or undef
89 Args : on set, new value (a Bio::AnnotationCollectionI
90 implementing object, optional) (an implementation may not
91 support changing the annotation collection)
93 See L<Bio::AnnotationCollectionI>
101 Usage : $obj->seq($newval)
102 Function: Set the sequence object for the original sequence
103 Returns : The sequence object
104 Args : newvalue (optional)
106 Setting this will reset mutation and generated mutation counters.
110 sub seq
{ shift->throw_not_implemented(); }
115 Usage : $obj->next_seq
116 Function: Evolve the reference sequence to desired level
117 Returns : A new sequence object mutated from the reference sequence
122 sub next_seq
{ shift->throw_not_implemented(); }
129 Function: mutate the sequence at the given location according to the model
131 Args : integer, start location of the mutation, required argument
133 Called from next_seq().
137 sub mutate
{ shift->throw_not_implemented(); }