Kyle Ellrott | 3 Nov 2009 19:17
Picon

Re: [Biopython] Using SeqLocation to extract subsequence

>
> >> def FeatureDescGuess( feature ):
> >>   return feature.qualifiers.get('product', [""])[0]
> >>
> >> and therefore doesn't really need an entire function.
> >
> > That could attempt to get the first element of a None type, if the
> 'product'
> > qualifier doesn't exist.
>
> No, because we supply a default value (a list containing the empty string).
>

Didn't see that.  That's what I get for programming during a colloquium ;-)

Kyle

Gmane