blib/lib/Bio/Tools/Run/FootPrinter.pm

filter: Statementstmt 35.9% 50 / 139 Branchbran 14.5% 9 / 62 Conditioncond 7.6% 1 / 13 MC/DCmcdc 0.0% 0 / 8 Subroutinesub 76.4% 13 / 17 Podpod 100% 5 / 5 totaltotal 31.9% 78 / 244 CC 43 SCAR 46.5
CC
43
Cov
28%
_run
240.0
_setparams
182.0
_setinput
20.0
CRAP 104.6
« blib/lib/Bio/Tools/Run/Phylo/PAML/Baseml.pm ↑ Summary blib/lib/Bio/Tools/Run/Phylo/Phylip/Neighbor.pm »
1 # $Id$
2 # BioPerl module for FootPrinter
3 #
4 # Copyright Shawn Hoon
5 #
6 # You may distribute this module under the same terms as perl itself
7  
8 # POD documentation - main docs before the code
9  
10 =head1 NAME
11  
12 Bio::Tools::Run::FootPrinter - wrapper for the FootPrinter program
13  
14 =head1 SYNOPSIS
15  
16 use Bio::Tools::Run::FootPrinter;
17  
18 my @params = (size => 10,
19 max_mutations_per_branch => 4,
20 sequence_type => 'upstream',
21 subregion_size => 30,
22 position_change_cost => 5,
23 triplet_filtering => 1,
24 pair_filtering => 1,
25 post_filtering => 1,
26 inversion_cost => 1,
27 max_mutations => 4,
28 tree => "~/software/FootPrinter2.0/tree_of_life" );
29  
30 my $fp = Bio::Tools::Run::FootPrinter->new(@params, -verbose => 1);
31  
32 my $sio = Bio::SeqIO->new(-file => "seq.fa", -format => "fasta");
33  
34 while (my $seq = $sio->next_seq){
35 push @seq, $seq;
36 }
37 my @fp = $fp->run(@seq);
38  
39 foreach my $result(@fp){
40 print "***************\n".$result->seq_id."\n";
41 foreach my $feat($result->sub_SeqFeature){
42 print $feat->start."\t".$feat->end."\t".$feat->seq->seq."\n";
43 }
44 }
45  
46 =head1 DESCRIPTION
47  
48 From the FootPrinter manual:
49  
50 FootPrinter is a program that performs phylogenetic footprinting.
51 It takes as input a set of unaligned orthologous sequences from various
52 species, together with a phylogenetic tree relating these species.
53 It then searches for short regions of the sequences that are highly conserved,
54 according to a parsimony criterion.
55  
56 The regions identified are good candidates for regulatory elements.
57 By default, the program searches for regions that are well conserved across
58 all of the input sequences, but this can be relaxed to
59 find regions conserved in only a subset of the species
60  
61 =head2 About Footprinter
62  
63 Written by Mathieu Blanchette and Martin Tompa. Available here:
64  
65 http://www.mcb.mcgill.ca/~blanchem/FootPrinter2.1.tar.gz
66  
67  
68 =head2 Running Footprinter
69  
70 To run FootPrinter, you will need to set the enviroment variable
71 FOOTPRINTER_DIR to where the binary is located (even if the executable
72 is in your path). For example:
73  
74 setenv FOOTPRINTER_DIR /usr/local/bin/FootPrinter2.0/
75  
76  
77 =head2 Available Parameters
78  
79 PARAM VALUES DESCRIPTION
80 ------------------------------------------------------------------------
81 tree <file> REQUIRED, Tree in Newick Format
82 to evaluate parsimony score
83 REQUIRED unless tree_of_life
84 exists in FOOTPRINTER_DIR
85 sequence_type upstream Default upstream
86 downstream
87 other
88 size 4-16 Specifies the size of the motifs sought
89 max_mutations 0-20 maximum parsimony score allowed for the motifs
90 max_mutations_per_branch 0-20 Allows at most a fixed number of mutations per
91 branch of the tree
92 losses <file> files give span constraints so that the motifs
93 reported are statistically significant
94 Example files
95 universal([6-9]|1[0-2])(loose|tight)?.config
96 come with FootPrinter2.0.
97 Install these in FOOTPRINTER_DIR and use by
98 setting "losses" to "somewhat significant",
99 "significant", or "very significant". Do not
100 set loss_cost.
101 loss_cost 0-20 a cost associated with losing a motif along some
102 branch of the tre
103 subregion_size 1-infinity penalize motifs whose position in the sequences
104 varies too much
105 position_change_cost 0-20 Cost for changing subregion
106 triplet_filtering 1/0 pre-filtering step that removes from consideration
107 any substring that does not have a sufficiently good
108 pair of matching substrings in some pair of the other
109 input sequences
110 pair_filtering 1/0 Same as triplet filtering, but looks only for one match
111 per other sequence
112 post_filtering 1/0 when used in conjunction with the triplet filtering
113 option, this often significantly speeds up the program,
114 while still garanteeing optimal results
115 indel_cost 1-5 insertions and deletions will be allowed in the motifs
116 sought, at the given cost
117 inversion_cost 1-5 This option allows for motifs to undergo inversions,
118 at the given cost. An inversion reverse-complements
119 the motif.
120 details 1/0 Shows some of the details about the progress of the
121 computation
122 html 1/0 produce html output (never deleted)
123 ps 1/0 produce postscript output (never deleted)
124  
125 =head1 FEEDBACK
126  
127 =head2 Mailing Lists
128  
129 User feedback is an integral part of the evolution of this and other
130 Bioperl modules. Send your comments and suggestions preferably to one
131 of the Bioperl mailing lists. Your participation is much appreciated.
132  
133 bioperl-l@bioperl.org - General discussion
134 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
135  
136 =head2 Support
137  
138 Please direct usage questions or support issues to the mailing list:
139  
140 I<bioperl-l@bioperl.org>
141  
142 rather than to the module maintainer directly. Many experienced and
143 reponsive experts will be able look at the problem and quickly
144 address it. Please include a thorough description of the problem
145 with code and data examples if at all possible.
146  
147 =head2 Reporting Bugs
148  
149 Report bugs to the Bioperl bug tracking system to help us keep track
150 the bugs and their resolution. Bug reports can be submitted via the
151 web:
152  
153 http://redmine.open-bio.org/projects/bioperl/
154  
155 =head1 AUTHOR - Shawn Hoon
156  
157 Email shawnh@fugu-sg.org
158  
159 =head1 APPENDIX
160  
161 The rest of the documentation details each of the object
162 methods. Internal methods are usually preceded with a "_".
163  
164 =cut
165  
166 package Bio::Tools::Run::FootPrinter;
167  
168 1 use vars qw($AUTOLOAD @ISA $PROGRAM $PROGRAMDIR $PROGRAMNAME
169 1 ▶ @FP_SWITCHES @FP_PARAMS @OTHER_SWITCHES %OK_FIELD);
Subroutine BEGIN: called CC=1 SCAR=0.0
170  
171 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
172 1 ▶use Cwd;
Subroutine BEGIN: called CC=1 SCAR=0.0
173 1 ▶use Bio::Root::Root;
Subroutine BEGIN: called CC=1 SCAR=0.0
174 1 ▶use Bio::Tools::Run::WrapperBase;
Subroutine BEGIN: called CC=1 SCAR=0.0
175 1 ▶use Bio::Tools::FootPrinter;
Subroutine BEGIN: called CC=1 SCAR=0.0
176 1 ▶use Bio::SeqIO;
Subroutine BEGIN: called CC=1 SCAR=0.0
177  
178 # Let the code begin...
179  
180 1 @ISA = qw(Bio::Tools::Run::WrapperBase);
181  
182 BEGIN {
183 1 ▶ @FP_PARAMS = qw(SEQUENCE_TYPE SIZE MAX_MUTATIONS MAX_MUTATIONS_PER_BRANCH
Subroutine BEGIN: called CC=2 SCAR=6.9
184 LOSSES LOSS_COST TREE PROGRAM SUBREGION_SIZE POSITION_CHANGE_COST
185 INDEL_COST INVERSION_COST );
186 1 @FP_SWITCHES = qw(TRIPLET_FILTERING PAIR_FILTERING POST_FILTERING DETAILS);
187 1 @OTHER_SWITCHES = qw(QUIET HTML PS);
188  
189 # Authorize attribute fields
190 1 foreach my $attr ( @FP_PARAMS, @FP_SWITCHES,
191 19 @OTHER_SWITCHES) { $OK_FIELD{$attr}++; }
192 }
193  
194 =head2 program_name
195  
196 Title : program_name
197 Usage : $factory>program_name()
198 Function: holds the program name
199 Returns: string
200 Args : None
201  
202 =cut
203  
204 sub program_name {
205 6 ▶ return 'FootPrinter';
Subroutine program_name: called CC=1 SCAR=0.0
Pod documented
206 }
207  
208 =head2 program_dir
209  
210 Title : program_dir
211 Usage : $factory->program_dir(@params)
212 Function: returns the program directory, obtained from ENV variable.
213 Returns: string
214 Args :
215  
216 =cut
217  
218 sub program_dir {
219 3 ▶ return Bio::Root::IO->catfile($ENV{FOOTPRINTER_DIR}) if $ENV{FOOTPRINTER_DIR};
Subroutine program_dir: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"FOOTPRINTER_DIR"} 0 3 3
220 }
221  
222 =head2 executable
223  
224 Title : executable
225 Usage : my $exe = $footprinter->executable('FootPrinter');
226 Function: Finds the full path to the 'FootPrinter' executable
227 Returns : string representing the full path to the exe
228 Args : [optional] name of executable to set path to
229 [optional] boolean flag whether or not warn when exe is not found
230  
231 =cut
232  
233 sub executable {
234 1 ▶ my $self = shift;
Subroutine executable: called CC=3 SCAR=20.3
Pod documented
235 1 ▶ my $exe = $self->SUPER::executable(@_) || return;
Condition0%0/2
$self->SUPER::executable(@_) || (return)
l!l
00
MC/DC0%0/1
$self->SUPER::executable(@_) || (return)
$self->SUPER::executable(@_)
Truth table0%0/2
A
A= $self->SUPER::executable(@_)
Aresult
11
00
236
237 # even if its executable, we still need the environment variable to have
238 # been set
239 0 ▶ if (! $ENV{FOOTPRINTER_DIR}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($ENV{"FOOTPRINTER_DIR"}) 0 0 0
240 0 $self->warn("Environment variable FOOTPRINTER_DIR must be set, even if the FootPrinter executable is in your path");
241 0 return;
242 }
243
244 0 return $exe;
245 }
246  
247 sub AUTOLOAD {
248 12 ▶ my $self = shift;
Subroutine AUTOLOAD: called CC=3 SCAR=11.0
249 12 my $attr = $AUTOLOAD;
250 12 $attr =~ s/.*:://;
251 12 $attr = uc $attr;
252 12 ▶ $self->throw("Unallowed parameter: $attr !") unless $OK_FIELD{$attr};
Branch: 1 branch
BranchTrueFalseTotal
unless $Bio::Tools::Run::FootPrinter::OK_FIELD{$attr} 0 12 12
253 12 ▶ $self->{$attr} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 10 2 12
254 12 return $self->{$attr};
255 }
256  
257 =head2 new
258  
259 Title : new
260 Usage : $rm->new($seq)
261 Function: creates a new wrapper
262 Returns: Bio::Tools::Run::FootPrinter
263 Args : self
264  
265 =cut
266  
267 sub new {
268 1 ▶ my ($class, @args) = @_;
Subroutine new: called CC=6 SCAR=19.3
Pod documented
269 1 my $self = $class->SUPER::new(@args);
270 1 my ($attr, $value);
271 1 ▶ while (@args) {
Branch: 1 branch
BranchTrueFalseTotal
if (@args) 11 1 12
272 11 $attr = shift @args;
273 11 $value = shift @args;
274 11 ▶ next if( $attr =~ /^-/ ); # don't want named parameters
Branch: 1 branch
BranchTrueFalseTotal
if $attr =~ /^-/ 0 11 11
275 11 $self->$attr($value);
276 }
277  
278 1 ▶ if(!$self->tree && -e $ENV{FOOTPRINTER_DIR}."/tree_of_life"){
Branch: 1 branch
BranchTrueFalseTotal
if (not $self->tree and -e $ENV{"FOOTPRINTER_DIR"} . '/tree_of_life') 0 1 1
Condition33%1/3
not $self->tree and -e $ENV{"FOOTPRINTER_DIR"} . '/tree_of_life'
!ll&&!rl&&r
100
MC/DC0%0/2
not $self->tree and -e $ENV{"FOOTPRINTER_DIR"} . '/tree_of_life'
not $self->tree -e $ENV{"FOOTPRINTER_DIR"} . '/tree_of_life'
Truth table33%1/3
not(A) and B
A= not $self->treeB= -e $ENV{"FOOTPRINTER_DIR"} . '/tree_of_life'
ABresult
0X0
100
111
279 0 $self->tree($ENV{FOOTPRINTER_DIR}."/tree_of_life");
280 }
281  
282 1 ▶ unless($self->tree){
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->tree) 0 1 1
283 0 $self->debug("Phylogenetic tree not provided. FootPrinter won't be able to run without it. use \$fp->tree to set the tree file");
284 }
285  
286 1 return $self;
287 }
288  
289 =head2 run
290  
291 Title : run
292 Usage : $fp->run(@seq)
293 Function: carry out FootPrinter
294 Example :
295 Returns : An array of SeqFeatures
296 Args : An array of Bio::PrimarySeqI compliant object
297 At least 2 are needed.
298  
299 =cut
300  
301 sub run {
302 0 ▶ my ($self,@seq) = @_;
Subroutine run: not called CC=3 SCAR=24.8
Pod documented
303  
304 #need at least 2 for comparative genomics duh.
305 0 ▶ $#seq > 0 || $self->throw("Need at least two sequences");
Branch: 1 branch
BranchTrueFalseTotal
$#seq > 0 or $self->throw("Need at least two sequences") 0 0 0
306 0 ▶ $self->tree || $self->throw("Need to specify a phylogenetic tree using -tree option");
Branch: 1 branch
BranchTrueFalseTotal
$self->tree or $self->throw("Need to specify a phylogenetic tree using -tree option") 0 0 0
307  
308 0 my $infile = $self->_setinput(@seq);
309  
310 0 my $param_string = $self->_setparams();
311 0 my @footprint_feats = $self->_run($infile,$self->tree,$param_string);
312 0 return @footprint_feats;
313  
314 }
315  
316 =head2 _run
317  
318 Title : _run
319 Usage : $fp->_run ($filename,$param_string)
320 Function: internal function that runs FootPrinter
321 Example :
322 Returns : an array of features
323 Args : the filename to the input sequence, filename to phylo tree
324 and the parameter string
325  
326 =cut
327  
328 sub _run {
329 0 ▶ my ($self,$infile,$tree,$param_string) = @_;
Subroutine _run: not called CC=15 SCAR=54.8
330 0 my $instring;
331 0 ▶ my $exe = $self->executable || return;
Condition0%0/2
$self->executable || (return)
l!l
00
MC/DC0%0/1
$self->executable || (return)
$self->executable
Truth table0%0/2
A
A= $self->executable
Aresult
11
00
332 0 $self->debug( "Program ".$self->executable."\n");
333  
334 0 my $outfile = $infile.".seq.txt";
335 0 my $cmd_str = $self->executable. " $infile $tree $param_string";
336 0 $self->debug("FootPrinter command = $cmd_str");
337  
338 0 ▶ if ($self->verbose <=0){
Branch: 1 branch
BranchTrueFalseTotal
if ($self->verbose <= 0) 0 0 0
339 0 $cmd_str.=" >&/dev/null > /dev/null";
340 }
341
342 # will do brute-force clean up of junk files generated by FootPrinter
343 0 my $cwd = cwd();
344 0 ▶ opendir(my $cwd_dir, $cwd) || $self->throw("Could not open the current directory '$cwd'!");
Branch: 1 branch
BranchTrueFalseTotal
opendir my $cwd_dir, $cwd or $self->throw("Could not open the current directory '${cwd}'!") 0 0 0
345 0 my %ok_files;
346 0 foreach my $thing (readdir($cwd_dir)) {
347 0 ▶ if ($thing =~ /^mlc\./) {
Branch: 1 branch
BranchTrueFalseTotal
if ($thing =~ /^mlc\./) 0 0 0
348 0 $ok_files{$thing} = 1;
349 }
350 }
351 0 closedir($cwd_dir);
352
353 0 my $status = system($cmd_str);
354 0 ▶ $self->throw("FootPrinter Call($cmd_str) crashed: $?\n")
Branch: 1 branch
BranchTrueFalseTotal
unless $status == 0 or $status == 256 0 0 0
Condition0%0/3
$status == 0 or $status == 256
l!l&&r!l&&!r
000
MC/DC0%0/2
$status == 0 or $status == 256
$status == 0 $status == 256
Truth table0%0/3
A or B
A= $status == 0B= $status == 256
ABresult
1X1
011
000
355 unless $status == 0 || $status==256;
356
357 0 ▶ unless (open (FP, $outfile)) {
Branch: 1 branch
BranchTrueFalseTotal
unless (open FP, $outfile) 0 0 0
358 0 $self->throw("Cannot open FootPrinter outfile for parsing");
359 }
360
361 0 my $fp_parser = Bio::Tools::FootPrinter->new(-fh=>\*FP);
362 0 my @fp_feat;
363 0 ▶ while(my $fp_feat = $fp_parser->next_feature){
Branch: 1 branch
BranchTrueFalseTotal
if (my $fp_feat = $fp_parser->next_feature) 0 0 0
364 0 push @fp_feat, $fp_feat;
365 }
366  
367 0 ▶ unless( $self->save_tempfiles ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->save_tempfiles) 0 0 0
368 0 unlink $outfile;
369 0 unlink $infile; # is this dangerous??
370 0 unlink "$infile.order.txt"; # is this dangerous??
371
372 0 ▶ opendir($cwd_dir, $cwd) || $self->throw("Could not open the current directory '$cwd'!");
Branch: 1 branch
BranchTrueFalseTotal
opendir $cwd_dir, $cwd or $self->throw("Could not open the current directory '${cwd}'!") 0 0 0
373 0 foreach my $thing (readdir($cwd_dir)) {
374 0 ▶ if ($thing =~ /^mlc\./) {
Branch: 1 branch
BranchTrueFalseTotal
if ($thing =~ /^mlc\./) 0 0 0
375 0 ▶ unlink($thing) unless $ok_files{$thing};
Branch: 1 branch
BranchTrueFalseTotal
unless $ok_files{$thing} 0 0 0
376 }
377 }
378 0 closedir($cwd_dir);
379
380 0 $self->cleanup();
381 }
382  
383 0 return @fp_feat;
384 }
385  
386 =head2 _setparams()
387  
388 Title : _setparams
389 Usage : Internal function, not to be called directly
390 Function: Create parameter inputs for FootPrinter program
391 Example :
392 Returns : parameter string to be passed to FootPrinter
393 Args : name of calling object
394  
395 =cut
396  
397 sub _setparams {
398 0 ▶ my ($attr, $value, $self);
Subroutine _setparams: not called CC=13 SCAR=52.0
399  
400 0 $self = shift;
401  
402 0 my $param_string = "";
403 0 for $attr ( @FP_PARAMS ) {
404 0 $value = $self->$attr();
405 0 ▶ next if $attr=~/TREE/i;
Branch: 1 branch
BranchTrueFalseTotal
if $attr =~ /TREE/i 0 0 0
406 0 ▶ next unless (defined $value);
Branch: 1 branch
BranchTrueFalseTotal
unless defined $value 0 0 0
407  
408 0 my $attr_key = lc $attr; #put params in format expected by dba
409 0 ▶ if ($attr_key eq 'losses' && $value =~ /^\s*(somewhat|very)?\s*significant\s*$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($attr_key eq "losses" and $value =~ /^\s*(somewhat|very)?\s*significant\s*$/) 0 0 0
Condition0%0/3
$attr_key eq "losses" and $value =~ /^\s*(somewhat|very)?\s*significant\s*$/
!ll&&!rl&&r
000
MC/DC0%0/2
$attr_key eq "losses" and $value =~ /^\s*(somewhat|very)?\s*significant\s*$/
$attr_key eq "losses" $value =~ /^\s*(somewhat|very)?\s*significant\s*$/
Truth table0%0/3
A and B
A= $attr_key eq "losses"B= $value =~ /^\s*(somewhat|very)?\s*significant\s*$/
ABresult
0X0
100
111
410 0 $value = "$ENV{FOOTPRINTER_DIR}/universal".$self->size();
411 0 ▶ if (defined $1) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $1) 0 0 0
412 0 ▶ if ($1 eq 'somewhat') {
Branch: 1 branch
BranchTrueFalseTotal
if ($1 eq 'somewhat') { } 0 0 0
413 0 $value .= 'loose';
414 } else { # $1 eq 'very'
415 0 $value .= 'tight';
416 }
417 }
418 0 $value .= '.config';
419 0 ▶ -f $value or $self->throw("universal losses file $value does not exist");
Branch: 1 branch
BranchTrueFalseTotal
-f $value or $self->throw("universal losses file $value does not exist") 0 0 0
420 }
421 0 $attr_key = ' -'.$attr_key;
422 0 $param_string .= $attr_key.' '.$value;
423 }
424  
425 0 for $attr ( @FP_SWITCHES) {
426 0 $value = $self->$attr();
427 0 ▶ next unless ($value);
Branch: 1 branch
BranchTrueFalseTotal
unless $value 0 0 0
428 0 my $attr_key = lc $attr; #put switches in format expected by dba
429 0 $attr_key = ' -'.$attr_key;
430 0 $param_string .= $attr_key ;
431 }
432  
433 0 ▶ $self->html() or $param_string .= " -no_html";
Branch: 1 branch
BranchTrueFalseTotal
$self->html or $param_string .= ' -no_html' 0 0 0
434 0 ▶ $self->ps() or $param_string .= " -no_ps";
Branch: 1 branch
BranchTrueFalseTotal
$self->ps or $param_string .= ' -no_ps' 0 0 0
435  
436 0 return $param_string;
437 }
438  
439  
440 =head2 _setinput()
441  
442 Title : _setinput
443 Usage : Internal function, not to be called directly
444 Function: writes input sequence to file and return the file name
445 Example :
446 Returns : string
447 Args : a Bio::PrimarySeqI compliant object
448  
449 =cut
450  
451 sub _setinput {
452 0 ▶ my ($self,@seq) = @_;
Subroutine _setinput: not called CC=4 SCAR=30.0
453 0 my ($tfh1,$outfile1);
454 0 $outfile1 = $self->outfile_name();
455 0 ▶ if (defined $outfile1) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $outfile1) { } 0 0 0
456 0 open($tfh1,">$outfile1");
457 } else {
458 0 ($tfh1,$outfile1) = $self->io->tempfile(-dir=>$self->tempdir);
459 }
460 0 my $out1 = Bio::SeqIO->new('-fh' => $tfh1,
461 '-format' => 'Fasta');
462 0 foreach my $seq(@seq){
463 0 ▶ $seq->isa("Bio::PrimarySeqI") || $self->throw("Need a Bio::PrimarySeq compliant object for FootPrinter");
Branch: 1 branch
BranchTrueFalseTotal
$seq->isa("Bio::PrimarySeqI") or $self->throw("Need a Bio::PrimarySeq compliant object for FootPrinter") 0 0 0
464 0 $out1->write_seq($seq);
465 }
466 0 $out1->close(); # close the SeqIO object
467 0 close($tfh1); # close the fh explicitly (just in case)
468 0 undef($tfh1); # really get rid of it (just in case)
469 0 return ($outfile1);
470 }
471  
472  
473  
474 =head1 Bio::Tools::Run::Wrapper methods
475  
476 =cut
477  
478 =head2 no_param_checks
479  
480 Title : no_param_checks
481 Usage : $obj->no_param_checks($newval)
482 Function: Boolean flag as to whether or not we should
483 trust the sanity checks for parameter values
484 Returns : value of no_param_checks
485 Args : newvalue (optional)
486  
487  
488 =cut
489  
490 =head2 save_tempfiles
491  
492 Title : save_tempfiles
493 Usage : $obj->save_tempfiles($newval)
494 Function:
495 Returns : value of save_tempfiles
496 Args : newvalue (optional)
497  
498  
499 =cut
500  
501 =head2 outfile_name
502  
503 Title : outfile_name
504 Usage : my $outfile = $codeml->outfile_name();
505 Function: Get/Set the name of the output file for this run
506 (if you wanted to do something special)
507 Returns : string
508 Args : [optional] string to set value to
509  
510  
511 =cut
512  
513  
514 =head2 tempdir
515  
516 Title : tempdir
517 Usage : my $tmpdir = $self->tempdir();
518 Function: Retrieve a temporary directory name (which is created)
519 Returns : string which is the name of the temporary directory
520 Args : none
521  
522  
523 =cut
524  
525 =head2 cleanup
526  
527 Title : cleanup
528 Usage : $codeml->cleanup();
529 Function: Will cleanup the tempdir directory
530 Returns : none
531 Args : none
532  
533  
534 =cut
535  
536 =head2 io
537  
538 Title : io
539 Usage : $obj->io($newval)
540 Function: Gets a L<Bio::Root::IO> object
541 Returns : L<Bio::Root::IO>
542 Args : none
543  
544  
545 =cut
546  
547 1 1;
548  
549  
« blib/lib/Bio/Tools/Run/Phylo/PAML/Baseml.pm ↑ Summary blib/lib/Bio/Tools/Run/Phylo/Phylip/Neighbor.pm »