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