NAME
Bio::Tools::Run::Alignment::DBA - Object for the alignment of two sequences using the DNA Block Aligner program.
SYNOPSIS
use Bio::Tools::Run::Alignment::DBA;# Build a dba alignment factorymy @params = ('matchA' => 0.75,'matchB' => '0.55','dymem' =>'linear');my $factory = Bio::Tools::Run::Alignment::DBA->new(@params);# Pass the factory a filename with 2 sequences to be aligned.$inputfilename = 't/data/dbaseq.fa';# @hsps is an array of GenericHSP objectsmy @hsps = $factory->align($inputfilename);# ormy @files = ('t/data/dbaseq1.fa','t/data/dbaseq2.fa');my @hsps = $factory->align(\@files);# or where @seq_array is an array of Bio::Seq objects$seq_array_ref = \@seq_array;my @hsps = $factory->align($seq_array_ref);
DESCRIPTION
DNA Block Aligner program (DBA) was developed by Ewan Birney. DBA is part of the Wise package available at <http://www.sanger.ac.uk/software/wise2>.
You will need to enable dba to find the dba program. This can be done in a few different ways:
1. Define an environmental variable WISEDIR:
export WISEDIR =/usr/local/share/wise2.2.0
2. Include a definition of an environmental variable WISEDIR in every script that will use DBA.pm:
$ENV{WISEDIR} = '/usr/local/share/wise2.2.20';
3. Make sure that the dba application is in your PATH.
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 : $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 :
version
Title : versionUsage : exit if $prog->version() < 1.8Function: Determine the version number of the programExample :Returns : float or undefArgs : none
align
Title : alignUsage :$inputfilename = 't/data/seq.fa';@hsps = $factory->align($inputfilename);or#@seq_array is array of Seq objs$seq_array_ref = \@seq_array;@hsps = $factory->align($seq_array_ref);ormy @files = ('t/data/seq1.fa','t/data/seq2.fa');@hsps = $factory->align(\@files);Function: Perform a DBA alignmentReturns : An array of Bio::Search::HSP::GenericHSP objectsArgs : Name of a file containing a set of 2 fasta sequencesor else a reference to an array to 2 Bio::Seq objects.or else a reference to an array of 2 filenames containing 1 fasta sequence eachThrows an exception if argument is not either a string (eg afilename) or a reference to an array of 2 Bio::Seq objects. Ifargument is string, throws exception if file corresponding to stringname can not be found. If argument is Bio::Seq array, throwsexception if less than two sequence objects are in array.
_run
Title : _runUsage : Internal function, not to be called directlyFunction: makes actual system call to dba programExample :Returns : nothing; dba output is written to a temp fileArgs : Name of a file containing a set of unaligned fasta sequencesand hash of parameters to be passed to dba
_parse_results
Title : __parse_resultsUsage : Internal function, not to be called directlyFunction: Parses dba outputExample :Returns : an reference to an array of GenericHSPsArgs : the name of the output file
_setinput()
Title : _setinputUsage : Internal function, not to be called directlyFunction: Create input file for dba programExample :Returns : name of file containing dba data inputArgs : Seq or Align object reference or input file name
_setparams()
Title : _setparamsUsage : Internal function, not to be called directlyFunction: Create parameter inputs for dba programExample :Returns : parameter string to be passed to dbaduring align or profile_alignArgs : name of calling object
_query_seq()
Title : _query_seqUsage : Internal function, not to be called directlyFunction: get/set for the query sequenceExample :Returns :Args :
_subject_seq()
Title : _subject_seqUsage : Internal function, not to be called directlyFunction: get/set for the subject sequenceExample :Returns :Args :