[Biopython-dev] Getting nucleotide sequence for GenBank features

Peter biopython at maubp.freeserve.co.uk
Tue Nov 10 16:23:16 UTC 2009


Peter wrote:
>> Does my current choice of "extract" for the name of the proposed
>> SeqFeature method seem clear? My other suggestions earlier were
>> get_sequence or extract_sequence.
>>
>> http://github.com/peterjc/biopython/tree/seqfeature-extract
>>
>> Peter

On Fri, Nov 6, 2009 at 5:36 PM, Kyle Ellrott <kellrott at gmail.com> wrote:
> It's always hard to judge how obvious something is when you already know
> it.  I don't think there is any sort of name clash.  Is there anything else you
> would want to 'extract' with/from a Sequence Feature?...
> One of the rules I've heard from API designers is that it's best if written
> code almost sounds like a proper sentence.  ( From
> http://www.youtube.com/watch?v=aAb7hSCtvGw if you haven't seen it )
> my_feature_sequence = my_feature.extract( my_sequence ) seems to fit that
> rule.
>
> Kyle

So I'm happy with the SeqFeature method name ("extract"), and so is Kyle,
and no one else has commented - which is a shame.

I've just merged this into the main branch to encourage more testing of this,
and will work on covering this in the tutorial at some point.

If anyone gives this a go, please let us know on the list - and of course
report any issues.

Thanks,

Peter




More information about the Biopython-dev mailing list