[Biopython-dev] [Bug 2323] New functions: GCG Checksum and CRC64

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sun Jul 1 03:23:02 UTC 2007


http://bugzilla.open-bio.org/show_bug.cgi?id=2323





------- Comment #16 from sbassi at gmail.com  2007-06-30 23:23 EST -------
(In reply to comment #15)
> I've added the functions gcg and seguid to Bio/SeqUtils/CheckSum.py.
> 

This code won't run on Python 2.3:
=============================================
sbassi at hp:~/bioinfo$ python
Python 2.3.4 (#2, Jun 16 2005, 18:52:31)
[GCC 3.3.5 (Debian 1:3.3.5-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import CheckSum
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "CheckSum.py", line 50
    return sum(n*ord(c.upper()) for (n,c) in izip(cycle(range(1,58)),seq)) %
10000
                                  ^
SyntaxError: invalid syntax
==========================================
That is why I made a separate module for Python 2.4+


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Biopython-dev mailing list