1
# $Id: WABAResult.pm,v 1.2 2002/10/22 07:45:18 lapp Exp $
3
# BioPerl module for Bio::Search::Result::WABAResult
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::Search::Result::WABAResult - Result object for WABA alignment output
19
# use this object exactly as you would a GenericResult
20
# the only extra method is query_database which is the
21
# name of the file where the query sequence came from
25
This object is for WABA result output, there is little difference
26
between this object and a GenericResult save the addition of one
27
method query_database. Expect many of the fields for GenericResult to
28
be empty however as WABA was not intended to provide a lot of extra
29
information other than the alignment.
35
User feedback is an integral part of the evolution of this and other
36
Bioperl modules. Send your comments and suggestions preferably to
37
the Bioperl mailing list. Your participation is much appreciated.
39
bioperl-l@bioperl.org - General discussion
40
http://bioperl.org/MailList.shtml - About the mailing lists
44
Report bugs to the Bioperl bug tracking system to help us keep track
45
of the bugs and their resolution. Bug reports can be submitted via
48
bioperl-bugs@bioperl.org
49
http://bugzilla.bioperl.org/
51
=head1 AUTHOR - Jason Stajich
53
Email jason@bioperl.org
55
Describe contact details here
59
Additional contributors names and emails here
63
The rest of the documentation details each of the object methods.
64
Internal methods are usually preceded with a _
69
# Let the code begin...
72
package Bio::Search::Result::WABAResult;
76
use Bio::Search::Result::GenericResult;
78
@ISA = qw( Bio::Search::Result::GenericResult );
83
Usage : my $obj = new Bio::Search::Result::WABAResult();
84
Function: Builds a new Bio::Search::Result::WABAResult object
85
Returns : Bio::Search::Result::WABAResult
86
Args : -query_database => "name of the database where the query came from"
92
my($class,@args) = @_;
94
my $self = $class->SUPER::new(@args);
95
my ($db) = $self->_rearrange([qw(QUERY_DATABASE)], @args);
96
defined $db && $self->query_database($db);
100
=head2 query_database
102
Title : query_database
103
Usage : $obj->query_database($newval)
104
Function: Data field for the database filename where the
105
query sequence came from
106
Returns : value of query_database
107
Args : newvalue (optional)
113
my ($self,$value) = @_;
114
if( defined $value) {
115
$self->{'query_database'} = $value;
117
return $self->{'query_database'};
121
=head2 All other methods are inherited from Bio::Search::Result::GenericResult
123
See the L<Bio::Search::Result::GenericResult> for complete
124
documentation of the rest of the methods that are available for this