mvoorhie@virgil:~/Projects/Courses/PracticalBioinformatics/python$ cd examples/ mvoorhie@virgil:~/Projects/Courses/PracticalBioinformatics/python/examples$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> help(argmax) Traceback (most recent call last): File "", line 1, in NameError: name 'argmax' is not defined >>> 0 == None False >>> "" == None False >>> import day10 >>> s1 = "PELICAN" >>> s2 = "COELACANTH" >>> (a1,a2,s) = day10.driver(s1,s2) Traceback (most recent call last): File "", line 1, in File "day10.py", line 21, in driver l1 = s1+1 TypeError: cannot concatenate 'str' and 'int' objects >>> reload(day10) >>> (a1,a2,s) = day10.driver(s1,s2) Traceback (most recent call last): File "", line 1, in File "day10.py", line 44, in driver match = scores[i-1][j-1]+matchscore(s1[i-1],s2[j-1]) NameError: global name 'matchscore' is not defined >>> reload(day10) >>> (a1,a2,s) = day10.driver(s1,s2) -PELICAN-- COELACANTH >>> import dp2 >>> scores = dp2.makeIdent(uppercase) Traceback (most recent call last): File "", line 1, in NameError: name 'uppercase' is not defined >>> from string import uppercased Traceback (most recent call last): File "", line 1, in ImportError: cannot import name uppercased >>> from string import uppercase >>> scores = dp2.makeIdent(uppercase) >>> (a1,a2) = dp2.nw(s1,s2,debug=True) Traceback (most recent call last): File "", line 1, in TypeError: nw() takes at least 3 non-keyword arguments (2 given) >>> (a1,a2) = dp2.nw(s1,s2,scores,debug=True) C O E L A C A N T H 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -1 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 P -2 -2 -2 -1 -2 -3 -4 -5 -6 -7 -8 E -3 -3 -3 -2 0 -1 -2 -3 -4 -5 -6 L -4 -4 -4 -3 -1 -1 -2 -3 -4 -5 -6 I -5 -3 -4 -4 -2 -2 0 -1 -2 -3 -4 C -6 -4 -4 -5 -3 -1 -1 1 0 -1 -2 A -7 -5 -5 -5 -4 -2 -2 0 2 1 0 N [None, [(0, 0)], [(0, 1)], [(0, 2)], [(0, 3)], [(0, 4)], [(0, 5)], [(0, 6)], [(0, 7)], [(0, 8)], [(0, 9)]] [[(0, 0)], [(0, 0)], [(0, 1), (1, 1)], [(0, 2), (1, 2)], [(0, 3), (1, 3)], [(0, 4), (1, 4)], [(0, 5), (1, 5)], [(0, 6), (1, 6)], [(0, 7), (1, 7)], [(0, 8), (1, 8)], [(0, 9), (1, 9)]] [[(1, 0)], [(1, 0), (1, 1)], [(1, 1)], [(1, 2)], [(2, 3)], [(2, 4)], [(2, 5)], [(2, 6)], [(2, 7)], [(2, 8)], [(2, 9)]] [[(2, 0)], [(2, 0), (2, 1)], [(2, 1), (2, 2)], [(2, 3)], [(2, 3)], [(3, 4)], [(3, 5)], [(3, 6)], [(3, 7)], [(3, 8)], [(3, 9)]] [[(3, 0)], [(3, 0), (3, 1)], [(3, 1), (3, 2)], [(3, 3)], [(3, 4)], [(3, 4)], [(3, 5), (4, 5)], [(3, 6), (4, 6)], [(3, 7), (4, 7)], [(3, 8), (4, 8)], [(3, 9), (4, 9)]] [[(4, 0)], [(4, 0)], [(5, 1)], [(4, 3)], [(4, 4)], [(4, 4), (4, 5)], [(4, 5)], [(5, 6)], [(5, 7)], [(5, 8)], [(5, 9)]] [[(5, 0)], [(5, 1)], [(5, 1)], [(5, 2), (6, 2), (5, 3)], [(5, 4)], [(5, 4)], [(5, 6)], [(5, 6)], [(6, 7)], [(6, 8)], [(6, 9)]] [[(6, 0)], [(6, 1)], [(6, 1), (6, 2)], [(6, 2)], [(6, 4)], [(6, 5)], [(6, 5), (6, 6)], [(6, 7)], [(6, 7)], [(7, 8)], [(7, 9)]] >>>