ensembl-hive  2.7.0
BinValue.pm
Go to the documentation of this file.
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 
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 use vars qw($AUTOLOAD @ISA);
47 use strict;
48 
49 # Object preamble - inheriets from Bio::Root::Object
50 
51 @ISA = qw(Exporter);
52 #@EXPORT_OK = qw();
53 # new() is inherited from Bio::Root::Object
54 
55 # _initialize is where the heavy stuff will happen when new is called
56 
57 sub new {
58  my ($class,@args) = @_;
59 
60  my $self = {};
61  bless $self,$class;
62  return $self;
63 }
64 
65 =head2 chromosomestart
66 
67  Title : ChromosomeStart
68  Usage : $obj->ChromosomeStart($newval)
69  Function:
70  Returns : value of ChromosomeStart
71  Args : newvalue (optional)
72 
73 
74 =cut
75 
76 sub chromosomestart{
77  my $obj = shift;
78  if( @_ ) {
79  my $value = shift;
80  $obj->{'chromosomestart'} = $value;
81  }
82  return $obj->{'chromosomestart'};
83 
84 }
85 
86 =head2 chromosomeend
87 
88  Title : chromosomesnd
89  Usage : $obj->chromosomeend($newval)
90  Function:
91  Returns : value of chromosomeend
92  Args : newvalue (optional)
93 
94 
95 =cut
96 
97 sub chromosomeend{
98  my $obj = shift;
99  if( @_ ) {
100  my $value = shift;
101  $obj->{'chromosomeend'} = $value;
102  }
103  return $obj->{'chromosomeend'};
104 
105 }
106 
107 
108 =head2 value
109 
110  Title : value
111  Usage : $obj->value($newval)
112  Function:
113  Returns : value of value
114  Args : newvalue (optional)
115 
116 
117 =cut
118 
119 sub value{
120  my $obj = shift;
121  if( @_ ) {
122  my $value = shift;
123  $obj->{'value'} = $value;
124  }
125  return $obj->{'value'};
126 
127 }
128 
129 
130 
131 =head2 scaledvalue
132 
133  Title : scaledvalue
134  Usage : $obj->scaledvalue($newval)
135  Function:
136  Returns : this object's scaled value
137  Args : newvalue (optional)
138 
139 
140 =cut
141 
142 sub scaledvalue{
143  my $obj = shift;
144  if( @_ ) {
145  my $scaledvalue = shift;
146  $obj->{'scaledvalue'} = $scaledvalue;
147  }
148  return $obj->{'scaledvalue'};
149 
150 }
151 
152 
153 
154 =head2 url
155 
156  Title : url
157  Usage : $obj->url($newval)
158  Function:
159  Returns : this object's url
160  Args : newvalue (optional)
161 
162 
163 =cut
164 
165 sub url{
166  my $obj = shift;
167  if( @_ ) {
168  my $url = shift;
169  $obj->{'url'} = $url;
170  }
171  return $obj->{'url'};
172 
173 }
174 
175 1;
Bio::EnsEMBL::DensityPlot::BinValue
Definition: BinValue.pm:13