3 # BioPerl module for Bio::Tools::Run::Phylo::Phylip::Base
5 # Cared for by Jason Stajich <jason@bioperl.org>
7 # Copyright Jason Stajich
9 # You may distribute this module under the same terms as perl itself
11 # POD documentation - main docs before the code
15 Bio::Tools::Run::Phylo::Phylip::Base - Base object for Phylip modules
20 # This module is for setting basic data sets for the Phylip wrapper
25 This module is just a base object for Bioperl Phylip wrappers.
27 IMPORTANT PHYLIP VERSION ISSUES
28 By default we assume you have Phylip 3.5 installed, if you
29 have installed Phylip 3.6 you need to set the environment variable
37 User feedback is an integral part of the evolution of this and other
38 Bioperl modules. Send your comments and suggestions preferably to
39 the Bioperl mailing list. Your participation is much appreciated.
41 bioperl-l@bioperl.org - General discussion
42 http://bioperl.org/MailList.shtml - About the mailing lists
46 Report bugs to the Bioperl bug tracking system to help us keep track
47 of the bugs and their resolution. Bug reports can be submitted via
50 bioperl-bugs@bioperl.org
51 http://bugzilla.bioperl.org/bioperl-bugs/
53 =head1 AUTHOR - Jason Stajich
55 Email jason@bioperl.org
57 Describe contact details here
61 Additional contributors names and emails here
65 The rest of the documentation details each of the object methods.
66 Internal methods are usually preceded with a _
71 # Let the code begin...
74 package Bio
::Tools
::Run
::Phylo
::Phylip
::Base
;
75 use vars
qw(@ISA %DEFAULT %FILENAME);
79 eval { require File::Spec };
80 if( $@) { Bio::Root::RootI->throw("Must have installed File::Spec to run Bio::Tools::Run::Phylo::Phylip tools");
86 use Bio::Tools::Run::WrapperBase;
87 use Bio::Tools::Run::Phylo::Phylip::PhylipConf;
88 @ISA = qw(Bio::Root::Root Bio::Tools::Run::WrapperBase);
92 'VERSION' => $ENV{'PHYLIPVERSION'} || '3.5',
94 %FILENAME = %Bio::Tools
::Run
::Phylo
::Phylip
::PhylipConf
::FileName
;
100 Usage : my $obj = new Bio::Tools::Run::Phylo::Phylip::Base();
101 Function: Builds a new Bio::Tools::Run::Phylo::Phylip::Base object
102 Returns : an instance of Bio::Tools::Run::Phylo::Phylip::Base
110 Usage : $obj->outfile($newval)
111 Function: Get/Set default PHYLIP outfile name ('outfile' usually)
112 Changing this is only necessary when you have compiled
113 PHYLIP to use a different filename for the default 'outfile'
114 This will not change the default output filename by
116 Returns : value of outfile
117 Args : newvalue (optional)
124 $self->{'_outfile'} = shift if @_;
125 return $self->{'_outfile'} || $FILENAME{$self->version}{'OUTFILE'}
132 Usage : $obj->treefile($newval)
133 Function: Get/Set the default PHYLIP treefile name ('treefile' usually)
134 Returns : value of treefile
135 Args : newvalue (optional)
142 $self->{'_treefile'} = shift if @_;
143 return $self->{'_treefile'} || $FILENAME{$self->version}{'TREEFILE'};
150 Usage : $obj->fontfile($newval)
151 Function: Get/Set the fontfile
152 Returns : value of fontfile (a scalar)
153 Args : on set, new value (a scalar or undef, optional)
161 return $self->{'fontfile'} = shift if @_;
162 return $self->{'fontfile'} ;
168 Usage : $obj->plotfile($newval)
169 Function: Get/Set the plotfile
170 Returns : value of plotfile (a scalar)
171 Args : on set, new value (a scalar or undef, optional)
179 return $self->{'plotfile'} = shift if @_;
180 return $self->{'plotfile'} || $FILENAME{$self->version}{'PLOTFILE'};
186 Usage : $obj->version($newval)
187 Function: Get/Set the version
188 Returns : value of version (a scalar)
189 Args : on set, new value (a scalar or undef, optional)
197 return $self->{'version'} = shift if @_;
198 return $self->{'version'} || $DEFAULT{'VERSION'};