3 # BioPerl module for Bio::Expression::Sample
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
7 # Cared for by Allen Day <allenday@ucla.edu>
11 # You may distribute this module under the same terms as perl itself
13 # POD documentation - main docs before the code
17 Bio::Expression::Sample - DESCRIPTION of Object
21 Give standard usage here
25 Describe the object here
31 User feedback is an integral part of the evolution of this and other
32 Bioperl modules. Send your comments and suggestions preferably to
33 the Bioperl mailing list. Your participation is much appreciated.
35 bioperl-l@bioperl.org - General discussion
36 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
40 Please direct usage questions or support issues to the mailing list:
42 I<bioperl-l@bioperl.org>
44 rather than to the module maintainer directly. Many experienced and
45 reponsive experts will be able look at the problem and quickly
46 address it. Please include a thorough description of the problem
47 with code and data examples if at all possible.
51 Report bugs to the Bioperl bug tracking system to help us keep track
52 of the bugs and their resolution. Bug reports can be submitted via
55 http://bugzilla.open-bio.org/
57 =head1 AUTHOR - Allen Day
59 Email allenday@ucla.edu
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
::Expression
::Sample
;
74 use base
qw(Bio::Root::Root);
78 Usage : my $obj = Bio::Expression::Sample->new();
79 Function: Builds a new Bio::Expression::Sample object
80 Returns : an instance of Bio::Expression::Sample
87 my($class,@args) = @_;
89 my $self = $class->SUPER::new
(@args);
90 $self->_initialize(@args);
96 Usage : $obj->_initialize(%arg);
97 Function: Internal method to initialize a new Bio::Expression::Sample object
98 Returns : true on success
99 Args : passed through to new()
106 foreach my $arg (keys %arg){
109 $self->$marg($arg{$arg}) if $self->can($marg);
117 Usage : $obj->accession($newval)
120 Returns : value of accession (a scalar)
121 Args : on set, new value (a scalar or undef, optional)
128 $self->{'accession'} = $val if defined($val);
129 return $self->{'accession'};
134 Usage : $obj->dataset($newval)
137 Returns : value of dataset (a scalar)
138 Args : on set, new value (a scalar or undef, optional)
145 $self->{'dataset'} = $val if defined($val);
146 return $self->{'dataset'};
151 Usage : $obj->db($newval)
154 Returns : value of db (a scalar)
155 Args : on set, new value (a scalar or undef, optional)
162 $self->{'db'} = $val if defined($val);
163 return $self->{'db'};
173 Usage : $obj->name($newval)
176 Returns : value of name (a scalar)
177 Args : on set, new value (a scalar or undef, optional)
185 $self->{'name'} = $val if defined($val);
186 return $self->{'name'};
191 Usage : $obj->source_name($newval)
194 Returns : value of source_name (a scalar)
195 Args : on set, new value (a scalar or undef, optional)
203 $self->{'source_name'} = $val if defined($val);
204 return $self->{'source_name'};
209 Usage : $obj->description($newval)
212 Returns : value of description (a scalar)
213 Args : on set, new value (a scalar or undef, optional)
221 $self->{'description'} = $val if defined($val);
222 return $self->{'description'};
225 =head2 treatment_description()
227 Usage : $obj->treatment_description($newval)
230 Returns : value of treatment_description (a scalar)
231 Args : on set, new value (a scalar or undef, optional)
236 sub treatment_description
{
239 $self->{'treatment_description'} = $val if defined($val);
240 return $self->{'treatment_description'};
245 if ( $self->{'_load'} ) {
249 $self->db->fill_sample( $self );
250 return $self->{'_load'};