[Bioperl-l] SeqIO/genbank makes false assumption?

Ewan Birney birney at ebi.ac.uk
Wed May 7 16:17:59 EDT 2003



On 6 May 2003, Mark Wilkinson wrote:

> Hi all,
>
> I've been "out of the loop" for a while w.r.t. BioPerl, so I am nervous
> about fixing this myself before I get confirmation that it is really a
> bug.  I think this line of code from genbank.pm is making a false
> assumption:
>
> Bio::SeqIO::genbank::write_seq(../bioperl-live/Bio/SeqIO/genbank.pm:598):
> 598:		foreach my $ref ( $seq->annotation->get_Annotations('reference') )
>
> According to the SeqIO docs, $seq->annotation is allowed to return
> undef... so I think it should be checking for a return value before it
> calls get_Annotations.
>

get_Annotations returns a list, which can be empty. So it should be fine.


> is this correct?
>
> Cheers all!
>
> Mark
>
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at bioperl.org
> http://pw600a.bioperl.org/mailman/listinfo/bioperl-l
>



More information about the Bioperl-l mailing list