3 # BioPerl module for Bio::Expression::Sample
5 # Cared for by Allen Day <allenday@ucla.edu>
9 # You may distribute this module under the same terms as perl itself
11 # POD documentation - main docs before the code
15 Bio::Expression::Sample - DESCRIPTION of Object
19 Give standard usage here
23 Describe the object here
29 User feedback is an integral part of the evolution of this and other
30 Bioperl modules. Send your comments and suggestions preferably to
31 the Bioperl mailing list. Your participation is much appreciated.
33 bioperl-l@bioperl.org - General discussion
34 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
38 Report bugs to the Bioperl bug tracking system to help us keep track
39 of the bugs and their resolution. Bug reports can be submitted via
42 http://bugzilla.open-bio.org/
44 =head1 AUTHOR - Allen Day
46 Email allenday@ucla.edu
50 The rest of the documentation details each of the object methods.
51 Internal methods are usually preceded with a _
56 # Let the code begin...
59 package Bio
::Expression
::Sample
;
61 use base
qw(Bio::Root::Root);
65 Usage : my $obj = Bio::Expression::Sample->new();
66 Function: Builds a new Bio::Expression::Sample object
67 Returns : an instance of Bio::Expression::Sample
74 my($class,@args) = @_;
76 my $self = $class->SUPER::new
(@args);
77 $self->_initialize(@args);
83 Usage : $obj->_initialize(%arg);
84 Function: Internal method to initialize a new Bio::Expression::Sample object
85 Returns : true on success
86 Args : passed through to new()
93 foreach my $arg (keys %arg){
96 $self->$marg($arg{$arg}) if $self->can($marg);
104 Usage : $obj->accession($newval)
107 Returns : value of accession (a scalar)
108 Args : on set, new value (a scalar or undef, optional)
115 $self->{'accession'} = $val if defined($val);
116 return $self->{'accession'};
121 Usage : $obj->dataset($newval)
124 Returns : value of dataset (a scalar)
125 Args : on set, new value (a scalar or undef, optional)
132 $self->{'dataset'} = $val if defined($val);
133 return $self->{'dataset'};
138 Usage : $obj->db($newval)
141 Returns : value of db (a scalar)
142 Args : on set, new value (a scalar or undef, optional)
149 $self->{'db'} = $val if defined($val);
150 return $self->{'db'};
160 Usage : $obj->name($newval)
163 Returns : value of name (a scalar)
164 Args : on set, new value (a scalar or undef, optional)
172 $self->{'name'} = $val if defined($val);
173 return $self->{'name'};
178 Usage : $obj->source_name($newval)
181 Returns : value of source_name (a scalar)
182 Args : on set, new value (a scalar or undef, optional)
190 $self->{'source_name'} = $val if defined($val);
191 return $self->{'source_name'};
196 Usage : $obj->description($newval)
199 Returns : value of description (a scalar)
200 Args : on set, new value (a scalar or undef, optional)
208 $self->{'description'} = $val if defined($val);
209 return $self->{'description'};
212 =head2 treatment_description()
214 Usage : $obj->treatment_description($newval)
217 Returns : value of treatment_description (a scalar)
218 Args : on set, new value (a scalar or undef, optional)
223 sub treatment_description
{
226 $self->{'treatment_description'} = $val if defined($val);
227 return $self->{'treatment_description'};
232 if ( $self->{'_load'} ) {
236 $self->db->fill_sample( $self );
237 return $self->{'_load'};