NAME
Bio::SeqEvolution::Factory - Factory object to instantiate sequence evolving classes
SYNOPSIS
# not an instantiable class
DESCRIPTION
This is the factory class that can be used to call for a specific model to mutate a sequence.
Bio::SeqEvolution::DNAPoint is the default for nucleotide sequences and the only implementation at this point.
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR
Heikki Lehvaslaiho E<lt>heikki at bioperl dot orgE<gt>
CONTRIBUTORS
Additional contributor's names and emails here
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : newUsage : my $obj = Bio::SeqEvolution::Factory->new();Function: Builds a new Bio:SeqEvolution::EvolutionI objectReturns : Bio:SeqEvolution::EvolutionI objectArgs : -type => class name
See <Bio:SeqEvolution::EvolutionI>
_load_format_module
Title : _load_format_moduleUsage : *INTERNAL SeqIO stuff*Function: Loads up (like use) a module at run time on demandExample :Returns :Args :
type
Title : typeUsage : $obj->type($newval)Function: Set used evolution model. It is set by giving avalid Bio::SeqEvolution::* class nameReturns : value of typeArgs : newvalue (optional)
Defaults to Bio::SeqEvolution::DNAPoint.
mutation counters
The next three methods set a value to limit the number of mutations introduced the the input sequence.
identity
Title : identityUsage : $obj->identity($newval)Function: Set the desired identity between original and mutated sequenceReturns : value of identityArgs : newvalue (optional)
pam
Title : pamUsage : $obj->pam($newval)Function: Set the wanted Percentage of Accepted Mutations, PAMReturns : value of PAMArgs : newvalue (optional)
When you are measuring sequence divergence, PAM needs to be estimated. When you are generating sequences, PAM is simply the count of mutations introduced to the reference sequence normalised to the original sequence length.
mutation_count
Title : mutation_countUsage : $obj->mutation_count($newval)Function: Set the number of wanted mutations to the sequenceReturns : value of mutation_countArgs : newvalue (optional)
seq
Title : seqUsage : $obj->seq($newval)Function: Set the sequence object for the original sequenceReturns : The sequence objectArgs : newvalue (optional)
Setting this will reset mutation and generated mutation counters.
seq_type
Title : seq_typeUsage : $obj->seq_type($newval)Function: Set the returned seq_type to one neededReturns : value of seq_typeArgs : newvalue (optional)
Defaults to Bio::PrimarySeq.
get_mutation_counter
Title : get_mutation_counterUsage : $obj->get_mutation_counter()Function: Get the count of sequences createdReturns : value of counterArgs : -
reset_mutation_counter
Title : reset_mutation_counterUsage : $obj->reset_mutation_counter()Function: Resert the counter of mutationsReturns : value of counterArgs : -
get_sequence_counter
Title : get_sequence_counterUsage : $obj->get_sequence_counter()Function: Get the count of sequences createdReturns : value of counterArgs : -
reset_sequence_counter
Title : reset_sequence_counterUsage : $obj->reset_sequence_counter()Function: Resert the counter of sequences createdReturns : value of counterArgs : -
This is called when ever mutated sequences are reassigned new values using methods seq() and mutated_seq(). As a side affect, this method also recreates the intermal alignment that is used to calculate the sequence identity.
each_seq
Title : each_seqUsage : $obj->each_seq($int)Function:Returns : an array of sequences mutated from the reference sequenceaccording to evolutionary parameters givenArgs : -
each_mutation
Title : each_mutationUsage : $obj->each_mutationFunction: return the mutations leading to the last generatedsequence in objectsReturns : an array of Bio::Variation::DNAMutation objectsArgs : optional argument to return an array of stringified names
Internal methods
_increase_mutation_counter
Title : _increase_mutation_counterUsage : $obj->_increase_mutation_counter()Function: Internal method to increase the counter of mutations performedReturns : value of counterArgs : -
_increase_sequence_counter
Title : _increase_sequence_counterUsage : $obj->_increase_sequence_counter()Function: Internal method to increase the counter of sequences createdReturns : value of counterArgs : -