[Bioperl-l] Small changes to some Annotation methods?

Stefan Kirov kirovsa at ornl.gov
Tue Jan 20 13:20:03 EST 2004


Can we change the accessor methods, for example:
sub each_gene_name{
   my ($self, at args) = @_;

   return @{$self->{'_names'}};
}
 
to
sub each_gene_name{
   my ($self, at args) = @_;
   return undef unless ($self->{'_names'});
   return @{$self->{'_names'}};
}
The current implementation will break the code if  return 
@{$self->{'_names'}} is empty.
Jason, Heikki- I am asking just in case I am missing something....

Stefan



More information about the Bioperl-l mailing list