NAME
Bio::Tools::Run::Alignment::StandAloneFasta - Object for the local execution of the Fasta3 programs ((t)fasta3, (t)fastx3, (t)fasty3 ssearch3)
SYNOPSIS
#!/usr/bin/perluse Bio::Tools::Run::Alignment::StandAloneFasta;use Bio::SeqIO;use strict;my @arg=('b' =>'15','O' =>'resultfile','H'=>'','program'=>'fasta34');my $factory=Bio::Tools::Run::Alignment::StandAloneFasta->new(@arg);$factory->ktup(1);$factory->library('p');#print result file nameprint $factory->O;my @fastreport=$factory->run($ARGV[0]);foreach (@fastreport) {print "Parsed fasta report:\n";my $result = $_->next_result;while( my $hit = $result->next_hit()) {print "\thit name: ", $hit->name(), "\n";while( my $hsp = $hit->next_hsp()) {print "E: ", $hsp->evalue(), "frac_identical: ",$hsp->frac_identical(), "\n";}}}#pass in seq objectsmy $sio = Bio::SeqIO->new(-file=>$ARGV[0],-format=>"fasta");my $seq = $sio->next_seq;my @fastreport=$factory->run($ARGV[0]);
DESCRIPTION
This wrapper works with version 3 of the FASTA program package (see W. R. Pearson and D. J. Lipman (1988), "Improved Tools for Biological Sequence Analysis", PNAS 85:2444-2448 (Pearson and Lipman, 1988); W. R. Pearson (1996) "Effective protein sequence comparison" Meth. Enzymol. 266:227-258 (Pearson, 1996); Pearson et. al. (1997) Genomics 46:24-36 (Zhang et al., 1997); Pearson, (1999) Meth. in Molecular Biology 132:185-219 (Pearson, 1999). Version 3 of the FASTA packages contains many programs for searching DNA and protein databases and one program (prss3) for evaluating statistical significance from randomly shuffled sequences.
Fasta is available at ftp://ftp.virginia.edu/pub/fasta
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 - Tiequan Zhang
Adapted for bioperl by Shawn HoonEnhanced by Jason Stajich
Email [email protected]
[email protected]
jason-at-bioperl.org
Appendix
The rest of the documendation details each of the object methods. Internal methods are preceded with a underscore
program_name
Title : program_nameUsage : $factory->program_name()Function: holds the program nameReturns: stringArgs : None
executable
Title : executableUsage : my $exe = $blastfactory->executable('blastall');Function: Finds the full path to the 'codeml' executableReturns : string representing the full path to the exeArgs : [optional] name of executable to set path to[optional] boolean flag whether or not warn when exe is not found
program_dir
Title : program_dirUsage : $factory->program_dir(@params)Function: returns the program directory, obtained from ENV variable.Returns: stringArgs :
run
Title : runUsage : my @fasta_object = $factory->($input,$onefile);where $factory is the name of executable FASTA program;$input is file name containing the sequences in the formatof fasta or Bio::Seq object or array of Bio::Seq object;$onefile is 0 if you want to save the outputs to different filesdefault: outputs are saved in one fileFunction: Attempts to run an executable FASTA programand return array of fasta objects containing the fasta reportReturns : aray of fasta report objectIf the user specify the output file(s),the raw fasta report will be savedArgs : sequence object OR array reference of sequence objectsfilename of file containing fasta formatted sequences
library
Title : libraryUsage : my $lb = $self->libraryFunction: Fetch or set the name of the library to search againstReturns : The name of the libraryArgs : No argument if user wants to fetch the name of library file;A letter or a string of letter preceded by %;(e.g. P or %pn, the letter is the character in the third fieldof any line of fastlibs file ) or the name of library file(if environmental variable FASTLIBS is not set);if user wants to set the name of library file to search against
output
Title : outputUsage : $obj->output($newval)Function: The output directory if we want to use thisExample :Returns : value of output (a scalar)Args : on set, new value (a scalar or undef, optional)
ktup
Title : ktupUsage : my $ktup = $self->ktupFunction: Fetch or set the ktup value for executable FASTA programsExample :Returns : The value of ktup if defined, else undef is returnedArgs : No argument if user want to fetch ktup value; A integer value between 1-6 if user want to set thektup value
_setinput
Title : _setinputUsage : Internal function, not to be called directlyFunction: Create input file(s) for Blast executableExample :Returns : array of Bio::Seq object referenceArgs : Seq object reference or input file name
_exist
Title : _existUsage : Internal function, not to be called directlyFunction: Determine whether a executable FASTA program can be foundCf. the DESCRIPTION section of this POD for how to make surefor your FASTA installation to be found. This method checks forexistence of the blastall executable in the path.Returns : 1 if FASTA program found at expected location, 0 otherwise.Args : none
_setparams
Title : _setparamsUsage : Internal function, not to be called directlyFunction: Create parameter inputs for FASTA executableReturns : part of parameter string to be passed to FASTA programArgs : none