Re: Python pattern matching algorithm tuple error
You can insert gaps in both sequences. This picture is straight out of the assignment; the table is annoying as fuck to read so I'll basically just say what he was getting at.
Original sequences:
seq1: 'ATG'
seq2: 'GGAAT'
The two alignments listed
G G A A T
- - A T G
G G A A T -
- - - A T G
give the same score.
For the first one: (0) - 5 - 5 + 20 + 5 + 5 = 20
For the second one: (0) - 5 - 5 - 5 + 20 + 20 - 5 = 20

It pisses me off how ambiguous my professor was on this assignment. Apparently the score has to add up everything, even mismatches, and only penalize for gaps. This is stupid.
The current code I have doesn't work since I can't even import numpy or scipy. There's something about them being 32-bit when I have a 64-bit machine. Even then I don't even know if the code from the textbook even works because well, the variable names used were absolute garbage and it had errors when I tried running it.
You can insert gaps in both sequences. This picture is straight out of the assignment; the table is annoying as fuck to read so I'll basically just say what he was getting at.
Original sequences:
seq1: 'ATG'
seq2: 'GGAAT'
The two alignments listed
G G A A T
- - A T G
G G A A T -
- - - A T G
give the same score.
For the first one: (0) - 5 - 5 + 20 + 5 + 5 = 20
For the second one: (0) - 5 - 5 - 5 + 20 + 20 - 5 = 20

It pisses me off how ambiguous my professor was on this assignment. Apparently the score has to add up everything, even mismatches, and only penalize for gaps. This is stupid.
The current code I have doesn't work since I can't even import numpy or scipy. There's something about them being 32-bit when I have a 64-bit machine. Even then I don't even know if the code from the textbook even works because well, the variable names used were absolute garbage and it had errors when I tried running it.

Comment