------------------------------------------------------------------------ H0K08a | Bio-informatics: exercises and practical sessions - SESSION 2 ------------------------------------------------------------------------ HMM Overview * Protein Structure <#Protein_Structure> * Protein Motifs <#Protein_Motifs> * Statistical profiles <#Statistical_profiles> * Hidden Markov models <#Hidden_Markov_models> * Scoring a sequence with a HMM <#Scoring> * Building a HMM <#Building_a_HMM> * Overfitting and regularisation <#Overfitting_and_regularisation> * Classifying sequences with a HMM <#Classifying> * Creating multiple alignments with a HMM <#Creating> * Exercises o Part 1 <#ex1> o Part 2 <#ex2> o Part 3 <#ex3> Protein Structure Proteins are large, organic molecules that are among the most important components in the cells of living organisms. They are more diverse in structure and function than any other kind of molecules. Enzymes, antibodies, hormones, transport molecules, hair, skin, muscle, tendons, cartilage, claws, nails, horns, hooves, and feathers are all made of proteins. These remarkable molecules are built from an alphabet of twenty smaller molecules known as amino acids. Figure 1 - DNA, mRNA and Protein [Image courtecy of MIT] All twenty amino acids have a common chemical core of two functional groups, a carboxylic acid group and an amino group. A central carbon atom connects the two groups. In nature, this atom is always bonded to both a hydrogen atom and another functional group called a side chain, which is different for each of the twenty amino acids. Amino acids within a protein are bonded by a condensation reaction in which the carboxylic acid group (COOH) of one amino acid is linked to the amino group (NH2) of a second, releasing one molecule of water. This combination of two amino acids is known as a peptide linkage. As shown here: Figure 2 - Chain Building Figure 3 - Different colour planes show individual AA's in this polypeptide. sequential condensations produce a chain of bonded amino acids known as a polypeptide chain. The linear sequence of amino acids in a polypeptide chain is known as the primary structure of a protein. The enormous diversity of proteins is due to the many ways in which amino acids can combine in these chains. A set of n amino acids can form 20n polypeptides, so 20100 combinations are possible for a protein built from 100 amino acids. This number is larger than the number of known atoms in the universe. Within long polypeptide chains, certain sections twist into coils and fold into sheets. These shapes are known as the secondary structures of a protein; the 3D fold of the entire protein is called tertiary structure (Figure 5 <#figure5>). Figure 4 - Protein rendered in 3D to display tertiary structure Figure 5 - Protein Myoglobin rendered in 3D Secondary structure is formed by hydrogen bonds between the carboxylic acid group and the amino group of two amino acids which are not adjacent in the polypeptide chain. If the two amino acids are part of a single chain, a twisted-helix shape is formed. When a protein is built from multiple chains of polypeptides, multiple hydrogen bonds can form across many chains. This creates sheets. Protein Motifs Although the linear string of amino acids is a simplified view of a molecule's structure, relationships between proteins can frequently be seen by comparing only their primary structures. (Figure 6 <#figure6>). shows the primary structures of four related proteins. The amino acid molecules are represented by single letters. Only a small piece of each protein is shown. They are laid out in a multiple alignment, an ordering which highlights areas in which they are extremely similar. CGGSLLNAN--TVLTAAHC CGGSLIDNK-GWILTAAHC CGGSLIRQG--WVMTAAHC CGGSLIREDSSFVLTAAHC Figure 6. Primary structure of four related proteins By taking a close look at the alignment, we can see the history of evolution in this protein family. Possibly, the ancestor of the four proteins above looked like the protein in (Figure 7 <#figure7>). CGSLIREDWVLTAAHC Figure 7. A possible common ancestor To understand why, consider what happens to a protein inside a cell when the cell reproduces. Through a process called mitosis, the cell makes a copy of itself and then splits into two daughter cells. Most of the time, a protein in the parent cell is exactly duplicated in the daughter cell. However, over long periods of time, errors occur in this copying process. When this happens, a protein in the daughter cell is slightly different from its counterpart in the parent. The three most common errors are substitution of an amino acid in a given position, insertion of one or more new amino acids, and deletion of one or more amino acids. Figure 8 - Scenario of protein divergence Figure 8 <#figure8> shows a possible worst case scenario after two kinds of errors have occurred. The daughter cell's protein is on the bottom row. A substitution error has occurred in position 13, where the parent has the amino acid F and the daughter has the amino acid V. The daughter also has six insertion errors (REDSSK) in positions 7 through 12. Statistical profiles As a result of these errors, proteins which share a common ancestor are not exactly alike. However, they inherit many similarities in primary structure from their ancestor. This is known as conservation of primary structure in a protein family. An example is seen in Figure 6 <#figure6>, where most of the positions (columns) in the multiple alignment contain only one or two distinct amino acids. These structural similarities make it possible to create a statistical model of a protein family. The model shown in Figure 9 <#figure9> is a simplified statistical profile, a model which shows the amino acid probability distribution for each position in the family. Firgure 9 - statistical profile representing 5 proteins of length 5. According to this profile, the probability of C in position 1 is 0.8, the probability of G in position 2 is 0.4, and so forth. The probabilities are calculated from the observed frequencies of amino acids in the family. Given a profile, the probability of a sequence is the product of the amino acid probabilities given by the profile. For example, the probability of CGGSV, given the profile in Figure 9 <#figure9>, is 0.8 * 0.4 * 0.8 * 0.6 * 0.2 =0.031 Given a statistical model, the probability of a sequence is used to calculate a score for the sequence. Because multiplication of fractions is computationally expensive and prone to floating point errors such as underflow, a convenient transformation into the logarithmic world is used. The score of a sequence is calculated by taking the logs of all amino acid probabilities and adding them up. Using this method with base e logarithms, the score of CGGSV is ln(0.8)+ln(0.4)+ln(0.8)+ln(0.6)+ln(0.2) = -3.48 In practice, profile models take other factors into account. For example, members of a protein family have varying lengths, so a score penalty is charged for insertions and deletions. The scores of individual amino acids in a profile are also position specific. In other words, more weight must be given to an unlikely amino acid which appears in a structurally important position in the protein than to one which appears in a structurally unimportant position. Although these refinements are necessary to create good profile models, they introduce many additional free parameters which must be calculated when building a profile, and unfortunately, the calculations must be done by trial and error. These shortcomings set the stage for a new kind of profile, based on the Hidden Markov model. Hidden Markov models Hidden Markov models (HMMs) offer a more systematic approach to estimating model parameters. The HMM is a dynamic kind of statistical profile. Like an ordinary profile, it is built by analyzing the distribution of amino acids in a training set of related proteins. However, an HMM has a more complex topology than a profile. It can be visualized as a finite state machine. Finite state machines typically move through a series of states and produce some kind of output either when the machine has reached a particular state or when it is moving from state to state. The HMM generates a protein sequence by emitting amino acids as it progresses through a series of states. Each state has a table of amino acid emission probabilities similar to those described in a profile model. There are also transition probabilities for moving from state to state. Figure 10 - HMM Network Layout Figure 10 <#figure10> shows one topology for a hidden Markov model for the protein ACCY. Although other topologies are used, the one shown is very popular in protein sequence analysis. Note that there are three kinds of states represented by three different shapes. The squares are called match states, and the amino acids emitted from them form the conserved primary structure of a protein. These amino acids are the same as those in the common ancestor or, if not, are the result of substitutions. The diamond shapes are insert states and emit amino acids which result from insertions. The circles are special, silent states known as delete states and model deletions. The numbers in the boxes show the probability that an amino acid occurs in a particular state, and the numbers next to the directed arcs show probabilities which connect the states. The probability of ACCY is shown as a highlighted path through the model. Transitions from state to state progress from left to right through the model, with the exception of the self-loops on the diamond insertion states. The self-loops allow insertions of any length to fit the model, regardless of the length of other sequences in the family. Scoring a sequence with a HMM Any sequence can be represented by a path through the model. The probability of any sequence, given the model, is computed by multiplying the emission and transition probabilities along the path. In Figure 10 <#figure10>, a path through the model represented by ACCY is highlighted. In the interest of saving space, the full tables of emission probabilities are not shown. Only the probability of the emitted amino acid is given. For example, the probability of A being emitted in position 1 is 0.3, and the probability of C being emitted in position 2 is 0.6. The probability of ACCY along this path is 0.4 * 0.3 * 0.46 * 0.6 * 0.97 * 0.5 * 0.015 * 0.73 *0.01 * 1 = 1.76x10-6 As in the profile case described above, the calculation is simplified by transforming probabilities to logs so that addition can replace multiplication. The resulting number is the raw score of a sequence, given the HMM. For example, the score of ACCY along the path shown in Figure 10 <#figure10> is ln(0.4) + ln(0.3) + ln(0.46) + ln(0.6) + ln(0.97) + ln(0.5) + ln(0.015) + ln(0.73) +ln(0.01) + ln(1) = -13.25 The calculation is easy if the exact state path is known, as in the toy example of Figure 10 <#figure10>. In a real model, many different state paths through a model can generate the same sequence. Therefore, the correct probability of a sequence is the sum of probabilities over all of the possible state paths. Unfortunately, a brute force calculation of this problem is computationally unfeasible, except in the case of very short sequences. Two good alternatives are to calculate the sum over all paths inductively using the forward algorithm, or to calculate the most probable path through the model using the Viterbi algorithm. Both algorithms are described below. Consider the HMM with multiple paths through the model for ACCY shown in Figure 11 <#figure11>. Figure 11 - Alternative paths that also yield the ACCY sequence The highlighted path is only one of several possibilities. Because the number of insertion states is greater than the number of match or delete states, there is an extra insertion state at the beginning of the model, labeled I0. Unlike the HMM in Figure 10 <#figure10>, where the state path for ACCY was known, several state paths through the model are possible for this sequence. The most likely path through the model is computed with the Viterbi algorithm. The algorithm employs a matrix, shown here: Figure 12 - Iteration Matrix The columns of the matrix are indexed by the states in the model, and the rows are indexed by the sequence. Deletion states are not shown, since, by definition, they have a zero probability of emitting an amino acid. The elements of the matrix are initialized to zero and then computed with these steps: # The probability that the amino acid A was generated by state I0 is computed and entered as the first element of the matrix # The probabilities that C is emitted in state M1 (multiplied by the probability of the most likely transition to state M1 from state I0) and in state I1 (multiplied by the most likely transition to state I1 from state I0) are entered into the matrix element indexed by C and I1/M1 # The maximum probability, max(I1, M1), is calculated # A pointer is set from the winner back to state I0 # Steps 2-4 are repeated until the matrix is filled Once the most probable path through the model is known, the probability of a sequence given the model can be computed by multiplying all probabilities along the path. The forward algorithm is similar to Viterbi. However in step 3, a sum rather than a maximum is computed. The probability of the sequence is found by summing the probabilities in the last column. The resulting matrix is shown here: Figure 13 - Final Matrix Building an HMM Another tricky problem is how to create an HMM in the first place, given a particular set of related training sequences. It is necessary to estimate the amino acid emission distributions in each state and all state-to-state transition probabilities from a set of related training sequences. If the state paths for all the training sequences are known, the emission and transition probabilities in the model can be calculated by computing their expected value: observing the number of times each transmission or emission occurs in the training set and dividing by the sum of all the transmission probabilities or all the emission probabilities. If the state paths are unknown, finding the best model given the training set is an optimization problem which has no closed form solution. It must be solved by iterative methods. The algorithms used to do this are closely related to the scoring algorithms described previously. The goal is to find model parameters which maximize the probability of all sequences in the training set. In other words, the desired model is a model against which all the sequences in the training set will have the best possible scores. The parameters are re-estimated after every iteration by computing a score for each training sequence against the previous set of model parameters. The Baum-Welch algorithm [.pdf ] is a variation of the forward algorithm described earlier. It begins with a reasonable guess for an initial model and then calculates a score for each sequence in the training set over all possible paths through this model . During the next iteration, a new set of expected emission and transition probabilities is calculated, as described above for the case when state paths are known. The updated parameters replace those in the initial model, and the training sequences are scored against the new model. The process is repeated until model convergence, meaning there is very little change in parameters between iterations. The Viterbi algorithm is less computationally expensive than Baum-Welch. As described in the previous section, it computes the sequence scores over the most likely path rather than over the sum of all paths. However, there is no guarantee that a model built with either algorithm has parameters which maximize the probability of the training set. As in many iterative methods, convergence indicates only that a local maximum has been found. Several heuristic methods have been developed to deal with this problem. One approach is to start with several initial models and proceed to build several models in parallel. When the models converge at several different local optimums, the probability of each model given the training set is computed, and the model with the highest probability wins. Another approach is to add noise, or random data, into the mix at each iteration of the model building process. Typically, an annealing schedule is used. The schedule controls the amount of noise added during each iteration. Less and less noise is added as iterations proceed. The decrease is either linear or exponential. The effect is to delay the convergence of the model. When the model finally converges, it is more likely to have found a good approximation to the global maximum. Overfitting and regularisation Clearly, accurate methods of estimating amino acid distributions are necessary to build good HMMs. A potential pitfall is illustrated by the example shown in Figure 6 <#figure6>. Consider these four sequences to be members of a training set. The first column shown contains one distinct amino acid: C. Using the methods described so far, the probability of any of the other 19 amino acids appearing in this position is 0. However, if we set all these probabilities to 0 in the model, we end up with a model unable to recognize family members which do not begin with a C. Remember that members of the training set are only a small percentage of real members of the protein family. At least some of the other members are likely to begin with different amino acids. This problem is known as overfitting. A variety of approaches known as regularization have been developed to deal with it. The simplest is to use pseudocounts: this means that, even if a given amino acid does not appear in a column of an aligned training set, it is given a fake count. Fake counts are also added for the amino acids which appear in the column. When probabilities are calculated, the fake counts are treated exactly like real observed counts. Take a look at the first column of Figure 9 <#figure9>, which has 4 counts of the amino acid C. If a pseudocount of 1 is used for each of the 20 amino acids, in effect, the column contains 24 entries, of which 4 are real and 20 are fake. The probability of A, which does not appear in the column, and the probability of C in position 1 are shown in Figure 6 <#figure6>. Figure 6 A sophisticated application of this method is known as Dirichlet mixtures. The mixtures are created by statistical analysis of the distribution of amino acids at particular positions in a large number of proteins. The mixtures are built from smaller components known as Dirichlet densities. A Dirichlet density is a probability density over all possible combinations of amino acids appearing in a given position. It gives high probability to certain distributions and low probability to others. For example, a particular Dirichlet density may give high probability to conserved distributions where a single amino acid predominates over all others. Another possibility is a density where high probability is given to amino acids with a common identifying feature, such as the subgroup of hydrophobic amino acids. When an HMM is built using a Dirichlet mixture, a wealth of information about protein structure is factored into the parameter estimation process. The pseudocounts for each amino acid are calculated from a weighted sum of Dirichlet densities and added to the observed amino acid counts from the training set. The parameters of the model are calculated as described above for simple pseudocounts. Classifying sequences with an HMM One common application of HMMs is classifying sequences in a database. The method is to build an HMM with a training set of known members of the class, and then to compute the score of all sequences in the database. The resulting scores are ranked and a suitable threshold is selected to separate class members from the other sequences in the database. Unfortunately, because these raw scores are length-dependent, they must be modified before the ranking can occur. Various techniques have been developed to work around this shortcoming. One approach is to calculate the difference in standard deviations between the raw score of a sequence and the mean score of sequences of similar length in the database. A more sophisticated method scores a sequence by a log-odds ratio: This number is the log of the ratio between two probabilities - the probability that the sequence was generated by the HMM and the probability that the sequence was generated by a null model, whose parameters reflect the general amino acid distribution in the training sequences. Creating multiple alignments with a HMM Another important use of HMMs is to automatically create a multiple alignment from a group of unaligned sequences. Multiple alignment is the process of taking a group of sequences and identifying amino acids which are homologous, structurally or functionally similar. The homologous amino acids are aligned in columns (see Figure 6 <#figure5>). Until recently, this tedious task was done by hand and required a biology expert with extensive knowledge of protein structure and evolution. A multiple alignment can be generated by using the Viterbi algorithm to find the most likely path through the HMM for each sequence. Each match state in the HMM corresponds to a column in the multiple alignment. A delete state is represented by a dash. Amino acids from insert states are either not shown or are displayed in lower case letters. Exercises *Exercise 1* This exercise includes building a profile HMM from a set of sequences, using that HMM to create a multiple alignment of a larger group of sequences and then using the same HMM to search a database. *Part 1: HMM training* In this example, we will pick sequences from a collection of 50 globins. Globins are the protein products of a large and ancient multigene family, including the alpha and beta globins of hemoglobin, myoglobin, and even the leghemoglobins of plants. The common function of globins is to bind oxygen. Here, you can view the structure of human alpha globin, whale myoglobin and yellow lupine leghemoglobin. In these structures red indicates alpha-helices. The sequences are stored in the file globins.txt. The sequences are in FASTA format. (/Each sequence in the file starts with a line beginning with ">" having an identifier up to the first space or comma, and comments after that. After the id line, the sequence is presented in single-letter codes and ends at the end of file or the next id line./) Select a number of sequences to start with. Ideally, check with your neighbors and make sure each is using a different sized set of sequences, such as 1, 5, 10, 25, and all 50. Save your selected group of sequences in a file, such as mydata.seq. You may also want to save all the sequences you did not use in another file so that we can score known positive examples that were not used to train the HMM. 1. We first create a multiple alignment for the selected group with *clustalw*. /users/sista/svanvoor/H0K08a/session02/clustalw/clustalw Select the input file with sequences under *option 1*, then set the output format under *3.9* to /GCG/MSF/ and make the alignment with the *options 2.1*. 2. With HMMER , we can now construct the profile HMM (see the UserGuide for clear and quick help on this command, this userguide also comes with the binaries.) /users/sista/svanvoor/H0K08a/session02/hmmer/bin/hmmbuild yourHMM.hmm globins.msf The output you can expect, will look like this: [svanvoor@ssh session02]$ hmmbuild myHMM.hmm GLB_0-5.msf hmmbuild - build a hidden Markov model from an alignment HMMER 2.3.2 (Oct 2003) Copyright (C) 1992-2003 HHMI/Washington University School of Medicine Freely distributed under the GNU General Public License (GPL) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Alignment file: GLB_0-5.msf File format: MSF Search algorithm configuration: Multiple domain (hmmls) Model construction strategy: MAP (gapmax hint: 0.50) Null model used: (default) Prior used: (default) Sequence weighting method: G/S/C tree weights New HMM file: myHMM.hmm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Alignment: #1 Number of sequences: 5 Number of columns: 159 Determining effective sequence number ... done. [3] Weighting sequences heuristically ... done. Constructing model architecture ... done. Converting counts to probabilities ... done. Setting model name, etc. ... done. [GLB_0-5] Constructed a profile HMM (length 151) Average score: 302.17 bits Minimum score: 274.57 bits Maximum score: 313.94 bits Std. deviation: 15.78 bits Finalizing model configuration ... done. Saving model to file ... done. // 3. Optionally, we can calibrate our HMM with /users/sista/svanvoor/H0K08a/session02/hmmer/bin/hmmcalibrate This give us thighter upper bounds for the E-value estimates. 4. HMMs are models designed to generate sequences of symbols. With your brand new HMM, you can generate (default == 10) sequences with a command like: /users/sista/svanvoor/H0K08a/session02/hmmer/bin/hmmemit yourHMM.hmm *Part 3: Validate HMM* Next, search your small database of positive examples with a command like: /users/sista/svanvoor/H0K08a/session02/hmmer/bin/hmmsearch YourHMM.hmm AllYourSequences.fasta Those who began with only a single sequence may see some of the positive examples getting poor Z-scores . *Part 3: Search full sequence database* Now, let's try it with a LARGER database. We have downloaded the complete SWISSPROT database -- *don't download this file*, it is very large. Just point your commands and tools to the file at: /users/sista/svanvoor/H0K08a/session02/uniprot_sprot.fasta Match your HMM with this curated protein sequence database. A command like... /users/sista/svanvoor/H0K08a/session02/hmmer/bin/hmmsearch YourHMM.hmm /users/sista/svanvoor/H0K08a/session02/uniprot_sprot.fasta ...should do the trick. Note that this database contains a massive amount of sequences, computation times up to 15 minutes are normal. Compare your results to those of your neighbors using different numbers of sequences. If you get tired of waiting, or are running out of time to complete your exercise session, you can get an idea of what the output looks like by creating and using a local copy of a small subset of the full protein file. Use the unix 'head -n' command for this, and cat its output into a temporary fasta file on your account. *Part 4: Align sequences with HMM* HMMs can be used to make multiple alignments by aligning sequences individually to the HMM. Align ALL the sequences to the model with a command like: /users/sista/svanvoor/H0K08a/session02/hmmer/bin/hmmalign -o output.alignment yourHMM.hmm AllYourSequences.fasta Here, /AllYourSequences.fasta/ is the full set of positive sequences forms your database. The output should look familiar: ... GLB$ANABR NH.I.T.R.K...I.....SAAEFGKIN.GPIKKVL.AS.KnFGDKY--- GLB$ARTSX DH.I.N.R.G...-.....-------TD.RSFVEYL.KE.S.LGDSV--- GLB$CALSO TH.K.T.R.G...I.....T--NMELFA.FALADLV.AY.M.GTTIS--- GLB$CHITH SH.K.S.R.-...A.....SPAQLDNFR.KSLVVYL.KG.A.TKWDS--- GLB$GLYDI RH.K.G.Y.GnkhI.....KAQYFEPLG.ASLLSAM.EH.R.IGGKMNAA ... *Exercise 2* Let's pretend that we were participating in the CASP competition. CASP stands for /Critical assessment of techniques for protein structure prediction/ and is held every other year. In the contest several /target protein sequences/ are proposed for which there was no known structure available at time of the competition. Experts worldwide are asked to use their programs to predict the structure for these target sequences. Later, when the structures are solved by x-ray crystallography or other experimental means, everyone meets to evaluate how well the computational prediction methods did. The results for the best predictions appear in a special issue of Proteins. In the fold recognition category of CASP, the participants are asked to find very, very remote homologies. They are judged not so much on the detailed accuracy of the three-dimensional coordinates that they predict (nobody using currently known methods would be judged as very successful if that were the case), but rather on whether they predict the overall fold of the protein correctly or not. Participants can do this by searching the PDB database of protein sequences whose structure is known, and predicting which if any sequences in PDB , will have a structure similar to that of the target sequence. Another possibility is to predict secondary structure of the protein sequence. *Step 1: Sequence selection* Go to the CASP2 homepage . Find the link to the page describing the target sequences that you are supposed to predict structure for. Go there. Click on target 31 . That is the one we will try. You get a page giving information about t31. This is what the CASP contestants were given as information about t31. Save sequence as t31.seq or download it here <./t0031.tfa>. *Step 2: BLAST search* Go to the BLAST database search page , paste the t31 sequence in, and do a BLAST search to find homologues of the query sequence in PDB (You can use basic BLASTP this time, but feel free to try any of the more advanced versions of BLAST as well. PSI-BLAST is generally the best, and is the most popular.) You should definitely find 1AGJ. It gets a great E-value. Look at the alignment and you see that this is t31 itself. Since the time of the contest, the structure of t31 has been solved an it has been deposited in the PDB database. You should get a few other "hits". Look at their E-values, and their alignments. List these other "hits" and their E-values, and for each one say if you think it is a real homology or a chance match. *Step 3: HMM search* Enough of BLAST . Let's try hidden Markov models (HMMs) and go to the UCSC HMM Applications page . Click on the /SAM-T02 Alignment, HMM, Database Query, and secondary structure prediction/ link . This will perform both a model library (template) search and build a SAM-T99 model of your query for a database (target) search, and then average the results. Type in your email address, paste in the t31 sequence, and submit your query. It might take some time to get your answer back by email and/or online. This script is taking the t31 sequence and scoring it against a collection of hidden Markov models, one model for each sequence in a select, representative subset of the PDB database. The target search is more complicated: it builds an HMM from your sequence, and then scores every sequence in PDB against this one HMM. Actually, the process, called SAM-T02, is a bit more involved than that. First it finds some close relatives of your query sequence in the nr database using a variant of BLAST called WU-BLAST, then it uses these to build an HMM. Then it uses this HMM to search the database again, and finds some more sequences. It repeats this process a third time, creating a final HMM. It uses this final HMM to score all sequences in the database you specified on the web page (in this case PDB ), and reports the good hits. It learns more about the family of proteins you are searching for in each of these three iterations. PSI-BLAST works in a similar fashion, but is not as sensitive as SAM-T02 for very remote homologies. Look at the file you got back from the SAM-T02 server. For every hit that scored an (estimated) E-value above 1.0, it has listed the sequence name and the score for this hit in the output file. It also gives the alignments for the top ten hits, although not in as nice a format as BLAST . Note that one of the hits is to the protein 5ptp. Are there parts of this alignment that look convincing, and if so, which parts? Do you think these sequences are remote homologs or is this just a chance match? If it takes too long, you can look at these precompiled result files (from the older SAM-T99 server): * Alignment: in html or in text format. * Database Search: hits and scores and alignment view * Alignment Sequence Logo: in eps format * Secondary Structure: in fasta or in rdb format. *Step 4: Structure Prediction* Another service you can use is the PredictProtein Server . Here you can upload your sequence and send it to many different prediction services around the world. Try out some of them (check out their respective web pages for more information about the method). Compare the results with the predictions obtained with SAM-T02. Click here to have a look at the results file if you have to wait too long. *Exercise 3* Try this exercise if you have some time left. The following sequence was one of the CASP5 competition. To further analyze this sequence try the following procedure and also try to answer the questions: 1. Go to the NCBI BLAST web-site, and search the PDB and NR databases for this sequence (remember to use blastp). You may not get any hits at NCBI with the default parameters. You can try modifying the parameters. What are the top two or three hits in PDB ? How many hits that good would you expect to see by chance? Are they real experimental models or theoretical models? What are the top few hits in NR? If you were trying to choose probable homologs from the BLAST search to build a model for the family, which ones would you include? 2. Build a multiple alignment of possible homologs for the target sequence. 3. How many sequences are there in the multiple alignment? What differences are there between the sequences found this way and the ones found by thresholding BLAST results in nr? Do the alignments of the sequences found by both differ? 4. Build an HMM from the multiple alignment and to score each of the sequences in the alignment. 5. What is the worst-scoring sequence in your alignment, and what is its score? Compare the E values reported by BLAST with the E values from this HMM---are they comparable, or are there huge discrepancies? 6. The previous question was not really a fair one---the sequences being scored were the same as the ones used for building the model, so the model should score them as excellent matches. To get a more comparable set of numbers, create a model from just the original sequence, and score the same set of sequences you scored for the previous question. 7. What is the worst-scoring sequence of the alignment ? K.U.Leuven ------------------------------------------------------------------------ Copyright © 2003-2007 Katholieke Universiteit Leuven Maintained by Steven Van Vooren Last update: 2006/11/13