blib/lib/Bio/Tools/Run/Alignment/Kalign.pm

filter: Statementstmt 37.5% 60 / 160 Branchbran 11.6% 7 / 60 Conditioncond 6.2% 1 / 16 MC/DCmcdc 0.0% 0 / 10 Subroutinesub 69.5% 16 / 23 Podpod 100% 8 / 8 totaltotal 33.2% 92 / 277 CC 41 SCAR 42.6
CC
41
Cov
29%
_setinput
240.0
_setparams
72.0
align
20.0
CRAP 71.0
« blib/lib/Bio/Tools/Run/Phylo/Hyphy/SLAC.pm ↑ Summary blib/lib/Bio/Tools/Run/Phylo/Phylip/Consense.pm »
1 # $Id$
2 #
3 # BioPerl module for Bio::Tools::Run::Alignment::Kalign
4 #
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 #
7 # Cared for by Albert Vilella
8 #
9 # Copyright Albert Vilella
10 #
11 # You may distribute this module under the same terms as perl itself
12 #
13 # POD documentation - main docs before the code
14  
15 =head1 NAME
16  
17 Bio::Tools::Run::Alignment::Kalign - Object for the calculation of an
18 iterative multiple sequence alignment from a set of unaligned
19 sequences or alignments using the KALIGN program
20  
21 =head1 SYNOPSIS
22  
23 # Build a kalign alignment factory
24 $factory = Bio::Tools::Run::Alignment::Kalign->new(@params);
25  
26 # Pass the factory a list of sequences to be aligned.
27 $inputfilename = 't/cysprot.fa';
28 # $aln is a SimpleAlign object.
29 $aln = $factory->align($inputfilename);
30  
31 # or where @seq_array is an array of Bio::Seq objects
32 $seq_array_ref = \@seq_array;
33 $aln = $factory->align($seq_array_ref);
34  
35 # Or one can pass the factory a pair of (sub)alignments
36 #to be aligned against each other, e.g.:
37  
38 #There are various additional options and input formats available.
39 #See the DESCRIPTION section that follows for additional details.
40  
41 =head1 DESCRIPTION
42  
43 Please cite:
44  
45 Timo Lassmann and Erik L.L. Sonnhammer (2005)
46 Kalign - an accurate and fast multiple sequence alignment algorithm.
47 BMC Bioinformatics 6:298
48  
49 http://msa.cgb.ki.se/downloads/kalign/current.tar.gz
50  
51  
52 =head2 Helping the module find your executable
53  
54 You will need to enable Kalign to find the kalign program. This can be
55 done in (at least) three ways:
56  
57 1. Make sure the kalign executable is in your path (i.e.
58 'which kalign' returns a valid program
59 2. define an environmental variable KALIGNDIR which points to a
60 directory containing the 'kalign' app:
61 In bash
62 export KALIGNDIR=/home/progs/kalign or
63 In csh/tcsh
64 setenv KALIGNDIR /home/progs/kalign
65  
66 3. include a definition of an environmental variable KALIGNDIR
67 in every script that will
68 BEGIN {$ENV{KALIGNDIR} = '/home/progs/kalign'; }
69 use Bio::Tools::Run::Alignment::Kalign;
70  
71 =head1 FEEDBACK
72  
73 =head2 Mailing Lists
74  
75 User feedback is an integral part of the evolution of this and other
76 Bioperl modules. Send your comments and suggestions preferably to one
77 of the Bioperl mailing lists. Your participation is much appreciated.
78  
79 bioperl-l@bioperl.org - General discussion
80 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
81  
82 =head2 Support
83  
84 Please direct usage questions or support issues to the mailing list:
85  
86 I<bioperl-l@bioperl.org>
87  
88 rather than to the module maintainer directly. Many experienced and
89 reponsive experts will be able look at the problem and quickly
90 address it. Please include a thorough description of the problem
91 with code and data examples if at all possible.
92  
93 =head2 Reporting Bugs
94  
95 Report bugs to the Bioperl bug tracking system to help us keep track
96 the bugs and their resolution. Bug reports can be submitted via the web:
97  
98 http://redmine.open-bio.org/projects/bioperl/
99  
100 =head1 AUTHOR - Albert Vilella
101  
102 Email idontlikespam@hotmail.com
103  
104 =head1 APPENDIX
105  
106 The rest of the documentation details each of the object
107 methods. Internal methods are usually preceded with a _
108  
109 =cut
110  
111 package Bio::Tools::Run::Alignment::Kalign;
112  
113 1 use vars qw($AUTOLOAD @ISA $PROGRAMNAME $PROGRAM %DEFAULTS
114 @KALIGN_PARAMS @KALIGN_SWITCHES %OK_FIELD
115 1 ▶ );
Subroutine BEGIN: called CC=1 SCAR=0.0
116 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
117 1 ▶use Bio::Seq;
Subroutine BEGIN: called CC=1 SCAR=0.0
118 1 ▶use Bio::SeqIO;
Subroutine BEGIN: called CC=1 SCAR=0.0
119 1 ▶use Bio::SimpleAlign;
Subroutine BEGIN: called CC=1 SCAR=0.0
120 1 ▶use Bio::AlignIO;
Subroutine BEGIN: called CC=1 SCAR=0.0
121 1 ▶use Bio::Root::Root;
Subroutine BEGIN: called CC=1 SCAR=0.0
122 1 ▶use Bio::Root::IO;
Subroutine BEGIN: called CC=1 SCAR=0.0
123 1 ▶use Bio::Factory::ApplicationFactoryI;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 1 ▶use Bio::Tools::Run::WrapperBase;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 1 @ISA = qw(Bio::Root::Root Bio::Tools::Run::WrapperBase
126 Bio::Factory::ApplicationFactoryI);
127  
128  
129 BEGIN {
130 1 ▶ %DEFAULTS = ( 'AFORMAT' => 'fasta' );
Subroutine BEGIN: called CC=2 SCAR=6.9
131 1 @KALIGN_PARAMS = qw(IN OUT GAPOPEN GAPEXTENSION TERMINAL_GAP_EXTENSION_PENALTY MATRIX_BONUS
132 SORT FEATURE DISTANCE TREE ZCUTOFF FORMAT
133 MAXMB MAXHOURS MAXITERS);
134 1 @KALIGN_SWITCHES = qw(QUIET);
135  
136 # Authorize attribute fields
137 1 foreach my $attr ( @KALIGN_PARAMS, @KALIGN_SWITCHES ) {
138 16 $OK_FIELD{$attr}++; }
139 }
140  
141 =head2 program_name
142  
143 Title : program_name
144 Usage : $factory->program_name()
145 Function: holds the program name
146 Returns: string
147 Args : None
148  
149 =cut
150  
151 sub program_name {
152 6 ▶ return 'kalign';
Subroutine program_name: called CC=1 SCAR=0.0
Pod documented
153 }
154  
155 =head2 program_dir
156  
157 Title : program_dir
158 Usage : $factory->program_dir(@params)
159 Function: returns the program directory, obtained from ENV variable.
160 Returns: string
161 Args :
162  
163 =cut
164  
165 sub program_dir {
166 3 ▶ return Bio::Root::IO->catfile($ENV{KALIGNDIR}) if $ENV{KALIGNDIR};
Subroutine program_dir: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"KALIGNDIR"} 0 3 3
167 }
168  
169 =head2 new
170  
171 Title : new
172 Usage : my $kalign = Bio::Tools::Run::Alignment::Kalign->new();
173 Function: Constructor
174 Returns : Bio::Tools::Run::Alignment::Kalign
175 Args : -outfile_name => $outname
176  
177  
178 =cut
179  
180 sub new {
181 1 ▶ my ($class,@args) = @_;
Subroutine new: called CC=7 SCAR=26.2
Pod documented
182 1 my( @kalign_args, @obj_args);
183 1 ▶ while( my $arg = shift @args ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $arg = shift @args) 0 1 1
184 0 ▶ if( $arg =~ /^-/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($arg =~ /^-/) { } 0 0 0
185 0 push @obj_args, $arg, shift @args;
186 } else {
187 0 push @kalign_args,$arg, shift @args;
188 }
189 }
190 1 my $self = $class->SUPER::new(@obj_args);
191
192 1 my ($on) = $self->_rearrange([qw(OUTFILE_NAME)],@obj_args);
193
194 1 ▶ $self->outfile_name($on || '');
Condition50%1/2
$on || ''
l!l
01
MC/DC0%0/1
$on || ''
$on
Truth table50%1/2
A
A= $on
Aresult
11
00
195 1 my ($attr, $value);
196 # FIXME: only tested with fasta output format right now...
197 1 $self->aformat($DEFAULTS{'AFORMAT'});
198  
199 1 ▶ while ( @kalign_args) {
Branch: 1 branch
BranchTrueFalseTotal
if (@kalign_args) 0 1 1
200 0 $attr = shift @kalign_args;
201 0 $value = shift @kalign_args;
202 0 ▶ next if( $attr =~ /^-/); # don't want named parameters
Branch: 1 branch
BranchTrueFalseTotal
if $attr =~ /^-/ 0 0 0
203 0 $self->$attr($value);
204 }
205
206 1 ▶ if( defined $self->out ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self->out) 0 1 1
207 0 $self->outfile_name($self->out);
208 }
209 1 return $self;
210 }
211  
212 sub AUTOLOAD {
213 1 ▶ my $self = shift;
Subroutine AUTOLOAD: called CC=3 SCAR=11.2
214 1 my $attr = $AUTOLOAD;
215 1 $attr =~ s/.*:://;
216 1 $attr = uc $attr;
217 # aliasing
218 1 ▶ $self->throw("Unallowed parameter: $attr !") unless $OK_FIELD{$attr};
Branch: 1 branch
BranchTrueFalseTotal
unless $Bio::Tools::Run::Alignment::Kalign::OK_FIELD{$attr} 0 1 1
219  
220 1 ▶ $self->{$attr} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 1 1
221 1 return $self->{$attr};
222 }
223  
224 =head2 error_string
225  
226 Title : error_string
227 Usage : $obj->error_string($newval)
228 Function: Where the output from the last analysus run is stored.
229 Returns : value of error_string
230 Args : newvalue (optional)
231  
232  
233 =cut
234  
235 sub error_string{
236 0 ▶ my ($self,$value) = @_;
Subroutine error_string: not called CC=2 SCAR=17.9
Pod documented
237 0 ▶ if( defined $value) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $value) 0 0 0
238 0 $self->{'error_string'} = $value;
239 }
240 0 return $self->{'error_string'};
241  
242 }
243  
244 =head2 version
245  
246 Title : version
247 Usage : exit if $prog->version() < 2
248 Function: Determine the version number of the program
249 Example :
250 Returns : float or undef
251 Args : none
252  
253 =cut
254  
255 sub version {
256 0 ▶ my ($self) = @_;
Subroutine version: not called CC=3 SCAR=24.8
Pod documented
257 0 my $exe;
258 # Kalign version 2.01, Copyright (C) 2004, 2005, 2006 Timo Lassmann
259 0 ▶ return undef unless $exe = $self->executable;
Branch: 1 branch
BranchTrueFalseTotal
unless $exe = $self->executable 0 0 0
260 0 my $string = `$exe 2>&1` ;
261 0 $string =~ /Kalign\s+version\s+(\d+\.\d+)/m;
262 0 ▶ return $1 || undef;
Condition0%0/2
$1 || undef
l!l
00
MC/DC0%0/1
$1 || undef
$1
Truth table0%0/2
A
A= $1
Aresult
11
00
263 }
264  
265 =head2 run
266  
267 Title : run
268 Usage : my $output = $application->run(\@seqs);
269 Function: Generic run of an application
270 Returns : Bio::SimpleAlign object
271 Args : Arrayref of Bio::PrimarySeqI objects or
272 a filename to run on
273  
274 =cut
275  
276 sub run {
277 0 ▶ my $self = shift;
Subroutine run: not called CC=1 SCAR=6.9
Pod documented
278 0 return $self->align(shift);
279 }
280  
281 =head2 align
282  
283 Title : align
284 Usage :
285 $inputfilename = 't/data/cysprot.fa';
286 $aln = $factory->align($inputfilename);
287 or
288 $seq_array_ref = \@seq_array;
289 # @seq_array is array of Seq objs
290 $aln = $factory->align($seq_array_ref);
291 Function: Perform a multiple sequence alignment
292 Returns : Reference to a SimpleAlign object containing the
293 sequence alignment.
294 Args : Name of a file containing a set of unaligned fasta sequences
295 or else an array of references to Bio::Seq objects.
296  
297 Throws an exception if argument is not either a string (eg a
298 filename) or a reference to an array of Bio::Seq objects. If
299 argument is string, throws exception if file corresponding to string
300 name can not be found. If argument is Bio::Seq array, throws
301 exception if less than two sequence objects are in array.
302  
303 =cut
304  
305 sub align {
306 0 ▶ my ($self,$input) = @_;
Subroutine align: not called CC=4 SCAR=30.0
Pod documented
307 # Create input file pointer
308 0 $self->io->_io_cleanup();
309 0 my $infilename;
310 0 ▶ if( defined $input ) {
Branch: 2 branches
BranchTrueFalseTotal
if (defined $input) { } 0 0 0
elsif (defined $self->in) { } 0 0 0
311 0 $infilename = $self->_setinput($input);
312 } elsif( defined $self->in ) {
313 0 $infilename = $self->_setinput($self->in);
314 } else {
315 0 $self->throw("No inputdata provided\n");
316 }
317 0 ▶ if (! $infilename) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($infilename) 0 0 0
318 0 $self->throw("Bad input data or less than 2 sequences in $input !");
319 }
320  
321 0 my $param_string = $self->_setparams();
322  
323 # run kalign
324 0 return &_run($self, $infilename, $param_string);
325 }
326  
327 =head2 _run
328  
329 Title : _run
330 Usage : Internal function, not to be called directly
331 Function: makes actual system call to kalign program
332 Example :
333 Returns : nothing; kalign output is written to a
334 temporary file OR specified output file
335 Args : Name of a file containing a set of unaligned fasta sequences
336 and hash of parameters to be passed to kalign
337  
338  
339 =cut
340  
341 sub _run {
342 0 ▶ my ($self,$infilename,$params) = @_;
Subroutine _run: not called CC=3 SCAR=24.8
343 0 my $commandstring = $self->executable." -in $infilename $params";
344
345 0 $self->debug( "kalign command = $commandstring \n");
346  
347 0 my $status = system($commandstring);
348 0 my $outfile = $self->outfile_name();
349 0 ▶ if( !-e $outfile || -z $outfile ) {
Branch: 1 branch
BranchTrueFalseTotal
if (not -e $outfile or -z $outfile) 0 0 0
Condition0%0/3
not -e $outfile or -z $outfile
l!l&&r!l&&!r
000
MC/DC0%0/2
not -e $outfile or -z $outfile
not -e $outfile -z $outfile
Truth table0%0/3
not(A) or B
A= not -e $outfileB= -z $outfile
ABresult
1X1
011
000
350 0 $self->warn( "Kalign call crashed: $? [command $commandstring]\n");
351 0 return undef;
352 }
353  
354 0 my $in = Bio::AlignIO->new('-file' => $outfile,
355 '-format' => $self->aformat);
356 0 my $aln = $in->next_aln();
357 0 return $aln;
358 }
359  
360  
361 =head2 _setinput
362  
363 Title : _setinput
364 Usage : Internal function, not to be called directly
365 Function: Create input file for kalign program
366 Example :
367 Returns : name of file containing kalign data input AND
368 Args : Arrayref of Seqs or input file name
369  
370  
371 =cut
372  
373 sub _setinput {
374 0 ▶ my ($self,$input) = @_;
Subroutine _setinput: not called CC=15 SCAR=54.8
375 0 my ($infilename, $seq, $temp, $tfh);
376 0 ▶ if (! ref $input) {
Branch: 2 branches
BranchTrueFalseTotal
if (not ref $input) { } 0 0 0
elsif (ref($input) =~ /ARRAY/i) { } 0 0 0
377 # check that file exists or throw
378 0 $infilename = $input;
379 0 ▶ unless (-e $input) {return 0;}
Branch: 1 branch
BranchTrueFalseTotal
unless (-e $input) 0 0 0
380 # let's peek and guess
381 0 ▶ open(IN,$infilename) || $self->throw("Cannot open $infilename");
Branch: 1 branch
BranchTrueFalseTotal
open IN, $infilename or $self->throw("Cannot open $infilename") 0 0 0
382 0 my $header;
383 0 ▶ while( defined ($header = <IN>) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($header = readline IN)) 0 0 0
384 0 ▶ last if $header !~ /^\s+$/;
Branch: 1 branch
BranchTrueFalseTotal
unless $header =~ /^\s+$/ 0 0 0
385 }
386 0 close(IN);
387 0 ▶ if ( $header !~ /^>\s*\S+/ ){
Branch: 1 branch
BranchTrueFalseTotal
unless ($header =~ /^>\s*\S+/) 0 0 0
388 0 $self->throw("Need to provide a FASTA format file to kalign!");
389 }
390 0 return ($infilename);
391 } elsif (ref($input) =~ /ARRAY/i ) { # $input may be an
392 # array of BioSeq objects...
393 # Open temporary file for both reading & writing of array
394 0 ($tfh,$infilename) = $self->io->tempfile();
395 0 ▶ if( ! ref($input->[0]) ) {
Branch: 2 branches
BranchTrueFalseTotal
if (not ref $input->[0]) { } 0 0 0
elsif ($input->[0]->isa('Bio::PrimarySeqI')) { } 0 0 0
396 0 $self->warn("passed an array ref which did not contain objects to _setinput");
397 0 return undef;
398 } elsif( $input->[0]->isa('Bio::PrimarySeqI') ) {
399 0 $temp = Bio::SeqIO->new('-fh' => $tfh,
400 '-format' => 'fasta');
401 0 my $ct = 1;
402 0 foreach $seq (@$input) {
403 0 ▶ return 0 unless ( ref($seq) &&
Branch: 1 branch
BranchTrueFalseTotal
unless ref $seq and $seq->isa("Bio::PrimarySeqI") 0 0 0
Condition0%0/3
ref $seq and $seq->isa("Bio::PrimarySeqI")
!ll&&!rl&&r
000
MC/DC0%0/2
ref $seq and $seq->isa("Bio::PrimarySeqI")
ref $seq $seq->isa("Bio::PrimarySeqI")
Truth table0%0/3
A and B
A= ref $seqB= $seq->isa("Bio::PrimarySeqI")
ABresult
0X0
100
111
404 $seq->isa("Bio::PrimarySeqI") );
405 0 ▶ if( ! defined $seq->display_id ||
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $seq->display_id or $seq->display_id =~ /^\s+$/) 0 0 0
Condition0%0/3
not defined $seq->display_id or $seq->display_id =~ /^\s+$/
l!l&&r!l&&!r
000
MC/DC0%0/2
not defined $seq->display_id or $seq->display_id =~ /^\s+$/
not defined $seq->display_id $seq->display_id =~ /^\s+$/
Truth table0%0/3
not(A) or B
A= not defined $seq->display_idB= $seq->display_id =~ /^\s+$/
ABresult
1X1
011
000
406 $seq->display_id =~ /^\s+$/) {
407 0 $seq->display_id( "Seq".$ct++);
408 }
409 0 $temp->write_seq($seq);
410 }
411 0 $temp->close();
412 0 undef $temp;
413 0 close($tfh);
414 0 $tfh = undef;
415 } else {
416 0 $self->warn( "got an array ref with 1st entry ".
417 $input->[0].
418 " and don't know what to do with it\n");
419 }
420 0 return ($infilename);
421 } else {
422 0 $self->warn("Got $input and don't know what to do with it\n");
423 }
424 0 return 0;
425 }
426  
427  
428 =head2 _setparams
429  
430 Title : _setparams
431 Usage : Internal function, not to be called directly
432 Function: Create parameter inputs for kalign program
433 Example :
434 Returns : parameter string to be passed to kalign
435 during align or profile_align
436 Args : name of calling object
437  
438 =cut
439  
440 sub _setparams {
441 0 ▶ my ($self) = @_;
Subroutine _setparams: not called CC=8 SCAR=42.8
442 0 my ($attr, $value,$param_string);
443 0 $param_string = '';
444 0 my $laststr;
445 0 for $attr ( @KALIGN_PARAMS ) {
446 0 $value = $self->$attr();
447 0 ▶ next unless (defined $value);
Branch: 1 branch
BranchTrueFalseTotal
unless defined $value 0 0 0
448 0 my $attr_key = lc $attr;
449 0 $attr_key = ' -'.$attr_key;
450 0 $param_string .= $attr_key .' '.$value;
451  
452 }
453 0 for $attr ( @KALIGN_SWITCHES) {
454 0 $value = $self->$attr();
455 0 ▶ next unless ($value);
Branch: 1 branch
BranchTrueFalseTotal
unless $value 0 0 0
456 0 my $attr_key = lc $attr; #put switches in format expected by tcoffee
457 0 $attr_key = ' -'.$attr_key;
458 0 $param_string .= $attr_key ;
459 }
460  
461 # Set default output file if no explicit output file selected
462 0 ▶ unless ($self->outfile_name ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->outfile_name) 0 0 0
463 0 my ($tfh, $outfile) = $self->io->tempfile(-dir=>$self->tempdir());
464 0 close($tfh);
465 0 undef $tfh;
466 0 $self->outfile_name($outfile);
467 }
468 0 $param_string .= " -out ".$self->outfile_name;
469
470 0 ▶ if ($self->quiet() || $self->verbose < 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->quiet or $self->verbose < 0) 0 0 0
Condition0%0/3
$self->quiet or $self->verbose < 0
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->quiet or $self->verbose < 0
$self->quiet $self->verbose < 0
Truth table0%0/3
A or B
A= $self->quietB= $self->verbose < 0
ABresult
1X1
011
000
471 0 $param_string .= ' 2> /dev/null';
472 }
473 0 return $param_string;
474 }
475  
476 =head2 aformat
477  
478 Title : aformat
479 Usage : my $alignmentformat = $self->aformat();
480 Function: Get/Set alignment format
481 Returns : string
482 Args : string
483  
484  
485 =cut
486  
487 sub aformat{
488 1 ▶ my $self = shift;
Subroutine aformat: called CC=2 SCAR=7.1
Pod documented
489 1 ▶ $self->{'_aformat'} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 0 1
490 1 return $self->{'_aformat'};
491 }
492  
493 =head1 Bio::Tools::Run::BaseWrapper methods
494  
495 =cut
496  
497 =head2 no_param_checks
498  
499 Title : no_param_checks
500 Usage : $obj->no_param_checks($newval)
501 Function: Boolean flag as to whether or not we should
502 trust the sanity checks for parameter values
503 Returns : value of no_param_checks
504 Args : newvalue (optional)
505  
506  
507 =cut
508  
509 =head2 save_tempfiles
510  
511 Title : save_tempfiles
512 Usage : $obj->save_tempfiles($newval)
513 Function:
514 Returns : value of save_tempfiles
515 Args : newvalue (optional)
516  
517  
518 =cut
519  
520 =head2 outfile_name
521  
522 Title : outfile_name
523 Usage : my $outfile = $kalign->outfile_name();
524 Function: Get/Set the name of the output file for this run
525 (if you wanted to do something special)
526 Returns : string
527 Args : [optional] string to set value to
528  
529  
530 =cut
531  
532  
533 =head2 tempdir
534  
535 Title : tempdir
536 Usage : my $tmpdir = $self->tempdir();
537 Function: Retrieve a temporary directory name (which is created)
538 Returns : string which is the name of the temporary directory
539 Args : none
540  
541  
542 =cut
543  
544 =head2 cleanup
545  
546 Title : cleanup
547 Usage : $kalign->cleanup();
548 Function: Will cleanup the tempdir directory
549 Returns : none
550 Args : none
551  
552  
553 =cut
554  
555 =head2 io
556  
557 Title : io
558 Usage : $obj->io($newval)
559 Function: Gets a L<Bio::Root::IO> object
560 Returns : L<Bio::Root::IO>
561 Args : none
562  
563  
564 =cut
565  
566 1 1; # Needed to keep compiler happy
« blib/lib/Bio/Tools/Run/Phylo/Hyphy/SLAC.pm ↑ Summary blib/lib/Bio/Tools/Run/Phylo/Phylip/Consense.pm »