EnsEMBL/DensityPlot/BinValue.pm untested

filter: Statementstmt 0.0% 0 / 38 Branchbran 0.0% 0 / 10 Conditioncond n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 62 CC 6 SCAR 16.2
CC
6
Cov
0%
chromosomestart
6.0
chromosomeend
6.0
value
6.0
CRAP 5.1
1 =head1 LICENSE
2  
3 See the NOTICE file distributed with this work for additional information
4 regarding copyright ownership.
5  
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9  
10 http://www.apache.org/licenses/LICENSE-2.0
11  
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17  
18 =cut
19  
20  
21 =head1 CONTACT
22  
23 Please email comments or questions to the public Ensembl
24 developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.
25  
26 Questions may also be sent to the Ensembl help desk at
27 <http://www.ensembl.org/Help/Contact>.
28  
29 =cut
30  
31 =head1 NAME
32  
33 Bio::EnsEMBL::DensityPlot::BinValue
34  
35 =head1 SYNOPSIS
36  
37 =head1 DESCRIPTION
38  
39 This object deals with the raw data to built the density plots
40  
41 =head1 METHODS
42  
43 =cut
44  
45 package Bio::EnsEMBL::DensityPlot::BinValue;
46 $Bio::EnsEMBL::DensityPlot::BinValue::VERSION = '114.0.0_50'; # TRIAL
47 $Bio::EnsEMBL::DensityPlot::BinValue::VERSION = '114.0.050';
48 use vars qw($AUTOLOAD @ISA);
49 use strict;
50  
51 # Object preamble - inheriets from Bio::Root::Object
52  
53 @ISA = qw(Exporter);
54 #@EXPORT_OK = qw();
55 # new() is inherited from Bio::Root::Object
56  
57 # _initialize is where the heavy stuff will happen when new is called
58  
59 sub new {
60 my ($class,@args) = @_;
61
62 my $self = {};
63 bless $self,$class;
64 return $self;
65 }
66  
67 =head2 chromosomestart
68  
69 Title : ChromosomeStart
70 Usage : $obj->ChromosomeStart($newval)
71 Function:
72 Returns : value of ChromosomeStart
73 Args : newvalue (optional)
74  
75  
76 =cut
77  
78 sub chromosomestart{
79 my $obj = shift;
80 if( @_ ) {
81 my $value = shift;
82 $obj->{'chromosomestart'} = $value;
83 }
84 return $obj->{'chromosomestart'};
85  
86 }
87  
88 =head2 chromosomeend
89  
90 Title : chromosomesnd
91 Usage : $obj->chromosomeend($newval)
92 Function:
93 Returns : value of chromosomeend
94 Args : newvalue (optional)
95  
96  
97 =cut
98  
99 sub chromosomeend{
100 my $obj = shift;
101 if( @_ ) {
102 my $value = shift;
103 $obj->{'chromosomeend'} = $value;
104 }
105 return $obj->{'chromosomeend'};
106  
107 }
108  
109  
110 =head2 value
111  
112 Title : value
113 Usage : $obj->value($newval)
114 Function:
115 Returns : value of value
116 Args : newvalue (optional)
117  
118  
119 =cut
120  
121 sub value{
122 my $obj = shift;
123 if( @_ ) {
124 my $value = shift;
125 $obj->{'value'} = $value;
126 }
127 return $obj->{'value'};
128  
129 }
130  
131  
132  
133 =head2 scaledvalue
134  
135 Title : scaledvalue
136 Usage : $obj->scaledvalue($newval)
137 Function:
138 Returns : this object's scaled value
139 Args : newvalue (optional)
140  
141  
142 =cut
143  
144 sub scaledvalue{
145 my $obj = shift;
146 if( @_ ) {
147 my $scaledvalue = shift;
148 $obj->{'scaledvalue'} = $scaledvalue;
149 }
150 return $obj->{'scaledvalue'};
151  
152 }
153  
154  
155  
156 =head2 url
157  
158 Title : url
159 Usage : $obj->url($newval)
160 Function:
161 Returns : this object's url
162 Args : newvalue (optional)
163  
164  
165 =cut
166  
167 sub url{
168 my $obj = shift;
169 if( @_ ) {
170 my $url = shift;
171 $obj->{'url'} = $url;
172 }
173 return $obj->{'url'};
174  
175 }
176  
177 1;