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

Assignment

In this assignment we will construct a highest-scoring local alignment (with linear gap penalties) between two strings. To score alignments, we use the PAM250 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.

>>> local_alignment_score('data01.faa')
15

>>> local_alignment('data01.faa')
('EANL-Y', 'ENALTY')

Resources