3 # BioPerl module for Bio::Search::Processor
5 # Cared for by Aaron Mackey <amackey@virginia.edu>
7 # Copyright Aaron Mackey
9 # You may distribute this module under the same terms as perl itself
11 # POD documentation - main docs before the code
15 Bio::Search::Processor - DESCRIPTION of Object
19 Give standard usage here
23 Describe the object here
29 User feedback is an integral part of the evolution of this and other
30 Bioperl modules. Send your comments and suggestions preferably to one
31 of the Bioperl mailing lists. Your participation is much appreciated.
33 bioperl-l@bioperl.org - General discussion
34 http://bio.perl.org/MailList.html - About the mailing lists
38 Report bugs to the Bioperl bug tracking system to help us keep track
39 the bugs and their resolution. Bug reports can be submitted via email
42 bioperl-bugs@bio.perl.org
43 http://bugzilla.bioperl.org/
45 =head1 AUTHOR - Aaron Mackey
47 Email amackey@virginia.edu
49 Describe contact details here
53 The rest of the documentation details each of the object
54 methods. Internal methods are usually preceded with a _
58 # Let the code begin...
60 package Bio
::Search
::Processor
;
68 Usage : $proc = new Bio::Search::Processor -file => $filename,
69 -algorithm => 'Algorithm' ;
70 Function: Used to specify and initialize a data processor of search
72 Returns : A processor specific to the algorithm type, if it exists.
73 Args : -file => filename
74 -algorithm => algorithm specifier
75 -fh => filehandle to attach to (file or fh required)
83 my ($module, $load, $algorithm);
87 exists $args{'-algorithm'} or do {
88 print STDERR "Must supply an algorithm!";
92 $algorithm = $args{'-algorithm'} || $args{'-ALGORITHM'};
94 $module = "_<Bio/Search/Processor/$algorithm.pm";
95 $load = "Bio/Search/Processor/$algorithm.pm";
97 unless ( $main::{$module} ) {
98 eval { require $load; };
100 print STDERR <<"EOF";
101 $load: $algorithm cannot be found
103 For more information about the Search/Processor system please see the
104 Processor docs. This includes ways of checking for processors at
105 compile time, not run time
111 $proc = "Bio::Search::Processor::$algorithm"->new(@_);