Introduction to Bioinformatics
Transcript
Andy Baxevanis: All right, good morning, everyone, and welcome to week two or this year's current topic series. Let's go ahead and get the formalities out of the way right from the start. So my CME disclosure statement, "I don't have any relevant financial relationships with any commercial interests." Okay, so with that out of the way, my job today in the same way that Dr. Green laid the groundwork for upcoming lectures in this series by providing you a broad overview of the field of genomics last week, I'm going to be providing you a solid foundation for the upcoming lectures devoted to bioinformatics. I mentioned last week that genomics and bioinformatics go hand in hand with one another; they're inexplicitly linked. And Eric really reinforced that sentiment when he showed you this figure from NHGRI's current vision document, showing the spectrum of genomic-based research going
from the understanding of the structure of genomes all the way through to our efforts focused on improving the effectiveness of healthcare. Now, our ability to work across this entire spectrum really rests, in large part, on being able to apply computational approaches across the board. To analyze the kinds of data that are generated in the course of whole genome sequencing efforts, genome-wide association studies, clinical sequencing efforts, and pharmacogenomic studies, or any of the other many kinds of genomic science you'll be hearing about throughout this series. So given, again, that inextricable relationship between genomics and bioinformatics, what we're going to go through over the next two weeks is as gentle of an introduction as I can give you to some of the major tools used in bioinformatics. You're going to see the tools and the concepts underlying these tools again and again throughout this series. So
it's really important to have a basic understanding of the theory that underlies these techniques to start taking this technique -- these techniques away from the realm of the black box. So I hope you'll find this information useful, and that you'll pick up a few strategies along the way that will hopefully be of practical use in your own studies. So with that, let's just start right off by reinforcing the importance of alignment as one of the most powerful approaches that we have in the study of sequence data, specifically with respect to determining similarity and deducing homology. So start off with a very basic question: why bother constructing sequence alignments; what do they do for us? And that question applies whether we're talking about a paralyzed [spelled phonetically] alignment, where we're taking two individual sequences, and aligning them to one another, or to a
multiple sequence alignment, where we're looking at a collection of presumably related sequences. So in either case what we're trying to do is get a measure of relatedness between either nucleotide or amino acid sequences, and once we have that measure of relatedness it allows us to draw certain biological inferences. So we might find structural relationships between these sequences, functional relationships, or evolutionary relationships. Now, before we start to talk about the technique we need to define a couple of key terms; it's important to use the right terminology when we talk about these phylogenetic relationships. So the first term we're going to talk about is similarity. So what I'd like you to do is imagine you have two sequences, A and B, and that you align those two sequences to one another. And the easiest way to convey how related those sequences are to one another
is to just simply count the number of matches and mismatches along that alignment. So that gives you the quantitative measure; again similarity: it's based on an observable -- in this case how many positions are aligned with one another? We usually do express this as a percent identity, and by looking at this it allows us to quantify changes that we see as two sequences diverge from one another, whether we have substitutions, insertions, or deletions. It'll also, from a functional standpoint, allows us to identify residues that are crucial for maintaining structure, and by extension, function. If we start seeing very high percentages of sequence similarity, high degrees of sequence similarity, what that might be telling us is that these two sequences in this paralyzed alignment have a common evolutionary history, or possible commonality in biological functions. So for
example, we might be able to identify regions that are important from a functional standpoint when thinking about things at the protein level, or regions that are important to expression when we're looking at sequences at the nucleotide level. The second term we need to define this morning is the one that is most often misused, and that one is homology. So what homology is, is the conclusion that we get by looking at similarity; it implies an evolutionary relationship. When there is homology between sequences those sequences are termed homologs. So these are genes that have arisen from a common ancestor. And unlike similarity -- that is the quantifiable term -- this is the conclusion, again. So either genes are, or are not homologous; we don't measure this in degrees. And just to drive home the point, a quote from Walter Fischer who was one of the grandfathers of
bioinformatics: he says -- it's worth repeating here, that "homology, like pregnancy, is indivisible; you're either homologous/pregnant, or you are not." So again, this is the conclusion. Now, that term, homolog, actually breaks down into several subtypes. It might describe several different types of evolutionary relationships, and we're going to focus specifically on two of them here. So the first type of homology has to do with orthologs. So orthologs are genes that have diverged as a result of a speciation event. So they're direct descendants of a sequence in a common ancestor, they more -- likely have similar domain and three-dimensional structure; because of that, they usually retain the same or very similar biological functions over evolutionary time, and we can use that information to predict gene function in novel genomes that we're starting to assign functions to newly identified genes. So put very simply
orthologs can be thought of as the same gene in different species. The second term, the second type of homology we're going to talk about, is paralogy. So when we have paralogs, these are just genes that arose by the duplication of a single gene in a particular lineage. So these might be less likely to perform similar function, but they can take on new functions over evolutionary time. So this is where Mother Nature gets to be inventive, providing some insight into evolutionary innovations; taking bits and pieces of proteins, restructuring domains in order to accomplish new jobs within the cells. So again, put simply paralogs can be thought of as similar genes in the same species, adapting or co-opting a preexisting gene product for new biological functions. So just to make this a little bit clearer, because the definitions are a little hard
to follow, but so let's look at a picture. So in this case we have a gene, gene alpha, in a common ancestor and along the -- oh, evolutionary time there's been a couple of speciation events that have given rise to three species. Each one of them has an ortholog to gene alpha, Gene 1, Gene 2 and Gene 3. So each one of these three genes arose from this common ancestor alpha. Now, if we go back a little further in evolutionary time, we roll back the clock a bit, and we consider the possibility of a gene duplication predating alpha. So we have a gene duplication here at the base of the tree giving rise to genes alpha and beta in this case. So alpha went along and gave rise to three orthologs; beta in this case underwent some similar speciation events -- not exactly the same -- but gave rise to three genes, 4, 5, and 6. So, how are these things all related to one another?
Any of the Genes 1, 2, and 3 are orthologous to one another; Genes 4, 5, and 6 are also orthologous to one another, because again, in each case they had a common ancestor. But now, if we take any pair of 1, 2, and 3 versus 4, 5, and 6, those are the paralogs, because they go way back to this gene duplication event; that's how they're related to one another. So that takes care of the definitions. Now, how do we actually identify the orthologs, the same gene in different species? And the most common way, and most straightforward way we have of identifying candidate orthologs is by looking for reciprocal best hits. And when I say candidate orthologs, it's very important -- the word candidate really, really is important, because, keep in mind that a lot of the things we're going to talk about through this series deal with computational predictions, so I really need to underscore
the importance of being able to experimentally verify a lot of the things that you do using these computational techniques. Okay, so let's say we start with a gene that we're interested in from a particular organism, and we -- as a first step here, we just do a sequence similarity search against all of the genes in a second organism. And what we might find is something that looks like this, a series of hits using some sort of sequence similarities search method that identifies a series of genes that are similar to the one that we started with. Now, I have the first one here marked in yellow, so we're going to just assume that based on some scoring
method, this one is the most related to the red one that we started with. Okay, so that's the first step. Now, where does the reciprocal part come in? Now, what you do is you take this yellow sequence and do the sequence similarity search in the opposite direction. You go -- now take this, and search it against all of the genes in Organism 1. And if you're lucky, what you'll find is that the best hit in both directions involve these two genes. So the red one is most related to the yellow one in Organism 2; then, when you use the yellow one as the search query, it's most related to the red one in Organism 1. Okay, so that's the general idea. Now for the specifics. We have two broad types of alignment method at our disposal. So the first one are called global sequence alignments. So what I want you to do is imagine that you have two full-length sequences, either two
genes or two protein sequences, and you now align them across their entire length. So we're going to force an alignment over the entire length of these sequences. So this works really well if you have sequences that are of similar length, but the problem now is that, as these become more divergent, as they become more dissimilar to one another, the global alignment methods tend to miss important biological relationships; because you're trying to force an alignment over the entire length of these sequences, it might mean that you're just not aligning important structural or functional domains. So from a biological point of view, a slightly different approach is better, and that's what are called the local sequence alignments. So here, we try to find the most similar regions in two sequences that are being aligned with one another, and the glorified term for this
is paired subsequences; it just means that we're just looking for two regions within an entire sequence that align with one another. So any regions, when we do these local sequence alignments, outside the area of the local alignment, we just go ahead and exclude those. By doing this, we're aligning two sequences; we might find more than one local alignment that could be generated for any two sequences that we compare. So this works really well for sequences that share some similarity, but not high degrees of similarity, or for sequences of different length. So again, I'll just emphasis that is really the best way to compare sequences from a biological standpoint, especially if we're trying to deduce evolutionary relationships. So the approach of choice for biological discovery. Okay, so let's say we have now aligned two sequences, we talked about the concept of
similarity we're going to try to look for percent identity, some metric to allow us to quantify how good the alignment actually is. How do we actually deduce that number, how do we measure how good the alignment is between Sequence A and Sequence B? So to do that we use something called scoring matrices, and these scoring matrices quite simply is our empirical weighting schemes that we use to assign these numbers, these numerical values. And what's in those scoring matrices is information concerning the physical, chemical, and biological characteristics of either nucleotides or amino acids. So they take into account things like side chain structure, their chemistry, the function of particular side chains based on what we know about how -- especially on the amino acid side of the house -- how these particular amino acids actually are involved in structure and function. So we know that
things like cysteine and proline residues help to keep parts of a protein together; tryptophan has a bulky side chain, so it can only be accommodated in certain parts of a protein; things like lysines and arginines, they're positively charged, they're very important, particularly in the context of DNA binding proteins, because you need those positively charged residues to bind to the negatively charged backbone of the DNA. Okay, so in the construction of these scoring matrices, we try to take into account two major factors. First is conservation: which of the residues can substitute for any other residue, and not adversely affect the function of the protein? So we know that things like isoleucines and valines can substitute for one another in a protein sequence, because they're both small and they're hydrophilic. Things like serines and threonines, they're
both polar so we often see that substitution. So the basic idea here is we want to just keep track of charge, size, hydrophobicity, and other physical, chemical factors, again, to try to see, when we can't have an exact match between two sequences, what's the next best thing? The other factor is frequency. If we look at the entire constellation of proteins, all of the protein sequences available to us, how often do we see any one of those amino acids amongst the entire constellation of proteins? Some are more rare; some are more frequent, and that becomes important. Okay, so why should you actually care about any of this? Every single time you do any sort of sequence comparison, whether it's two sequences to one another, A to B, or a Sequence A to an entire data base, like GenBank, these scoring matrices are being used in the background; they appear in every single analysis involving sequence comparison. They also,
as you'll come to hopefully appreciate, they implicitly represent evolutionary patterns. So the choice of matrix really can strongly influence what results come out of the methods that you apply to these alignments. So the default option may not always be the best choice, and so it's -- becomes important for us to talk about how these scoring matrices are actually constructed. What guidelines go into putting them together? All right, so let's start on the easier side of the house. If we look at a scoring matrix that -- if we're doing a nucleotide-based comparison -- we only have four nucleotides A, T, G, and C -- and if we align two sequences with one another, all we're going to do is just apply a very simple matched or mismatched scheme. So anytime you have two -- a particular position in an alignment where the two nucleotides match which one -- one another, you're going
to assign a positive value; any time you have a mismatch between the two, you're going to subtract points. So in this case, the match gets you two points; the mismatch loses you three. The matrix, as you'll see here, you have the A, T, G, and C going across the top, the same residues going down the side, and just the way it works, that for every position in the matrix -- let's say you have a T aligned with a T -- you just look for the intersection, and you'll see that that's -- in this case it's an exact match, so that's the plus two. You'll see the plus twos all across the diagonal representing the exact matches, and the minus threes in the other positions. This assumes that each nucleotide occurs 25 percent of the time. Okay, so this works really well at the nucleotide level, because nucleotides are not all that chemically dissimilar from one another, but as we've already alluded to, the new amino
acids are very different from one another, a much more complex picture. So we now go to something that looks like this. So this matrix is called a BLOSUM62 Matrix, and again, we have all of the amino acids going across the top, all of them going down the side. So again, I want you to imagine, now, in this case a protein sequence alignment, Sequence A with Sequence B. We're going to look at a particular position, and see how many points we can assign to a match at that position. So we're going to image where we've got a tryptophan in Sequence 1 and a tryptophan in Sequence 2, so we're going to look for where the W intersects with the W, and that give us in this case 11 points. Now, if you look at the diagonal here, unlike the case we saw before, where no matter which nucleotides we were aligning and getting exact matches, where in the previous case we were assigning
the same value regardless, here on the diagonal you'll see that the values change. The 11 is the highest number in the diagonal, and that represents the frequency part of constructing the matrices. This is the most rare of the amino acids, so when you get an exact match you want to give it more points than you would if you had a more common amino acid aligning with each other. Okay, now to the point of substitution. All right, so let's say, instead of having an exact match of tryptophan for tryptophan, this time we've aligned a tryptophan with a tyrosine. So instead of W-W, we now have a W against a Y. We take a look here, we see now in this case we would only give it two points. So it's still a positive score, which represents that it's a conservative substitution -- those two things can substitute for one another, and in most cases not adversely affect the structure or function of that particular
protein -- but the lesser value here represents that it's just not as good as an exact match. Let's just take as a final example a mismatch. So let's say you've now aligned the cysteine with a glutamine. Those two things are not known to be able to substitute for one another, so here we are to subtract points; in this case, minus three. So the way the general rules work, just in summary, you get the most points for an exact match with the rare amino acid scoring more points than the common amino acids; you lose points for conservative substitutions, and you lose points for mismatches. Okay, now, so the matrix we were just looking at was something called a BLOSUM62 Matrix. It is part of a family of matrices called the BLOSUM Matrices. These we're developed by the Henikoffs at the Fred Hutchinson Cancer Research Center. And that's part of the good news: you don't have to derive these matrices yourself; you just need to know which ones
to pick. So as far as the BLOSUM Matrices go, what they were designed to do is look for differences in conserved un-gapped regions of our protein families, which the Henikoffs termed as blocks. These are directly calculated based on local alignments. So these are all based on observables; so, using substitution probabilities, again, the concept of conservation, and the overall frequency of amino acids. Because of the way these were constructed, using known protein families, they're really sensitive to detecting structural or functional substitutions, and they perform better than other matrix series that are out there, specifically the PAM Matrices. The PAM Matrices were developed way back in the distant past, as far as bioinformatics goes, at a time where very little sequence information was available; so we only had sequence data available for globular proteins, they were -- the matrices were extrapolated from closely related proteins, and you'll
often see them as an option for a choice in phylogenetic programs, but I would recommend that you pick these BLOSUM Matrices instead, because just bottom line, they really are useful in identifying both closely and distantly related sequences. So that's a big plus. All right, so now here's where evolution comes into play. When I showed you the BLOSUM Matrix earlier, that was a BLOSUM62 Matrix. So there's always a number that follows the word BLOSUM. And what the N represents is the degree of similarity of the sequences that were used to construct the matrix. So in -- so here you've got -- in the case of a BLOSUM62 Matrix that means that the sequences used to construct the matrix shared no more than 62 percent identity. In the construction what happens is that the contribution of sequences that are higher than the threshold are clustered and replaced by a single sequence that represents
the clusters. So what's the reason for doing this? Last week Eric showed you the phylogenetic range of a number of vertebrate species whose genomes had been sequences, and while we have more and more whole genome sequences in hand from a wide variety of organisms, the genome sequences that we have available to us are not uniformly distributed; we have multiple sequences for some organisms. So we really need to just remove that bias from the data set, and that bias tends to be more toward closely related sequences. We want to do this, because we don't want to miss anything that might be biologically relevant. So in practice how does this work? Let's say we start with a protein family. Here we've got one with six sequences in the group. Any place you have an exact match you'll see an asterisk at the top of the column. Let's say we're trying to construct a BLOSUM80 Matrix.
So we're going to cluster together any of the sequences that share 80 percent or more similarity with any of the other sequences in the set. So in this case we end up with three clusters, one that has sequences, one that has three, and one that just stays by itself; it doesn't cluster with any of the other sequences. We then, now collapse this down, representing these six sequences as three. So these three sequences are now represented by this single sequence, these two sequences are represented by this single sequence, and now we use this to construct the matrix. So what are the implications of this? When we do the clustering, again, we reduce this contribution of closely related sequences; so we remove the bias that I mentioned earlier about substitutions that occur in the most closely related members of a family. But here is the more important thing: when you reduce N, the value of N, you're going to get more
distantly related sequences; if you increase N, you're going to get more closely related sequences. So, here is your first cheat sheet of the morning; put a big star next to this one, and -- as far as which one of these matrices to choose. The default by -- if you're going to do a BLAST search, at NCBI it's going to be BLOSUM62. The reason it's the default is, just through a lot of very controlled trials, it has been seen as being the most effective in finding all potential similarities, and you're going to get percent similarities that go down as far as 30 to 40 percent. Okay, as we move up the numbers here, as the number get higher, they're going to be -- we're going to get sequences that are more closely related. So by the time we get to BLOSUM90, we're going to have maybe shorter alignments, but they're going to be much more similar to one another
in the range of 70 to 90 percent. We go in the opposite direction, we're going to find more distantly related sequences; so longer alignments that might be weaker, and you can push it down to probably around 30 percent. Now, of course the question goes back to which one to choose? If you know what you're looking for in advance, if you want to find things that are highly similar, you're going to push to the higher end of this range; if you want to look for things that are more distantly related, you can go to the lower end of this range, but the method that I would strongly recommend you use is something that Steve Altschul, who is a person who developed BLAST, talked about in a paper called -- he called it the True -- "Three Matrix Strategy." And so, instead of doing a single search, instead you're going to do three; you're going to pick 62 as a starting point, pick one that is going to give you more distantly related
results, one that's going to give you more closely related results. And what you're going to find is you're going to get three different sets of results back. They'll be highly overlapping, but one -- some of them will pop out certain sequences if the other ones won't. So again, I would strongly recommend you use this three matrix strategy as you learn these techniques, as you become more comfortable, more familiar with them, but the bottom line to all of this is that no single matrix is the complete answer for all sequence comparisons. All right, so one last thing we need to discuss before we get into talking about BLAST, is GAPS. So again, I want you to imagine Sequence A and Sequence B. And when we do these alignments, often you'll see we'll introduce GAPs in order to improve the alignment, so we get these local alignments better. So again, used to improve the alignments between these two sequences.
More often than not, these are used to compensate for insertions and deletions, and this is really important, because the gaps -- because we're representing insertions and deletions -- they represent biological events, so you can't just keep putting these gaps in willy-nilly to improve your alignment, because you're not actually reflecting biology by doing that. So you need to keep them to a reasonable number, again, to not reflect a biologically implausible scenario. And a good rule of thumb for this is about one gap per 20 residues, and it depends on the case, but that's a good starting point. Now, if you think again about your alignment, think about the scoring matrices we've been comparing, single positions, a letter in one sequence to a letter in another sequence, but now we have a situation where we have a letter in the one sequence and nothing in the other sequence; we have a gap there, so we can't score this simply as a match or a
mismatch. So how do you score an amino acid against essentially nothing? The method we used to do this is -- involves something called the Affine GAP Penalty, and so what this does -- all you need to know about this is that any time you open a gap, you assess a penalty; anytime you extend the length of a gap, you assess an additional penalty. So this deduction is governed by a formula right here, G+L(N), where G is the gap opening penalty. So as soon as you introduce the first position of a gap in a nucleotide alignment, you're going to subtract five points; on a protein alignment you're going to subtract 11 points. As you make that gap longer, you apply the gap extension penalty. So the second term, L(N), so it's the penalty times the length of the gaps. So every additional position you add to that gap in a nucleotide alignment, you're going to subtract an additional two points; in a
protein alignment, you're going to subtract an additional one point. So let's say we have a gap of length two in a protein alignment. So G here is 11. If the gap is of length two, so L is one times two, the length of the gap. So 11 plus two is 13. You would subtract 13 points for a gap of length two. You can -- as you'll see as we go through the methods, you can actually change the gap penalties to make the introduction of gaps either more or less permissive. So if you want things -- if you want fewer gaps, you can adjust for that; if you want to allow additional gaps you can do that as well. All right, so with all of that, half an hour later, by way of introduction we finally get to BLAST. It's finally time to talk about BLAST, and this is really the most important technique in bioinformatics. We're going to hit this pretty hard today, because I want
to make sure you know how to use it properly. And -- because there, unfortunately, are many cases in the literature where wrong biological conclusions have been made, because of not interpreting BLAST results properly. Either the people doing the analyses didn't know how to use it, or didn't really know what the statistics meant. The most important take-home message I can give you today that applies to this and any of the other methodologies that you're going to learn throughout the 14 weeks of this series is that, just because something appears on your screen or on a piece of paper in the results does not automatically imply biological significance. So we're going to talk about what does imply significance in a moment. Okay, so what is BLAST? BLAST: a basic local alignment search tool. What this does is it looks for high-scoring segment pairs, HSP. So again, just a glorified term for just two
sequences, a pair of sequences, that can be aligned with one another. And when we do that alignment, we're going to try to make that alignment as long as possible in a statistically robust way, and I'll tell you about that in a moment. The score has to break a score threshold, S, before it's reported to you, and the alignments can be either gapped or un-gapped. Again, because we're looking for these local alignments within entire sequences, the results are not going to be limited to just the best high-scoring segment pair for the two sequences being aligned, and in fact, I'll show you an example that will produce two high-scoring segment pairs. There are different flavors of BLAST, and three that are used most commonly are the first three on this slide. So BLAST N -- N is for nucleotide. So we start with a nucleotide sequence, and we compare that against a collection of nucleotide sequences. BLAST P -- P is for
protein. So again, the comparison is of a protein sequence to a database of protein sequences. BLAST X is a little bit different; here we're going to translate the query into a protein sequence before we do the comparison. So, yes, we start with a nucleotide sequence, we do the six-frame translation, we take the protein sequence arising from that, and then compare them against a protein database. So this is actually a methodology that's much more sensitive than direct nucleotide searches. The last two are on the slide for sake of completeness. I can't remember the last time I ran one of these. The T in these both stand for translated, and you can see for yourselves what the query and the target sequences actually are, but the comparisons here are all done at the nucleotide level. All right. So how does the method actually work? So we're going to start with a sequence
of interest. We have an amino acid sequence here, our query. And you'll see I have three letters in the middle of the sequence in red. The P, the Q, and the G. And we're going to start our search with this query word of length three. And what happens in reality is it starts at the one end, at the end terminal end, and it just keeps moving along, the window moves along. So it starts with a GSQ, and the SQS, and moves along. But just for sake of symmetry on this slide we're going to start in the middle. What we want to do is now compare this to all of these sequences in a protein database, starting off just looking for other occurrences of the P, the Q, and the G in that order, but we also want to look for conservative
substitutions, because we might find some interesting biological relationships by doing that. So when we do that we establish something called the neighborhood. So the neighborhood starts off with the exact match, the PQG, and that has a score. So if you were going to go back to your hand outs to the slide that shows the BLOSUM62 matrix, and did -- and find the intersection of the P for the P, the Q for the Q, and the G for the G, you would find that the P would give you seven points, the Q would give you five, and the G would give you six for a total of 18. What I've done here on the slide is I've just changed the middle position to show those conservative substitutions. So we've got the PQG, EG, RG, going down the slide. And you'll see that because these matches are not exact at that position, as you would expect, because now you know how the scoring matrices work, the
score also goes down. And of course, you would do this at all three of the positions. Now, at some point you have to say, well, maybe we're kind of going outside of the neighborhood. So the method will automatically draw for you a line at what it calls the neighborhood score threshold; BLAST computes this for you. In this case, T is 13 given the query word that we started with, so anything above the line, everything from 13 and up, we keep for the next step. Everything from 12 and down we throw out. All right. So let's take our neighborhood, put it at the top of the next slide, and here's the sequence now that we have that we started with. Here's our PQG, our query word. You'll notice, now I have it aligned with a sequence that was found, the subject, but in this case it's not a PQG; it's the P, the M, and the G, and that's perfectly fine, because if we look back at the top,
PMG is in our neighborhood. Now, just qualitatively you can see how good the alignment is by looking at this middle row. So any place you have an exact match you see the letter repeated; any place you have a conservative substitution you'll see a plus sign; any place you see a blank is just a mismatch. All right, but we want to be able to apply numbers to this, and we want to try to make this alignment as long as possible. So here we are, we've got this alignment starting at three, but you'll see that there's many amino acids. Here it's -- the alignment is a blank-40. You go as far as you can in both directions, aligning as many of the characters as you can. So the question of course then becomes, how far is too far? Okay. So here's our alignment again. And here's just a graph of how the scoring is working out for this particular alignment. On the X-axis here we have the extension. How many positions have
we aligned? On the Y-axis is the cumulative score. So the scores that are coming from our scoring matrix as we just keep adding additional positions to this alignment. So if we start out here, the extension is three, what we started with, the query word. We're above the threshold cutoff, as you'll remember from the previous slide. So as we go in both directions we're going to assume that we're having more matches than we do mismatches, more positive scores being assessed than negative scores being deducted. So the curve is going to go upwards. At some point, we're going to break a threshold, the score threshold, okay. So this -- from here up, there are the things that are all reported to you in your BLAST result, and herein lies pitfall number one. Breaking the score threshold does not imply biological significance, and I'll show you what does momentarily. We don't pay attention to the scores, but the scores are used to
calculate the number we are going to pay attention to shortly. Okay. So we're going to keep going up, we're going to keep assuming that we're matching more than we're mismatching, but at some point we're going to have gone too far. We're not going to be able to align any more residues with one another. We start thinking about that matrix again, and all those negative values in the matrix. So as we go out further we're going to start subtracting points faster than we are actually adding them. At some point, we're going to leave the top of this curve and go down a certain amount, the significance delay -- decay, excuse me -- that represents both the mismatches, which assess negative points, and the gap penalties, which assess negative points. When you've reached the significance decay, the method says, okay, I've gone far enough; I'm going to go back to the peak of this curve. That's going to represent the
longest alignment I can put together, the length of my high-scoring segment pair. Okay. So once we've done that we're going to have to think about doing a probability calculation. So again, why do we use the probabilities instead of the scores? Now that you know about the scoring matrices, the answer will hopefully be easier to understand. I want you to imagine two different alignments of equal length. One is composed primarily of common residues.
One is composed primarily of rare residues. Okay, and the composition of those alignments are going to be reflected in the score. Even if the number of positions in those two alignments that match one another is exactly the same, you're going to end up with two very different scores, because of the frequency information that's captured within the scoring matrices. So a better measure is needed to be able to compare one alignment to the next, any two alignments to one another, and that again is where the probability comes in. So this is the equation, the Karlin-Altschul equation that actually governs that calculation. You'll see that in the exponent here is the S -- so that is the normalized score -- and the other factors that go into the calculation of this score. Again, you don't have to do this; the BLAST method will do it for you, but what that value, E, represents is the number of
high-scoring segment pairs found purely by chance. So this is really the number of false positives that you have -- have come out of your BLAST search. We want that value of E to be as low as possible. Lower values signify higher similarity. Okay. So rule number one. Again, put a big star on this one. So what we're going to look for as far as probability values, if we're comparing two nucleotides sequences to one another, we want that E value to be 10-6 or lower. If we're looking at protein sequences, we want that value to be E to the -- 10-1/3 or lower. And again, keep in mind that when we talk about protein similarity searches that means both BLASTP and BLASTX. Remember the BLASTX; we start with the nucleotide sequence, but the comparison's done at the protein levels, so you're going to use the protein statistics here. All right, so let me take you through actually how you're going to do this when you get back
to your offices and to your labs. So we're going to pretend we're at the computer. You have the screen captures in your handout. You might want to look at the PDFs on your monitors back at your desk, because they'll be a little bit easier to read, but the most important thing to do is practice, and just take some sequences that are of interest to you and the biological questions you're trying to answer, and use the methodologies that I'm going to show you today. All right. So we're going to start off at NCBI's homepage, which there is the URL, ncbi.nlm.nih.gov. The most popular things that are on this website are shown in the right sidebar, and there is a direct link to BLAST there. So we're going to go ahead and follow that link, bringing us to the BLAST homepage, or you can just go directly by typing in the full URL. So let me quickly orient you to this page. At
the top of the page you can just go directly to full genomes, and search each one of those genomes individually. The middle of the page, which is where the action is today, is where all the basic BLAST searches are. And at the bottom are a series of specialized BLAST searches, which we'll talk about momentarily. So we're going to start off doing a protein-based search; so a protein BLAST. The link is right there, and if we go ahead and click that it will take us to the BLAST search page. But before we do that we need a sequence that we actually are going to use as the query. So what I put together for all of you is a webpage. Here is the URL that has the query sequences for all of the examples that I'll be showing you both this week and next week. So this is a great way for you to go back to lab and do a little bit of practice on your own, reproducing what we're doing in the lecture this morning. Okay. So we're going

Ask anything
We've read this whole study set, so questions about it get the best answers.