2. (10 points) - Sequence alignment is used to compare DNA fragments and to determine similarities between species. Writ
Posted: Mon Jun 06, 2022 1:56 pm
2. (10 points) - Sequence alignment is used to compare DNA fragments and to determine similarities between species. Write a MATLAB function that automatically aligns the given two sequences and returns the alignment score of the following sequences called A1B and A2B where the highest alignment occurs when matching score equals to 5 (shown below). Your program should check all possible alignments until finds the best matching score. Your code should return a cell array (shown below) where sequences are aligned and prints alignment scores for each step in the command window (shown below). Command window 2x9 call 1 4 5 6 7 8 9 Y Y V scorea= 0 Y V Y 1 ● 1 1 ● A1B='attgata' A2B='tga ta gt' Type your code: 17 20 Y Y Y 0 V D Y Ax 1 5