[Bioperl-l] accessing optional qualifiers within features?

Ewan Birney birney@ebi.ac.uk
Mon, 13 Nov 2000 12:02:18 +0000 (GMT)

On Mon, 13 Nov 2000, Samuel Aparicio wrote:

> Ewan Birney wrote:
> Hi Ewan,
> Thanks for this example - it helped to clear things up.
> I notice that filling the array in the example you gave generates
> an exception if any of the primary tags do not have at least one tag
> value 'note'. I guess it is the expected behaviour here that the
> method throws an exception rather than returning a null?

I guess you are meant to test this first with


before calling each_tag_value('note') as Hilmar's code snippet suggests.

Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420