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://bioperl.org/wiki/Mailing_lists - 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 the
42 http://bugzilla.open-bio.org/
44 =head1 AUTHOR - Aaron Mackey
46 Email amackey@virginia.edu
48 Describe contact details here
52 The rest of the documentation details each of the object
53 methods. Internal methods are usually preceded with a _
57 # Let the code begin...
59 package Bio
::Search
::Processor
;
63 use Bio
::Root
::Version
;
68 Usage : $proc = Bio::Search::Processor->new -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(@_);