3 # BioPerl module for Bio::Expression::DataSet
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::DataSet - 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
::DataSet
;
61 use base
qw(Bio::Root::Root);
65 Usage : my $obj = Bio::Expression::DataSet->new();
66 Function: Builds a new Bio::Expression::DataSet object
67 Returns : an instance of Bio::Expression::DataSet
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::DataSet 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'};
133 $self->{'db'} = $val if defined($val);
134 return $self->{'db'};
139 Usage : $obj->db($newval)
142 Returns : value of db (a scalar)
143 Args : on set, new value (a scalar or undef, optional)
150 $self->{'db'} = $val if defined($val);
151 return $self->{'db'};
156 Usage : $obj->pubmed_id($newval)
159 Returns : value of pubmed_id (a scalar)
160 Args : on set, new value (a scalar or undef, optional)
168 $self->{'pubmed_id'} = $val if defined($val);
169 return $self->{'pubmed_id'};
174 Usage : $obj->web_link($newval)
177 Returns : value of web_link (a scalar)
178 Args : on set, new value (a scalar or undef, optional)
186 $self->{'web_link'} = $val if defined($val);
187 return $self->{'web_link'};
192 Usage : $obj->contact($newval)
195 Returns : value of contact (a scalar)
196 Args : on set, new value (a scalar or undef, optional)
204 $self->{'contact'} = $val if defined($val);
205 return $self->{'contact'};
210 Usage : $obj->samples($newval)
213 Returns : value of samples (a scalar)
214 Args : on set, new value (a scalar or undef, optional)
222 $self->{'samples'} = $val if defined($val);
223 return $self->{'samples'};
228 Usage : $obj->description($newval)
231 Returns : value of description (a scalar)
232 Args : on set, new value (a scalar or undef, optional)
240 $self->{'description'} = $val if defined($val);
241 return $self->{'description'};
246 Usage : $obj->design($newval)
249 Returns : value of design (a scalar)
250 Args : on set, new value (a scalar or undef, optional)
258 $self->{'design'} = $val if defined($val);
259 return $self->{'design'};
262 =head2 design_description()
264 Usage : $obj->design_description($newval)
267 Returns : value of design_description (a scalar)
268 Args : on set, new value (a scalar or undef, optional)
273 sub design_description
{
276 $self->{'design_description'} = $val if defined($val);
277 return $self->{'design_description'};
304 my ($self,@args) = @_;
305 if ( $self->samples() ) {
306 return @
{ $self->samples() };
321 if ( $self->{'_load'} ) {
325 $self->db->fill_dataset( $self );
326 return $self->{'_load'};