NAME
Bio::Tools::Run::Simprot - Wrapper around the Simprot program. Wrapper for the calculation of a multiple sequence alignment from a phylogenetic tree
SYNOPSIS
use Bio::Tools::Run::Simprot;use Bio::TreeIO;my $treeio = Bio::TreeIO->new(-format => 'nh', -file => 't/data/tree.nh');my $tree = $treeio->next_tree;my $simprot = Bio::Tools::Run::Simprot->new();$simprot->tree($tree);my ($rc,$aln,$seq) = $simprot->run();
DESCRIPTION
This is a wrapper around the Simprot program by Andy Pang, Andrew D Smith, Paulo AS Nuin and Elisabeth RM Tillier.
Simprot allows for several models of amino acid substitution (PAM, JTT and PMB), allows for gamma distributed sites rates according to Yang's model, and implements a parameterised Qian and Goldstein distribution model for insertion and deletion.
See http://www.uhnres.utoronto.ca/labs/tillier/software.htm for more information.
Helping the module find your executable
You will need to enable SIMPROTDIR to find the simprot program. This can be done in (at least) three ways:
1. Make sure the simprot executable is in your path (i.e.'which simprot' returns a valid program2. define an environmental variable SIMPROTDIR which points to adirectory containing the 'simprot' app:In bashexport SIMPROTDIR=/home/progs/simprot orIn csh/tcshsetenv SIMPROTDIR /home/progs/simprot3. include a definition of an environmental variable SIMPROTDIRin every script that willBEGIN {$ENV{SIMPROTDIR} = '/home/progs/simprot'; }use Bio::Tools::Run::Simprot;
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 one of the Bioperl mailing lists. 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 the bugs and their resolution. Bug reports can be submitted via the web:
http://redmine.open-bio.org/projects/bioperl/
AUTHOR - Albert Vilella
Email avilella-at-gmail-dot-com
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
program_name
Title : program_nameUsage : $factory->program_name()Function: holds the program nameReturns: stringArgs : None
program_dir
Title : program_dirUsage : $factory->program_dir(@params)Function: returns the program directory, obtained from ENV variable.Returns: stringArgs :
new
Title : newUsage : my $simprot = Bio::Tools::Run::Simprot->new();Function: Builds a new Bio::Tools::Run::SimprotReturns : Bio::Tools::Run::SimprotArgs : -alignment => the Bio::Align::AlignI object-tree => the Bio::Tree::TreeI object-save_tempfiles => boolean to save the generated tempfiles andNOT cleanup after onesself (default FALSE)-executable => where the simprot executable resides-params => A reference to a hash where keys are parameter namesand hash values are the associated parameter values
See also: Bio::Tree::TreeI, Bio::Align::AlignI
set_parameters
Title : set_parametersUsage : $codeml->set_parameters($parameter, $value);Function: (Re)set the SimProt parametersReturns : noneArgs : First argument is the parameter nameSecond argument is the parameter value
set_default_parameters
Title : set_default_parametersUsage : $codeml->set_default_parameters(0);Function: (Re)set the default parameters from the defaults(the first value in each array in the%VALIDVALUES class variable)Returns : noneArgs : boolean: keep existing parameter values
get_parameters
Title : get_parametersUsage : my %params = $self->get_parameters();Function: returns the list of parameters as a hashReturns : associative array keyed on parameter namesArgs : none
prepare
Title : prepareUsage : my $rundir = $simprot->prepare();Function: prepare the simprot analysis using the default or updated parametersthe alignment parameter and species tree must have been setReturns : value of rundirArgs : L<Bio::Align::AlignI> object,L<Bio::Tree::TreeI> object [optional]
run
Title : runUsage : my $nhx_tree = $simprot->run();Function: run the simprot analysis using the default or updated parametersthe alignment parameter must have been setReturns : L<Bio::Tree::TreeI> object [optional]Args : L<Bio::Align::AlignI> objectL<Bio::Tree::TreeI> object
error_string
Title : error_stringUsage : $obj->error_string($newval)Function: Where the output from the last analysus run is stored.Returns : value of error_stringArgs : newvalue (optional)
version
Title : versionUsage : exit if $prog->version() < 1.8Function: Determine the version number of the programExample :Returns : float or undefArgs : none
alignment
Title : alignmentUsage : $simprot->align($aln);Function: Get/Set the L<Bio::Align::AlignI> objectReturns : L<Bio::Align::AlignI> objectArgs : [optional] L<Bio::Align::AlignI>Comment : We could potentially add support for running directly on a filebut we shall keep it simpleSee also: L<Bio::SimpleAlign>
tree
Title : treeUsage : $simprot->tree($tree, %params);Function: Get/Set the L<Bio::Tree::TreeI> objectReturns : L<Bio::Tree::TreeI>Args : [optional] $tree => L<Bio::Tree::TreeI>,[optional] %parameters => hash of tree-specific parametersComment : We could potentially add support for running directly on a filebut we shall keep it simpleSee also: L<Bio::Tree::Tree>
Bio::Tools::Run::BaseWrapper methods
save_tempfiles
Title : save_tempfilesUsage : $obj->save_tempfiles($newval)Function:Returns : value of save_tempfilesArgs : newvalue (optional)
outfile_name
Title : outfile_nameUsage : my $outfile = $simprot->outfile_name();Function: Get/Set the name of the output file for this run(if you wanted to do something special)Returns : stringArgs : [optional] string to set value to
tempdir
Title : tempdirUsage : my $tmpdir = $self->tempdir();Function: Retrieve a temporary directory name (which is created)Returns : string which is the name of the temporary directoryArgs : none
cleanup
Title : cleanupUsage : $simprot->cleanup();Function: Will cleanup the tempdir directoryReturns : noneArgs : none
io
Title : ioUsage : $obj->io($newval)Function: Gets a L<Bio::Root::IO> objectReturns : L<Bio::Root::IO>Args : none