[Biocorba-l] Biocorba-0.2.0 - A proposal
Brad Chapman
chapmanb@arches.uga.edu
Sat, 11 Nov 2000 16:38:10 -0500 (EST)
[my confusion about the sub_seqfeatures flag]
Matthew:
> The idea is that features may contain child features.
> If you ask the sequence for all features with
> recursion, then you will get back an iterator over all features,
> child features, child-child features...
> Basicaly, the recurse flag lets you chose the granularity
> that you pull back, rather than forcing you to always get
> everything.
Thanks for the explanation, I think I'm on the same page as you guys now:
if sub_seqfeatures == True:
Features have sub_SeqFeatures so you access features through
multiple levels
elif sub_seqfeatures == False:
All features are flattened to be top level features.
> If the recurse flag was dropped, then the
> apropreate default would be to return all top-level features,
> and for the client to look inside them if it wants.
Agreed. I'd like to place my vote for dropping the flag entirely, and
always having sub_SeqFeatures (ie. sub_seqfeatures is always true). I
think this is much nicer than flattened features, and also saves
implementors from having to implement both flattened and non-flattened
features. What do other people think about this?
Brad