3 # BioPerl module for Bio::Expression::Platform
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::Platform - 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
::Platform
;
74 use base
qw(Bio::Root::Root);
75 use Bio
::DB
::Taxonomy
;
79 Usage : my $obj = Bio::Expression::Platform->new();
80 Function: Builds a new Bio::Expression::Platform object
81 Returns : an instance of Bio::Expression::Platform
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::Platform 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);
112 $self->taxdb( Bio
::DB
::Taxonomy
->new(-source
=> 'entrez') );
118 =head2 get_datasets()
129 my ($self,@args) = @_;
130 my $db = $self->db();
132 my @datasets = $db->get_datasets( $self );
139 Usage : $obj->accession($newval)
142 Returns : value of accession (a scalar)
143 Args : on set, new value (a scalar or undef, optional)
150 $self->{'accession'} = $val if defined($val);
151 return $self->{'accession'};
156 Usage : $obj->name($newval)
159 Returns : value of name (a scalar)
160 Args : on set, new value (a scalar or undef, optional)
167 $self->{'name'} = $val if defined($val);
168 return $self->{'name'};
173 Usage : $obj->taxon()
176 Returns : A Bio::Taxonomy::Node object
184 if ( ! $self->{'taxon'} ) {
185 $self->{'taxon'} = $self->taxdb->get_Taxonomy_Node( $self->_taxon_id() );
187 return $self->{'taxon'};
192 Usage : $obj->contact($newval)
195 Returns : a Bio::Expression::Contact object
196 Args : on set, new value (a scalar or undef, optional)
203 $self->{'contact'} = $val if defined($val);
204 return $self->{'contact'};
209 Usage : $obj->db($newval)
212 Returns : value of db (a scalar)
213 Args : on set, new value (a scalar or undef, optional)
220 $self->{'db'} = $val if defined($val);
221 return $self->{'db'};
226 Usage : $obj->_taxon_id($newval)
229 Returns : value of _taxon_id (a scalar)
230 Args : on set, new value (a scalar or undef, optional)
237 $self->{'_taxon_id'} = $val if defined($val);
238 return $self->{'_taxon_id'};
243 Usage : $obj->taxdb($newval)
246 Returns : a Bio::DB::Taxonomy object
247 Args : on set, new value (a scalar or undef, optional)
254 $self->{'taxdb'} = $val if defined($val);
255 return $self->{'taxdb'};