CPSC 445 - Assignment 2

released: 2016/02/25, thu, 15:30; due: 2016/03/04, fri, 18:00


1  Multiple Sequence Alignment (Hands-on Problem) [20 marks]

Consider the following partial sequences from E.Coli clone vectors in FASTA format. (Source: http://people.mbi.ucla.edu/sumchan/seqpet16b.html)

>pBR322
TTCTCATGTTTGACAGCTTATCATCGATAAGCTTTAATGCGGTAGTTTAT 
CACAGTTAAATTGCTAACGCAGTCAGGCACCGTGTATGAAATCTAACAAT 
GCGCTCATCGTCATCCTCGGCACCGTCACCCTGGATGCTGTAGGCATAGG 
CTTGGTTATGCCGGTACTGCCGGGCCTCTTGCGGGATATCGTCCATTCCG
>pBR325
aggccatgtttgacagcttatcatcgataagctttaatgcggtagtttat 
cacagttaaattgctaacgcagtcaggcaccgtgtatgaaatctaacaat 
gcgctcatcgtcatcctcggcaccgtcaccctggatgctgtaggcatagg 
cttggttatgccggtactgccgggcctcttgcgggatatcgtccattccg

>pBR327
TTCTCATGTTTGACAGCTTATCATCGATAAGCTTTAATGCGGTAGTTTAT 
CACAGTTAAATTGCTAACGCAGTCAGGCACCGTGTATGAAATCTAACAAT 
GCGCTCATCGTCATCCTCGGCACCGTCACCCTGGATGCTGTAGGCATAGG 
CTTGGTTATGCCGGTACTGCCGGGCCTCTTGCGGGATATCGTCCATTCCG
>pACYC184
GAATTCCGGATGAGCATTCATCAGGCGGGCAAGAATGTGAATAAAGGCCG 
GATAAAACTTGTGCTTATTTTTCTTTACGGTCTTTAAAAAGGCCGTAATA 
TCCAGCTGAACGGTCTGGTTATAGGTACATTGAGCAACTGACTGAAATGC 
CTCAAAATGTTCTTTACGATGCCATTGGGATATATCAACGGTGGTATATC
>pHSG575
TGATGTCCGGCGGTGCTTTTGCCGTTACGCACCACCCCGTCAGTAGCTGA 
ACAGGAGGGACAGCTGATAGAAACAGAAGCCACTGGAGCACCTCAAAAAC 
ACCATCATACACTAAATCACTAAGTTGGCAGCATCACCCGACGCACTTTG 
CGCCGAATAAATACCTGTGACGGAAGATCACTTCGCAGAATAAATAAATC
>pGEX2T
acgttatcgactgcacggtgcaccaatgcttctggcgtcaggcagccatc 
ggaagctgtggtatggctgtgcaggtcgtaaatcactgcataattcgtgt 
cgctcaaggcgcactcccgttctggataatgttttttgcgccgacatcat 
aacggttctggcaaatattctgaaatgagctgttgacaattaatcatcgg

(a) Use T-Coffee (http://www.ebi.ac.uk/Tools/msa/tcoffee/) to obtain a multiple sequence alignment of these sequences. Report the multiple sequence alignment and the guide tree used for the alignment. [5 marks]

(b) Obtain another multiple sequence alignment for the same sequeces using the multiple sequence alignment program WebPRANK (http://www.ebi.ac.uk/goldman-srv/webprank/). Report the multiple sequence alignment and the guide tree used for constructing it. [5 marks]

(c) Recalculate the WebPRANK alignment using the guide tree produced by T-Coffee. The phylogenetic tree can be entered into the WebPRANK program in the Basic Alignment Options part of the form by using a string input. Report the resulting multiple sequence alignment and guide tree. [5 marks]

(d) Comment on the differences between the multiple sequence alignments from (a), (b) and (c). Keep your answer as concise as possible. [5 marks]


2  Sum-of-pairs Scoring of Multiple Sequence Alignments (Programming Problem) [40 marks]

Important notes:
  • Your programs should be written either in Python, C, Java or C++.
  • When you are done, send an email to hoos@cs.ubc.ca and rolin@cs.ubc.ca with subject 'CPSC445-hw2' and attach your programs sources.
  • The name of your programs should be [your-student-id]_sp.{c,cpp,java,py}, e.g. 80132322_sp.cpp. Feel free to add any prefix to your file name in case needed. We are fine as long as your student id appears in the file name. If you would like to attach a readme text file, it should be named [your-student-id]-readme.txt.
  • Your programs should be well documented and you should explain the purpose of every function that you write [up to 10 marks will be deducted for code that is not commented/documented].
  • An input file named 'asst2.in' will be located in the same folder as your program. DO NOT use command line arguments. DO NOT use user input.
  • Your programs should output their results to standard out (stdout).

We are interested in finding the sum-of-pairs score for a given alignment. We will use the following scoring function for this program: 4 points for a match, -1 points for a mismatch, -2 for a s(-,base) or s(base,-) and 0 for a s(-,-).

(a) (Hand in this part with your written assignment) Compute (by hand) the sum-of-pairs score for the following alignment using the above score.
[5 marks]

A-G
AC-
TCG


Write a program that computes the sum-of-pairs score for an alignment. The input for your program will be a file with an alignment named (asst2.in). The alignment will be a set of sequences separated by line breaks. Each sequence will have a length of up to 500 bases, and contain anywhere from 3 to 10 sequences.

(b) Using your program, compute the sum-of-pairs score for the alignment from part (a). [10 marks]

(c) Using your program, compute the sum-of-pairs score for the following alignment:

CTCT--CTCCACGGGC
CCAAA-ATTTACAGAG
CCCTAGGTTCGCAGAC
CCCTAATCCCGCAGGG
[10 marks]

(d) Compute the sum-of-pairs scores for the multiple sequence alignments from from problems 1a), 1b) and 1c). Can you make any additional comments about the success of these programs? Note: You will need to modify the output multiple sequence alignments of these programs before using them as input for your program.
[15 marks]


3  Scoring Models [10 marks]

The following questions should be answered after carefully reading section 8.1 and 8.2 of Durbin et al.

(a) What is the Jukes-Cantor distance model and why is it more appropriate than a simple model that merely counts the number of mismatches? (<= 50 words, in your own words). [3 marks]

(b) Why might the 2-parameter Kimura model be even more appropriate than the Jukes-Cantor model? (<= 50 words, in your own words). [3 marks]

(c) All three of the above models are less then realistic. Give 3 reasons or examples where all three of the models would not, or could not model real-life cases. [4 marks]


4  Phylogenetic Trees / Distance Based Methods [25 marks]

(a) Show all steps of the UPGMA algorithm as applied to the following five sequences, where the distance between two sequences is defined as the number of base positions in which they differ (for example, the first two sequences have a distance of 6 unmatched base pairs). [10 marks]

(b) Briefly describe the role of "arithmetic averaging" in UPGMA. (<= 50 words, in your own words) [5 marks]

(c) Prove that Equation (7.2) from Durbin et al. gives the correct distances dkl between a merged cluster Ck = Ci +  Cj (where '+' denotes set union) and every other cluster Cl according to the general definition of distance between clusters as given in Equation (7.1). [10 marks]


5 CHALLENGE PROBLEMS [no marks, but highly recommended to broaded and deepen your knowledge]

Special Note - In each assignment, there will be a Challenge Problems section. These problems are not for credit. However, they will give you a greater depth of knowledge in the subject matter for this section, and will help you prepare for, and impress in, the Final Oral Examination. If you have any questions regarding these problems, since some are quite open-ended in nature, feel free to discuss them with Holger or Robbie. 

Reading Questions: In graduate-style seminars, you will often be asked to read academic papers before class and have a set of questions prepared for discussion with your peers during the seminar period.  These questions should not simply be limited to questions of the form, "I didn't understand X, how does it work?" but should demonstrate that you have made an effort to re-read and understand the paper to come up with more piercing, critical analysis, or suggestions for future improvements or directions to the work.  Working out these questions will prepare you for such seminars and discussions in the future.

(a) Reading Question 1: Read the land-mark paper,"CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, position-specific gap penalties and weight matrix choice," ( http://www.ncbi.nlm.nih.gov/pmc/articles/PMC308517/pdf/nar00046-0131.pdf ) and formulate two (2) reading questions according to the note above - clarification questions are OK as long as you have made an effort to understand them by discussing with your peers. To get you started, try to describe and justify the four steps taken in the paper to improve the sensitivity of the multiple sequence alignment method.

(b) Reading Question 2: Read the paper, "MUSCLE: multiple sequence alignment with high accuracy and high throughput," available here: ( http://nar.oxfordjournals.org/content/32/5/1792.full.pdf+html ). Describe and motivate the decisions the authors took for the selection of their scoring model.

(c) Reading Question 3: The paper, "How well do evolutionary trees describe genetic relationships among populations?," takes a critical view of the descriptive power of constructed trees from a biological perspective ( http://www.nature.com/hdy/journal/v102/n5/pdf/hdy2008136a.pdf ).  Describe how the authors evaluate the results generated by tree contruction methods - including UPGMA - through comparison with actual, biological, hereditary data. What trends do they find? What conclusions do they draw?


General remarks: