

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


āOf Mice and Men ā and dogsā
This problem set is about sequence alignment, as discussed in class. Your task is to implement a dynamic programming procedure to find the optimal global alignment be- tween two nucleotide sequences. You will use your code to compare a gene from the human genome to the same gene from the mouse and dog genome and see which is more āsimilarā.
Optimal alignment score: 3 CT-GAT GTCGA-
(It is probably a good idea to make up a handful of simple examples, solve them on paper, and compare to your codeās output.)
(a) Determine the length of the alignment, 6 in the example above (not necessar- ily length of the input strings). (b) Count the number of nucleotide matches in the alignment (3 in the above example). (c) Compute and output a similarity measure defined as the ratio of these two numbers. In the example, this would be 3 /6 = 0. 5.
This files contains three versions of the same gene, the first from the human, the second from the mouse, and the third from the dog genome. Run your script on this file and record the output into a text file ps3.txt. Is the human gene more similar to the mouse or the dog?