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

filter: Statementstmt 42.5% 66 / 155 Branchbran 27.7% 20 / 72 Conditioncond 12.5% 3 / 24 MC/DCmcdc 0.0% 0 / 16 Subroutinesub 63.6% 14 / 22 Podpod 100% 10 / 10 totaltotal 37.7% 113 / 299 CC 48 SCAR 36.9
CC
48
Cov
35%
_setinput
132.0
_setparams
90.0
version
30.0
CRAP 40.0
« blib/lib/Bio/Tools/Run/Phylo/Phylip/DrawGram.pm ↑ Summary blib/lib/Bio/Tools/Run/Alignment/Sim4.pm »
1 # $Id$
2 #
3 # BioPerl module for Bio::Tools::Run::Alignment::MAFFT
4 #
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 #
7 # Cared for by Jason Stajich
8 #
9 # Copyright Jason Stajich
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::MAFFT - run the MAFFT alignment tools
18  
19 =head1 SYNOPSIS
20  
21 use Bio::Tools::Run::Alignment::MAFFT;
22  
23 =head1 DESCRIPTION
24  
25 You can get MAFFT from
26 L<http://www.biophys.kyoto-u.ac.jp/~katoh/programs/align/mafft4/>.
27 "fftnsi" is the default in this implementation.
28  
29 =head1 FEEDBACK
30  
31 =head2 Mailing Lists
32  
33 User feedback is an integral part of the evolution of this and other
34 Bioperl modules. Send your comments and suggestions preferably to one
35 of the Bioperl mailing lists. Your participation is much appreciated.
36  
37 bioperl-l@bioperl.org - General discussion
38 http://bioperl.org/MailList.html - About the mailing lists
39  
40 =head2 Support
41  
42 Please direct usage questions or support issues to the mailing list:
43  
44 I<bioperl-l@bioperl.org>
45  
46 rather than to the module maintainer directly. Many experienced and
47 reponsive experts will be able look at the problem and quickly
48 address it. Please include a thorough description of the problem
49 with code and data examples if at all possible.
50  
51 =head2 Reporting Bugs
52  
53 Report bugs to the Bioperl bug tracking system to help us keep track
54 the bugs and their resolution. Bug reports can be submitted via the web:
55  
56 http://redmine.open-bio.org/projects/bioperl/
57  
58 =head1 AUTHOR - Jason Stajich
59  
60 Email jason-at-bioperl.org
61  
62 =head1 APPENDIX
63  
64 The rest of the documentation details each of the object
65 methods. Internal methods are usually preceded with a _
66  
67 =cut
68  
69 package Bio::Tools::Run::Alignment::MAFFT;
70  
71 1 use vars qw($AUTOLOAD @ISA $PROGRAMNAME $PROGRAM %DEFAULTS
72 @MAFFT_PARAMS @MAFFT_SWITCHES @OTHER_SWITCHES %OK_FIELD
73 @MAFFT_ALN_METHODS
74 1 ▶ );
Subroutine BEGIN: called CC=1 SCAR=0.0
75 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
76 1 ▶use Bio::Seq;
Subroutine BEGIN: called CC=1 SCAR=0.0
77 1 ▶use Bio::SeqIO;
Subroutine BEGIN: called CC=1 SCAR=0.0
78 1 ▶use Bio::SimpleAlign;
Subroutine BEGIN: called CC=1 SCAR=0.0
79 1 ▶use Bio::AlignIO;
Subroutine BEGIN: called CC=1 SCAR=0.0
80  
81 1 use base qw(Bio::Root::Root Bio::Tools::Run::WrapperBase
82 1 ▶ Bio::Factory::ApplicationFactoryI);
Subroutine BEGIN: called CC=1 SCAR=0.0
83  
84 BEGIN {
85 1 ▶ %DEFAULTS = ( 'OUTPUT' => 'fasta',
Subroutine BEGIN: called CC=2 SCAR=6.9
86 'METHOD' => 'fftnsi',
87 'CYCLES' => 2);
88 1 @MAFFT_PARAMS =qw( METHOD CYCLES );
89 1 @MAFFT_SWITCHES = qw( NJ ALL_POSITIVE);
90 1 @OTHER_SWITCHES = qw(QUIET ALIGN OUTPUT OUTFILE);
91 1 @MAFFT_ALN_METHODS = qw(fftnsi fftns nwnsi nwns fftnsrough nwnsrough);
92 # Authorize attribute fields
93 1 foreach my $attr ( @MAFFT_SWITCHES,@MAFFT_PARAMS,@OTHER_SWITCHES ) {
94 8 $OK_FIELD{$attr}++;
95 }
96 }
97  
98 =head2 program_name
99  
100 Title : program_name
101 Usage : $factory->program_name()
102 Function: holds the program name
103 Returns: string
104 Args : None
105  
106 =cut
107  
108 sub program_name {
109 1 ▶ return 'mafft';
Subroutine program_name: called CC=1 SCAR=0.0
Pod documented
110 }
111  
112 =head2 executable
113  
114 Title : executable
115 Usage : my $exe = $blastfactory->executable('blastall');
116 Function: Finds the full path to the 'codeml' executable
117 Returns : string representing the full path to the exe
118 Args : [optional] name of executable to set path to
119 [optional] boolean flag whether or not warn when exe is not found
120  
121  
122 =cut
123  
124 sub executable {
125 1 ▶ my ($self, $exename, $exe,$warn) = @_;
Subroutine executable: called CC=11 SCAR=29.8
Pod documented
126 1 ▶ $exename = $self->program_name unless (defined $exename );
Branch: 1 branch
BranchTrueFalseTotal
unless defined $exename 1 0 1
127
128 1 ▶ if( defined $exe && -x $exe ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $exe and -x $exe) 0 1 1
Condition33%1/3
defined $exe and -x $exe
!ll&&!rl&&r
100
MC/DC0%0/2
defined $exe and -x $exe
defined $exe -x $exe
Truth table33%1/3
A and B
A= defined $exeB= -x $exe
ABresult
0X0
100
111
129 0 $self->{'_pathtoexe'}->{$exename} = $exe;
130 }
131 1 ▶ unless( defined $self->{'_pathtoexe'}->{$exename} ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $self->{"_pathtoexe"}{$exename}) 1 0 1
132 1 my $f = $self->program_path($exename);
133 1 ▶ $exe = $self->{'_pathtoexe'}->{$exename} = $f if(-e $f && -x $f );
Branch: 1 branch
BranchTrueFalseTotal
if -e $f and -x $f 0 1 1
Condition33%1/3
-e $f and -x $f
!ll&&!rl&&r
100
MC/DC0%0/2
-e $f and -x $f
-e $f -x $f
Truth table33%1/3
A and B
A= -e $fB= -x $f
ABresult
0X0
100
111
134
135 # This is how I meant to split up these conditionals --jason
136 # if exe is null we will execute this (handle the case where
137 # PROGRAMDIR pointed to something invalid)
138 1 ▶ unless( $exe ) { # we didn't find it in that last conditional
Branch: 1 branch
BranchTrueFalseTotal
unless ($exe) 1 0 1
139 1 ▶ if( ($exe = $self->io->exists_exe($exename)) && -x $exe ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($exe = $self->io->exists_exe($exename) and -x $exe) { } 0 1 1
Condition33%1/3
$exe = $self->io->exists_exe($exename) and -x $exe
!ll&&!rl&&r
100
MC/DC0%0/2
$exe = $self->io->exists_exe($exename) and -x $exe
$exe = $self->io->exists_exe($exename) -x $exe
Truth table33%1/3
A and B
A= $exe = $self->io->exists_exe($exename)B= -x $exe
ABresult
0X0
100
111
140 0 $self->{'_pathtoexe'}->{$exename} = $exe;
141 } else {
142 1 ▶ $self->warn("Cannot find executable for $exename") if $warn;
Branch: 1 branch
BranchTrueFalseTotal
if $warn 0 1 1
143 1 $self->{'_pathtoexe'}->{$exename} = undef;
144 }
145 }
146 }
147 1 return $self->{'_pathtoexe'}->{$exename};
148 }
149  
150  
151 =head2 program_path
152  
153 Title : program_path
154 Usage : my $path = $factory->program_path();
155 Function: Builds path for executable
156 Returns : string representing the full path to the exe
157 Args : none
158  
159 =cut
160  
161 sub program_path {
162 1 ▶ my ($self,$program_name) = @_;
Subroutine program_path: called CC=3 SCAR=11.3
Pod documented
163 1 my @path;
164 1 ▶ push @path, $self->program_dir if $self->program_dir;
Branch: 1 branch
BranchTrueFalseTotal
if $self->program_dir 0 1 1
165 1 ▶ push @path, $program_name .($^O =~ /mswin/i ?'.exe':'');
Branch: 1 branch
BranchTrueFalseTotal
$^O =~ /mswin/i ? : 0 1 1
166  
167 1 return Bio::Root::IO->catfile(@path);
168 }
169  
170 =head2 program_dir
171  
172 Title : program_dir
173 Usage : $factory->program_dir(@params)
174 Function: returns the program directory, obtained from ENV variable.
175 Returns: string
176 Args :
177  
178 =cut
179  
180 sub program_dir {
181 1 ▶ return File::Spec->rel2abs($ENV{MAFFTDIR}) if $ENV{MAFFTDIR};
Subroutine program_dir: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"MAFFTDIR"} 0 1 1
182 }
183  
184 sub new {
185 1 ▶ my ($class,@args) = @_;
Subroutine new: called CC=5 SCAR=16.2
Pod documented
186 1 my $self = $class->SUPER::new(@args);
187 1 my ($attr, $value);
188
189 1 ▶ while (@args) {
Branch: 1 branch
BranchTrueFalseTotal
if (@args) 2 1 3
190 2 $attr = shift @args;
191 2 $value = shift @args;
192 2 ▶ next if( $attr =~ /^-/); # don't want named parameters
Branch: 1 branch
BranchTrueFalseTotal
if $attr =~ /^-/ 1 1 2
193 1 $self->$attr($value);
194 }
195  
196 1 ▶ $self->output($DEFAULTS{'OUTPUT'}) unless( $self->output );
Branch: 1 branch
BranchTrueFalseTotal
unless $self->output 1 0 1
197 1 ▶ $self->method($DEFAULTS{'METHOD'}) unless( $self->method );
Branch: 1 branch
BranchTrueFalseTotal
unless $self->method 1 0 1
198 1 return $self;
199 }
200  
201 sub AUTOLOAD {
202 4 ▶ my $self = shift;
Subroutine AUTOLOAD: called CC=4 SCAR=14.0
203 4 my $attr = $AUTOLOAD;
204 4 $attr =~ s/.*:://;
205 4 $attr = uc $attr;
206 # aliasing
207 4 ▶ $attr = 'OUTFILE' if $attr eq 'OUTFILE_NAME';
Branch: 1 branch
BranchTrueFalseTotal
if $attr eq "OUTFILE_NAME" 0 4 4
208 4 ▶ $self->throw("Unallowed parameter: $attr !") unless $OK_FIELD{$attr};
Branch: 1 branch
BranchTrueFalseTotal
unless $Bio::Tools::Run::Alignment::MAFFT::OK_FIELD{$attr} 0 4 4
209  
210 4 ▶ $self->{$attr} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 2 2 4
211 4 return $self->{$attr};
212 }
213  
214 =head2 error_string
215  
216 Title : error_string
217 Usage : $obj->error_string($newval)
218 Function: Where the output from the last analysis run is stored.
219 Returns : value of error_string
220 Args : newvalue (optional)
221  
222  
223 =cut
224  
225 sub error_string{
226 0 ▶ my ($self,$value) = @_;
Subroutine error_string: not called CC=2 SCAR=17.9
Pod documented
227 0 ▶ if( defined $value) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $value) 0 0 0
228 0 $self->{'error_string'} = $value;
229 }
230 0 return $self->{'error_string'};
231  
232 }
233  
234 =head2 version
235  
236 Title : version
237 Usage : exit if $prog->version() < 1.8
238 Function: Determine the version number of the program
239 Example :
240 Returns : float or undef
241 Args : none
242  
243 =cut
244  
245 sub version {
246 0 ▶ my ($self) = @_;
Subroutine version: not called CC=5 SCAR=34.0
Pod documented
247 0 my $exe;
248 0 ▶ return unless $exe = $self->executable;
Branch: 1 branch
BranchTrueFalseTotal
unless $exe = $self->executable 0 0 0
249 # this is a bit of a hack, but MAFFT is just a gawk script
250 # so we are actually grepping the scriptfile
251 # UPDATE (Torsten Seemann)
252 # it now seems to be a 'sh' script and the format has changed
253 # slightly. i've tried to make the change compatible with both...
254 # version="v5.860 (2006/06/12)"; export version
255
256 0 ▶ if( open(my $NAME, "grep 'export version' $exe | ") ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open my $NAME, "grep 'export version' $exe | ") { } 0 0 0
257 0 ▶ while(<$NAME>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline $NAME)) 0 0 0
258 0 ▶ if( /version.*?([\d.a-z]+)\s+/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (/version.*?([\d.a-z]+)\s+/) 0 0 0
259 0 return $1;
260 }
261 }
262 0 $self->warn("No version found");
263 0 close($NAME);
264 } else {
265 0 $self->warn("$!");
266 }
267 0 return;
268 }
269  
270 =head2 run
271  
272 Title : run
273 Usage : my $output = $application->run(\@seqs);
274 Function: Generic run of an application
275 Returns : Bio::SimpleAlign object
276 Args : array ref of Bio::PrimarySeqI objects OR
277 filename of sequences to run with
278  
279 =cut
280  
281 sub run {
282 0 ▶ my ($self,$seqs) = @_;
Subroutine run: not called CC=1 SCAR=6.9
Pod documented
283 0 return $self->align($seqs);
284 }
285  
286 =head2 align
287  
288 Title : align
289 Usage :
290 $inputfilename = 't/data/cysprot.fa';
291 $aln = $factory->align($inputfilename);
292 or
293 $seq_array_ref = \@seq_array;
294 # @seq_array is an array of Seq objs
295 $aln = $factory->align($seq_array_ref);
296 Function: Perform a multiple sequence alignment
297 Returns : Reference to a SimpleAlign object containing the
298 sequence alignment.
299 Args : Name of a file containing a set of unaligned fasta sequences
300 or else an array of references to Bio::Seq objects.
301  
302 Throws an exception if argument is not either a string (eg a
303 filename) or a reference to an array of Bio::Seq objects. If
304 argument is string, throws exception if file corresponding to string
305 name can not be found. If argument is Bio::Seq array, throws
306 exception if less than two sequence objects are in array.
307  
308 =cut
309  
310 sub align {
311 0 ▶ my ($self,$input) = @_;
Subroutine align: not called CC=2 SCAR=17.9
Pod documented
312 # Create input file pointer
313 0 $self->io->_io_cleanup();
314 0 my ($infilename,$type) = $self->_setinput($input);
315 0 ▶ if (! $infilename) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($infilename) 0 0 0
316 0 $self->throw("Bad input data or less than 2 sequences in $input !");
317 }
318  
319 0 my ($param_string,$outstr) = $self->_setparams();
320  
321 # run mafft
322 0 return $self->_run($infilename, $param_string,$outstr);
323 }
324  
325 =head2 _run
326  
327 Title : _run
328 Usage : Internal function, not to be called directly
329 Function: makes actual system call to tcoffee program
330 Example :
331 Returns : nothing; tcoffee output is written to a
332 temporary file OR specified output file
333 Args : Name of a file containing a set of unaligned fasta sequences
334 and hash of parameters to be passed to tcoffee
335  
336  
337 =cut
338  
339 sub _run {
340 0 ▶ my ($self,$infilename,$paramstr,$outstr) = @_;
Subroutine _run: not called CC=3 SCAR=24.8
341 0 my $commandstring = $self->executable()." $paramstr $infilename $outstr";
342
343 0 $self->debug( "mafft command = $commandstring \n");
344  
345 0 my $status = system($commandstring);
346 0 my $outfile = $self->outfile();
347 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
348 0 $self->warn( "MAFFT call crashed: $? [command $commandstring]\n");
349 0 return;
350 }
351
352 0 my $in = Bio::AlignIO->new('-file' => $outfile,
353 '-format' => $self->output);
354 0 my $aln = $in->next_aln();
355 0 return $aln;
356 }
357  
358  
359 =head2 _setinput
360  
361 Title : _setinput
362 Usage : Internal function, not to be called directly
363 Function: Create input file for mafft programs
364 Example :
365 Returns : name of file containing mafft data input
366 Args : Seq or Align object reference or input file name
367  
368  
369 =cut
370  
371 sub _setinput {
372 0 ▶ my ($self,$input) = @_;
Subroutine _setinput: not called CC=11 SCAR=48.8
373 0 my ($infilename, $seq, $temp, $tfh);
374 0 ▶ if (! ref $input) {
Branch: 2 branches
BranchTrueFalseTotal
if (not ref $input) { } 0 0 0
elsif (ref($input) =~ /ARRAY/i) { } 0 0 0
375 # check that file exists or throw
376 0 $infilename = $input;
377 0 ▶ unless (-e $input) {return 0;}
Branch: 1 branch
BranchTrueFalseTotal
unless (-e $input) 0 0 0
378 0 return ($infilename);
379 } elsif (ref($input) =~ /ARRAY/i ) { # $input may be an
380 # array of BioSeq objects...
381 # Open temporary file for both reading & writing of array
382 0 ($tfh,$infilename) = $self->io->tempfile();
383 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
384 0 $self->warn("passed an array ref which did not contain objects to _setinput");
385 0 return;
386 } elsif( $input->[0]->isa('Bio::PrimarySeqI') ) {
387 0 $temp = Bio::SeqIO->new('-fh' => $tfh,
388 '-format' => 'fasta');
389 0 my $ct = 1;
390 0 foreach $seq (@$input) {
391 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
392 $seq->isa("Bio::PrimarySeqI") );
393 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
394 $seq->display_id =~ /^\s+$/) {
395 0 $seq->display_id( "Seq".$ct++);
396 }
397 0 $temp->write_seq($seq);
398 }
399 0 $temp->close();
400 0 undef $temp;
401 0 close($tfh);
402 0 $tfh = undef;
403 } else {
404 0 $self->warn( "got an array ref with 1st entry ".
405 $input->[0].
406 " and don't know what to do with it\n");
407 }
408  
409 0 return ($infilename);
410 } else {
411 0 $self->warn("Got $input and don't know what to do with it\n");
412 }
413 0 return 0;
414 }
415  
416  
417 =head2 _setparams
418  
419 Title : _setparams
420 Usage : Internal function, not to be called directly
421 Function: Create parameter inputs for mafft program
422 Example :
423 Returns : parameter string to be passed to mafft program
424 Args : name of calling object
425  
426 =cut
427  
428 sub _setparams {
429 0 ▶ my ($self) = @_;
Subroutine _setparams: not called CC=9 SCAR=45.0
430 0 my ($outfile,$param_string) = ('','');
431  
432 # Set default output file if no explicit output file selected
433 0 ▶ unless (defined($outfile = $self->outfile) ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($outfile = $self->outfile)) 0 0 0
434 0 my $tfh;
435 0 ($tfh, $outfile) = $self->io->tempfile(-dir=>$self->tempdir());
436 0 close($tfh);
437 0 undef $tfh;
438 0 $self->outfile($outfile);
439 }
440 0 my ($attr,$value);
441
442 0 for $attr ( @MAFFT_SWITCHES) {
443 0 $value = $self->$attr();
444 0 ▶ next unless ($value);
Branch: 1 branch
BranchTrueFalseTotal
unless $value 0 0 0
445 0 my $attr_key = lc $attr; #put switches in format expected by mafft
446 0 $attr_key = ' --'.$attr_key;
447 0 $param_string .= $attr_key ;
448 }
449 0 my $method = $self->method;
450 0 ▶ $self->throw("no method ") unless defined $method;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $method 0 0 0
451 0 ▶ if( $method !~ /(rough|nsi)$/ &&
Branch: 1 branch
BranchTrueFalseTotal
if (not $method =~ /(rough|nsi)$/ and defined $self->cycles) 0 0 0
Condition0%0/3
not $method =~ /(rough|nsi)$/ and defined $self->cycles
!ll&&!rl&&r
000
MC/DC0%0/2
not $method =~ /(rough|nsi)$/ and defined $self->cycles
not $method =~ /(rough|nsi)$/ defined $self->cycles
Truth table0%0/3
not(A) and B
A= not $method =~ /(rough|nsi)$/B= defined $self->cycles
ABresult
0X0
100
111
452 defined $self->cycles) {
453 0 $param_string .= " ".$self->cycles;
454 }
455 0 my $outputstr = " 1>$outfile" ;
456  
457 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
458 0 $param_string .= " --quiet";
459 0 $outputstr .= ' 2> /dev/null';
460 }
461 0 return ($param_string, $outputstr);
462 }
463  
464 =head2 methods
465  
466 Title : methods
467 Usage : my @methods = $self->methods()
468 Function: Get/Set Alignment methods - NOT VALIDATED
469 Returns : array of strings
470 Args : arrayref of strings
471  
472  
473 =cut
474  
475 sub methods {
476 0 ▶ my ($self) = shift;
Subroutine methods: not called CC=1 SCAR=6.9
Pod documented
477 0 return @MAFFT_ALN_METHODS;
478 }
479  
480  
481 =head1 Bio::Tools::Run::BaseWrapper methods
482  
483 =cut
484  
485 =head2 no_param_checks
486  
487 Title : no_param_checks
488 Usage : $obj->no_param_checks($newval)
489 Function: Boolean flag as to whether or not we should
490 trust the sanity checks for parameter values
491 Returns : value of no_param_checks
492 Args : newvalue (optional)
493  
494  
495 =cut
496  
497 =head2 save_tempfiles
498  
499 Title : save_tempfiles
500 Usage : $obj->save_tempfiles($newval)
501 Function:
502 Returns : value of save_tempfiles
503 Args : newvalue (optional)
504  
505  
506 =cut
507  
508 =head2 outfile_name
509  
510 Title : outfile_name
511 Usage : my $outfile = $mafft->outfile_name();
512 Function: Get/Set the name of the output file for this run
513 (if you wanted to do something special)
514 Returns : string
515 Args : [optional] string to set value to
516  
517  
518 =cut
519  
520  
521 =head2 tempdir
522  
523 Title : tempdir
524 Usage : my $tmpdir = $self->tempdir();
525 Function: Retrieve a temporary directory name (which is created)
526 Returns : string which is the name of the temporary directory
527 Args : none
528  
529  
530 =cut
531  
532 =head2 cleanup
533  
534 Title : cleanup
535 Usage : $mafft->cleanup();
536 Function: Will cleanup the tempdir directory
537 Returns : none
538 Args : none
539  
540  
541 =cut
542  
543 =head2 io
544  
545 Title : io
546 Usage : $obj->io($newval)
547 Function: Gets a L<Bio::Root::IO> object
548 Returns : L<Bio::Root::IO>
549 Args : none
550  
551  
552 =cut
553  
554 1 1; # Needed to keep compiler happy
555  
« blib/lib/Bio/Tools/Run/Phylo/Phylip/DrawGram.pm ↑ Summary blib/lib/Bio/Tools/Run/Alignment/Sim4.pm »