[Bioperl-l] accessing optional qualifiers within features?

Samuel Aparicio saparici@hgmp.mrc.ac.uk
Mon, 13 Nov 2000 11:59:43 +0000


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?

cheers
Sam

> On Sat, 11 Nov 2000, Samuel Aparicio wrote:
>
> > Hi everyone
> > I am wondering if there is a method in Bioperl which allows access to
> > optional qualifiers with features in a genbank/embl entry. For example,
> > being able to parse out
> > the value of /note in the example below.
> >
> >  repeat_region   1586..1760
> >                      /note="L1M1 repeat: matches 5299..5484 of
> > consensus"
>
> ;) I know what generates those comments...
>
> go for @values =  $seqfeature->each_tag_value('note');
>
> >
> > regards
> >
> > Sam Aparicio
> >
> > -----
> > Samuel Aparicio | Wellcome Institute for Molecular Mechanisms in Disease
> >
> > Addenbrookes, Cambridge CB2 2XY. +44 1223 762663 (tel)
> > saparici@hgmp.mrc.ac.uk
> >
> >
> >
> > _______________________________________________
> > Bioperl-l mailing list
> > Bioperl-l@bioperl.org
> > http://bioperl.org/mailman/listinfo/bioperl-l
> >
>
> -----------------------------------------------------------------
> Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
> <birney@ebi.ac.uk>.
> -----------------------------------------------------------------
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l