[Biopython] ngs_backbone

Peter biopython at maubp.freeserve.co.uk
Tue May 4 15:06:45 UTC 2010


On Tue, May 4, 2010 at 3:56 PM, Brent Pedersen <bpederse at gmail.com> wrote:
>>
>> I see you have a copy of our (private) function Bio.Seq._maketrans() here:
>> http://github.com/JoseBlanca/franklin/blob/master/franklin/seq/seqs.py
>> Would it be useful to have this as a public API in Biopython?
>
> just out of curiosity (since it's tested and working), is the reason
> it's safe to rely on dictionary order in _maketrans() there because
> it's simple keys -- letters -- in the mapping dictionary?

We don't make any assumptions about the dictionary order (this does
change in different implications of Python), but we do assume that
keys() and values() will be in matched order which I think is part of
the Python standard.

Peter



More information about the Biopython mailing list