1
# $Id: Scoring.pm,v 1.1 2003/08/08 20:23:17 jason Exp $
3
# BioPerl module for Bio::Matrix::Scoring
5
# Cared for by Jason Stajich <jason-at-bioperl-dot-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::Matrix::Scoring - Object which can hold scoring matrix information
19
use Bio::Matrix::Scoring;
23
An object which can handle AA or NT scoring matrix information. Some
24
transformation properties are available too.
30
User feedback is an integral part of the evolution of this and other
31
Bioperl modules. Send your comments and suggestions preferably to
32
the Bioperl mailing list. Your participation is much appreciated.
34
bioperl-l@bioperl.org - General discussion
35
http://bioperl.org/MailList.shtml - About the mailing lists
39
Report bugs to the Bioperl bug tracking system to help us keep track
40
of the bugs and their resolution. Bug reports can be submitted via
43
http://bugzilla.bioperl.org/
45
=head1 AUTHOR - Jason Stajich
47
Email jason-at-bioperl-dot-org
49
Describe contact details here
53
Additional contributors names and emails here
57
The rest of the documentation details each of the object methods.
58
Internal methods are usually preceded with a _
63
# Let the code begin...
66
package Bio::Matrix::Scoring;
70
use Bio::Matrix::Generic;
72
@ISA = qw(Bio::Matrix::Generic);
77
Usage : my $obj = new Bio::Matrix::Scoring();
78
Function: Builds a new Bio::Matrix::Scoring object
79
Returns : an instance of Bio::Matrix::Scoring
87
my ($class, @args) = @_;
88
my $self = $class->SUPER::new(@args);
90
my ($entropy,$expected,$scale,$scaleval,$database,
91
$lowestscore,$highestscore,$lambda,
92
$H) = $self->_rearrange([qw(ENTROPY EXPECTED SCALE
98
$self->entropy ($entropy);
99
$self->expected_score($expected);
100
$self->scale ($scale);
101
$self->scale_value($scaleval);
102
$self->database ($database);
103
$self->lowest_score($lowestscore);
104
$self->highest_score($highestscore);
105
$self->lambda($lambda);
115
Usage : $obj->entropy($newval)
118
Returns : value of entropy (a scalar)
119
Args : on set, new value (a scalar or undef, optional)
127
return $self->{'entropy'} = shift if @_;
128
return $self->{'entropy'};
131
=head2 expected_score
133
Title : expected_score
134
Usage : $obj->expected_score($newval)
137
Returns : value of expected (a scalar)
138
Args : on set, new value (a scalar or undef, optional)
146
return $self->{'expected'} = shift if @_;
147
return $self->{'expected'};
153
Usage : $obj->scale($newval)
156
Returns : value of scale (a scalar)
157
Args : on set, new value (a scalar or undef, optional)
165
return $self->{'scale'} = shift if @_;
166
return $self->{'scale'};
172
Usage : $obj->scale_value($newval)
175
Returns : value of scale_value (a scalar)
176
Args : on set, new value (a scalar or undef, optional)
184
return $self->{'scale_value'} = shift if @_;
185
return $self->{'scale_value'};
191
Usage : $obj->description($newval)
194
Returns : value of description (a scalar)
195
Args : on set, new value (a scalar or undef, optional)
203
return $self->{'description'} = shift if @_;
204
return $self->{'description'};
210
Usage : $obj->database($newval)
213
Returns : value of database (a scalar)
214
Args : on set, new value (a scalar or undef, optional)
222
return $self->{'database'} = shift if @_;
223
return $self->{'database'};
229
Usage : $obj->lowest_score($newval)
232
Returns : value of lowest_score (a scalar)
233
Args : on set, new value (a scalar or undef, optional)
241
return $self->{'lowest_score'} = shift if @_;
242
return $self->{'lowest_score'};
247
Title : highest_score
248
Usage : $obj->highest_score($newval)
251
Returns : value of highest_score (a scalar)
252
Args : on set, new value (a scalar or undef, optional)
260
return $self->{'highest_score'} = shift if @_;
261
return $self->{'highest_score'};
267
Usage : $obj->lambda($newval)
270
Returns : value of lambda (a scalar)
271
Args : on set, new value (a scalar or undef, optional)
279
return $self->{'lambda'} = shift if @_;
280
return $self->{'lambda'};
286
Usage : $obj->H($newval)
289
Returns : value of H (a scalar)
290
Args : on set, new value (a scalar or undef, optional)
297
return $self->{'H'} = shift if @_;