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