NAME
Bio::Tools::Run::Phylo::Phylip::SeqBoot - Wrapper for the phylip program SeqBoot
SYNOPSIS
#Create a SimpleAlign object@params = ('ktuple' => 2, 'matrix' => 'BLOSUM');$factory = Bio::Tools::Run::Alignment::Clustalw->new(@params);$inputfilename = 't/data/cysprot.fa';$aln = $factory->align($inputfilename); # $aln is a SimpleAlign object.# Use seqboot to generate bootstap alignmentsmy @params = ('datatype'=>'SEQUENCE','replicates'=>100);my $seq = Bio::Tools::Run::Phylo::Phylip::SeqBoot->new(@params);my $aln_ref = $seq->run($aln);my $aio = Bio::AlignIO->new(-file=>">alignment.bootstrap",-format=>"phylip");foreach my $ai(@{$aln_ref}){$aio->write_aln($ai);}# To prevent PHYLIP from truncating sequence names:# Step 1. Shelf the original names:my ($aln_safe, $ref_name)= # $aln_safe has serial names$aln->set_displayname_safe(); # $ref_name holds orginal names# Step 2. Run PHYLIP programs:$aln_ref = $seq->run($aln_safe); # Use $aln_safe instead of $aln# Step 3. Retrieve orgininal names$aio = Bio::AlignIO->new(-file=>">alignment.bootstrap",-format=>"fasta"); # FASTA output to view full namesforeach my $ai(@{$aln_ref}){my $new_aln=$ai->restore_displayname($ref_name); # Restore names$aio->write_aln($new_aln);}
DESCRIPTION
Wrapper for seqboot from the phylip package by Joseph Felsentein.
Taken from phylip doc...
"SEQBOOT is a general boostrapping tool. It is intended to allow you to generate multiple data sets that are resampled versions of the input data set. SEQBOOT can handle molecular sequences, binary characters, restriction sites, or gene frequencies."
More documentation on using seqboot and setting parameters may be found in the phylip package.
VERSION Support This wrapper currently supports v3.5 of phylip. There is also support for v3.6 although this is still experimental as v3.6 is still under alpha release and not all functionalities maybe supported.
PARAMETERS FOR SEQBOOT
MODEL
Title : DATATYPE Description : (optional)
This program supports 3 different datatypesSEQUENCE: Molecular SequencesMORPH : Discrete Morphological CharactersREST : Restriction SitesGENEFREQ: Gene FrequenciesDefaults to SEQUENCE
PERMUTE
Title: PERMUTE Description: (optional)
3 different resampling methods are available:BOOTSTRAP : creating a new data set by sampling Ncharacters randomly with replacement Theresulting data set has the same size as theoriginal, but some characters have been leftout and others are duplicatedJACKKNIFE : Delete-half-jackknifing. It involves samplinga random half of the characters, andincluding them in the data but dropping theothers The resulting data sets are half thesize of the original, and no characters areduplicated.PERMUTE : Permuting species within characters. Itinvolves permuting the columns of the datamatrix separately. This produces data matricesthat have the same number and kinds ofcharacters but no taxonomic structure.Defaults to BOOTSTRAP
REPLICATES
Title : REPLICATESDescription : (optional)This options allows the user to set the number ofreplicate data sets. Most statisticians would behappiest with 1000 to 10,000 replicates in abootstrap, but 100 gives a good rough pictureDefaults to 100
ALLELES
Title : ALLELES Description : (optional)
This option is to be used with gene frequencies datatypeoption to specify that all alleles at each locus are inthe input file.Defaults to NULL
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 - Shawn Hoon
Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
program_name
Title : program_nameUsage : >program_name()Function: holds the program nameReturns: stringArgs : None
program_dir
Title : program_dirUsage : ->program_dir()Function: returns the program directory, obtained from ENV variable.Returns: stringArgs :
idlength
Title : idlengthUsage : $obj->idlength ($newval)Function:Returns : value of idlengthArgs : newvalue (optional)
run
Title : runUsage :$inputfilename = 't/data/prot.phy';$matrix= $seqboot_factory->run($inputfilename);or$seq_array_ref = \@seq_array; @seq_array is array of Seq objs$aln = $clustalw_factory->align($seq_array_ref);$aln_ref = $SeqBootfactory->run($aln);Function: Create bootstrap sets of alignmentsExample :Returns : an array ref of L<Bio::SimpleAlign>Args : Name of a file containing a multiple alignment in Phylip formator an SimpleAlign objectThrows an exception if argument is not either a string (eg afilename) or a Bio::SimpleAlign object. Ifargument is string, throws exception if file corresponding to stringname can not be found.
_run
Title : _runUsage : Internal function, not to be called directlyFunction: makes actual system call to SeqBoot programExample :Returns : an array ref of <Bio::SimpleAlign>Args : Name of a file containing a set of multiple alignments in Phylip formatand a parameter string to be passed to SeqBoot
_setinput()
Title : _setinputUsage : Internal function, not to be called directlyFunction: Create input file for SeqBoot programExample :Returns : name of file containing a multiple alignment in Phylip formatArgs : SimpleAlign object reference or input file name
_setparams()
Title : _setparamsUsage : Internal function, not to be called directlyFunction: Create parameter inputs for SeqBoot programExample :Returns : parameter string to be passed to SeqBootArgs : name of calling object
Bio::Tools::Run::Wrapper methods
no_param_checks
Title : no_param_checksUsage : $obj->no_param_checks($newval)Function: Boolean flag as to whether or not we shouldtrust the sanity checks for parameter valuesReturns : value of no_param_checksArgs : newvalue (optional)
save_tempfiles
Title : save_tempfilesUsage : $obj->save_tempfiles($newval)Function:Returns : value of save_tempfilesArgs : newvalue (optional)
outfile_name
Title : outfile_nameUsage : my $outfile = $SeqBoot->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 : $codeml->cleanup();Function: Will cleanup the tempdir directory after a SeqBoot runReturns : noneArgs : none
io
Title : ioUsage : $obj->io($newval)Function: Gets a L<Bio::Root::IO> objectReturns : L<Bio::Root::IO>Args : none