[Biopython] define circular DNA (?)

Peter Cock p.j.a.cock at googlemail.com
Tue Mar 8 11:40:08 UTC 2011


On Tue, Mar 8, 2011 at 11:32 AM, Moritz Beber
<moritz.beber at googlemail.com> wrote:
>
> If you just need circular behaviour in a small number of use cases, you
> could consider wrapping the sequence in a cycle iterator
> http://docs.python.org/release/2.6/library/itertools.html?highlight=cycle#itertools.cycle
>

That might need a lot of memory if used on a long sequence like a
bacterial genome, but an interesting idea.

Peter



More information about the Biopython mailing list