[Biopython-dev] Merging Bio.SeqIO SFF support?

Kevin Jacobs <jacobs@bioinformed.com> bioinformed at gmail.com
Tue Mar 2 14:51:04 UTC 2010


On Tue, Mar 2, 2010 at 9:44 AM, Peter <biopython at maubp.freeserve.co.uk>wrote:

> You can probably make that more efficient with one line:
>
> sffqual  =
> (np.array(rec.letter_annotations['phred_quality'],dtype=np.uint8)
> + 33).tostring()
>
> Not sure if it will make a measurable difference mind you ;)
>

I haven't measured, but my understanding is that the inplace "+= 33" will
avoid creating a temporary copy and thus be quicker.  But as you said, not
likely to make a difference in practice.

-Kevin



More information about the Biopython-dev mailing list