Find the highest-scoring global alignment between two strings using a scoring matrix.

Assignment

In this assignment we will construct a highest-scoring global alignment (with linear gap penalties) between two strings. To score alignments, we use the BLOSUM62 scoring matrix and an indel penalty $$\sigma = 5$$. Your task:

Example

In the following interactive session, we assume the FASTA file data01.faa1 to be located in the current directory.

>>> global_alignment_score('data01.faa')
8

>>> global_alignment('data01.faa')
('PLEASANTLY', '-MEA--N-LY')

Resources