3 Nov 2009 19:17
Re: [Biopython] Using SeqLocation to extract subsequence
Kyle Ellrott <kellrott <at> gmail.com>
2009-11-03 18:17:44 GMT
2009-11-03 18:17:44 GMT
>
> >> 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
RSS Feed