Professional Documents
Culture Documents
Outline
Introduction Definitions Biological context of pairwise alignments Computing of pairwise alignments Some programs
VI - 2004
Page 2
VI - 2004
Page 3
Goal
Sequence comparison through pairwise alignments
Goal of pairwise comparison is to find conserved regions (if any) between two sequences Extrapolate information about our sequence using the known characteristics of the other sequence
THIO_EMENI THIO_EMENI ??? ??? GFVVVDCFATWCGPCKAIAPTVEKFAQTY GFVVVDCFATWCGPCKAIAPTVEKFAQTY G G ++VD ++VD +A +A WCGPCK WCGPCK IAP IAP +++ +++ A A Y Y GAILVDFWAEWCGPCKMIAPILDEIADEY GAILVDFWAEWCGPCKMIAPILDEIADEY
Extrapolate Extrapolate
???
THIO_EMENI
SwissProt
VI - 2004
Page 4
Relationships
Same Sequence
Same Origin
Same Function
Same 3D Fold
VI - 2004
Page 5
Example: An alignment
- textual view
Two similar regions of the Drosophila melanogaster Slit and Notch proteins
970 980 990 1000 1010 1020 970 980 990 1000 1010 1020 SLIT_DROME FSCQCAPGYTGARCETNIDDCLGEIKCQNNATCIDGVESYKCECQPGFSGEFCDTKIQFC SLIT_DROME FSCQCAPGYTGARCETNIDDCLGEIKCQNNATCIDGVESYKCECQPGFSGEFCDTKIQFC ..:.: :. :.: ...:.: .. : :.. : ::.. . :.: ::..:. :. :. : ..:.: :. :.: ...:.: .. : :.. : ::.. . :.: ::..:. :. :. : NOTC_DROME YKCECPRGFYDAHCLSDVDECASN-PCVNEGRCEDGINEFICHCPPGYTGKRCELDIDEC NOTC_DROME YKCECPRGFYDAHCLSDVDECASN-PCVNEGRCEDGINEFICHCPPGYTGKRCELDIDEC 740 750 760 770 780 790 740 750 760 770 780 790
VI - 2004
Page 6
Example: An alignment
- graphical view
Comparing the tissue-type and urokinase type plasminogen activators. Displayed using a diagonal plot or Dotplot.
Tissue-Type plasminogen Activator Urokinase-Type plasminogen Activator URL: www.isrec.isb-sib.ch/java/dotlet/Dotlet.html
VI - 2004
Page 7
Some definitions
Identity Proportion of pairs of identical residues between two aligned sequences. Generally expressed as a percentage. This value strongly depends on how the two sequences are aligned. Similarity Proportion of pairs of similar residues between two aligned sequences. If two residues are similar is determined by a substitution matrix. This value also depends strongly on how the two sequences are aligned, as well as on the substitution matrix used. Homology Two sequences are homologous if and only if they have a common ancestor. There is no such thing as a level of homology ! (It's either yes or no)
Homologous sequences do not necessarily serve the same function... ... Nor are they always highly similar: structure may be conserved while sequence is not.
VI - 2004
Page 8
More definitions
Consider a set S (say, globins) and a test t that tries to detect members of S (for example, through a pairwise comparison with another globin).
True positive
A protein is a true positive if it belongs to S and is detected by t.
True negative
A protein is a true negative if it does not belong to S and is not detected by t.
False positive
A protein is a false positive if it does not belong to S and is (incorrectly) detected by t.
False negative
A protein is a false negative if it belongs to S and is not detected by t (but should be).
VI - 2004
Page 9
Definition example
The set of all globins and a test to identify them
Consider: a set S (say, globins: G) a test t that tries to detect members of S
(for example, through a pairwise comparison with another globin). Globins
G
True positives True negatives False positives False negatives Matches VI - 2004
G G G G
X
G
X X X
Page 10
Selectivity
Ability of a method to reject negatives, irrespective of how many false negatives are rejected.
Greater sensitivity Less selectivity True positives True negatives False positives False negatives VI - 2004 Page 11 Less sensitivity Greater selectivity
Seq Seq A AGARFIELDTHELASTFA-TCAT GARFIELDTHELASTFA-TCAT ||||||||||| || ||||||||||| || |||| |||| Seq B GARFIELDTHEVERYFASTCAT Seq B GARFIELDTHEVERYFASTCAT
errors / mismatches insertion
Tolerant to errors (mismatches, insertion / deletions or indels) Evaluation of the alignment in a biological concept (significance)
VI - 2004
Page 12
but also:
CGATGCAGACGTCA CGATGCAGACGTCA |||||||| |||||||| CGATGCAAGACGTCA CGATGCAAGACGTCA
Number of possible alignments for 2 sequences of length 1000 residues:
VI - 2004
Page 13
Alignement evaluation
What is a good alignment ?
We need a way to evaluate the biological meaning of a given alignment Intuitively we "know" that the following alignment:
CGAGGCACAACGTCA CGAGGCACAACGTCA ||| ||| ||| ||| |||||| |||||| CGATGCAAGACGTCA CGATGCAAGACGTCA
is better than:
ATTGGACAGCAATCAGG ATTGGACAGCAATCAGG | || | | || | | | ACGATGCAAGACGTCAG ACGATGCAAGACGTCAG
VI - 2004
Page 14
Scoring system
Simple alignment scores
A simple way (but not the best) to score an alignment is to count 1 for each match and 0 for each mismatch.
CGAGGCACAACGTCA CGAGGCACAACGTCA ||| ||| ||| ||| |||||| |||||| CGATGCAAGACGTCA CGATGCAAGACGTCA
!Score: 12
ATTGGACAGCAATCAGG ATTGGACAGCAATCAGG | || | | || | | | ACGATGCAAGACGTCAG ACGATGCAAGACGTCAG
!Score: 5
VI - 2004
Page 15
Substitution matrices
In proteins some mismatches are more acceptable than others Substitution matrices give a score for each substitution of one aminoacid by another
VI - 2004
Page 16
Substitution matrices
Example matrix
(Leu, Ile): 2 (Leu, Cys): -6 ...
(log-odds matrices)
Negative score: the amino acids are dissimilar, the mutation from one into the other
occurs less often then expected by chance during evolution
PAM250
From: A. D. Baxevanis, "Bioinformatics"
VI - 2004
Page 17
Matrix choice
Different kind of matrices
PAM series (Dayhoff M., 1968, 1972, 1978)
Percent Accepted Mutation. A unit introduced by Dayhoff et al. to quantify the amount of evolutionary change in a protein sequence. 1.0 PAM unit, is the amount of evolution which will change, on average, 1% of amino acids in a protein sequence. A PAM(x) substitution matrix is a look-up table in which scores for each amino acid substitution have been calculated based on the frequency of that substitution in closely related proteins that have experienced a certain amount (x) of evolutionary divergence.
! Based on 1572 protein sequences from 71 families ! Old standard matrix: PAM250
VI - 2004
Page 18
Matrix choice
Different kind of matrices
BLOSUM series (Henikoff S. & Henikoff JG., PNAS, 1992)
Blocks Substitution Matrix. A substitution matrix in which scores for each position are derived from observations of the frequencies of substitutions in blocks of local alignments in related proteins. Each matrix is tailored to a particular evolutionary distance. In the BLOSUM62 matrix, for example, the alignment from which scores were derived was created using sequences sharing no more than 62% identity. Sequences more identical than 62% are represented by a single sequence in the alignment so as to avoid over-weighting closely related family members.
VI - 2004
Page 19
Matrix choice
Limitations
Substitution matrices do not take into account long range interactions between residues. They assume that identical residues are equal (whereas in reallife a residue at the active site has other evolutionary constraints than the same residue outside of the active site) They assume evolution rate to be constant.
VI - 2004
Page 20
Alignment score
Amino acid substitution matrices
Example: Most used: PAM250 Blosum62
VI - 2004
Page 21
Gaps
Insertions or deletions
Proteins often contain regions where residues have been inserted or deleted during evolution There are constraints on where these insertions and deletions can happen (between structural or functional elements like: alpha helices, active site, etc.)
Gaps in alignments
GCATGCATGCAACTGCAT GCATGCATGCAACTGCAT ||||||||| ||||||||| GCATGCATGGGCAACTGCAT GCATGCATGGGCAACTGCAT
Example
Two alignments with identical number of gaps but very different gap distribution. We may prefer one large gap to several small ones
(e.g. poorly conserved loops between well-conserved helices)
13 x 1 - 10 - 6 x 1 = -3
13 x 1 - 5 x 10 - 6 x 1 = -43
VI - 2004
Page 24
Normalised score ! Is independent of the scoring system ! Allows the comparison of different alignments ! Units: expressed in bits
VI - 2004
Page 25
Pairwise alignments
Score distribution
...
...
score y score
VI - 2004
obs
score x
Page 26
score
score x: our alignment has a great probability of being the result of random sequence similarity score y: our alignment is very improbable to obtain with random sequences
VI - 2004
Page 27
0% N
p-value ! Probability that an alignment with this score occurs by chance in a database of this size ! The closer the p-value is towards 0, the better the alignment e-value ! Number of matches with this score one can expect to find by chance in a database of this size ! The closer the e-value is towards 0, the better the alignment Relationship between e-value and p-value: ! In a database containing N sequences e=pxN
VI - 2004
Page 28
VI - 2004
Page 29
Dotplot construction
Simple example
A dot is placed at each position where two residues match. ! The colour of the dot can be chosen according to the substitution value in the substitution matrix
THEFATCATTHEFASTCAT
Note
This method produces dotplots with too much noise to be useful ! The noise can be reduced by calculating a score using a window of residues ! The score is compared to a threshold or stringency
VI - 2004 Page 30
Dotplot construction
Window example
Each window of the first sequence is aligned (without gaps) to each window of the 2nd sequence A colour is set into a rectangular array according to the score of the aligned windows
THEFATCATTHEFASTCAT
THE HEF THE CAT HEF THE CAT ||| ||| THE HEF THE THE HEF
-5 Score: 23 -4
VI - 2004
Page 31
Dotplot limitations
! It's a visual aid.
The human eye can rapidly identify similar regions in sequences. ! It's a good way to explore sequence organisation. ! It does not provide an alignment.
Tissue-Type plasminogen Activator Urokinase-Type plasminogen Activator
VI - 2004
Page 32
Creating an alignment
Relationship between alignment and dotplot
An alignment can be seen as a path through the dotplot diagramm.
Finding an alignment
Alignment algorithms
An alignment program tries to find the best alignment between two sequences given the scoring system.
This can be seen as trying to find a path through the dotplot diagram including all (or the most visible) diagonals.
Alignement types
Global Local Alignment between the complete sequence A and the complete sequence B Alignment between a sub-sequence of A an a subsequence of B
VI - 2004
Page 34
Global alignment
(Needleman-Wunsch)
Example ! Global alignments are very sensitive to gap penalties ! Global alignments do not take into account the modular nature of
proteins
Urokinase-Type plasminogen Activator Tissue-Type plasminogen Activator
Global alignment:
VI - 2004
Page 35
Local alignment
proteins
(Smith-Waterman)
Example ! Local alignments are more sensitive to the modular nature of ! They can be used to search databases
Tissue-Type plasminogen Activator Urokinase-Type plasminogen Activator
Exact algorithms
Simple example (Needleman-Wunsch)
Scoring system:
F(i-1,j2 -1 -2
1) s(xi,yj)
F(i,j1)
-d
F(i1,j)
-d
F(i,j)
i j 0-2-4-6-8-10 -2 -10A 0-2-4-6-8-10 0-2-4-6-8-10 -220-2-4-6 -220-2-4-6 -404 -40420-2 -6T -8 -6-22312 GATTA G A-4A-6T-8 C-12 GATTA GATTA G G AT A T-10 C-12 T-8-40453 T-10-6-2264 C-12-8-4045 value) for residues x and y
F(i,j): score at position i, j s(x ,y ): match or mismatch score (or substitution matrix d: gap penalty (positive value)
i j
2+2
0-2
0-2
Note
We have to keep track of the origin of the score for each element in the matrix. ! This allows to build the alignment by traceback when the matrix has
been completely filled out.
Concluding remarks
Substitution matrices and gap penalties introduce biological information into the alignment algorithms. It is not because two sequences can be aligned that they share a common biological history. The relevance of the alignment must be assessed with a statistical score. There are many ways to align two sequences.
Do not blindly trust your alignment to be the only truth. Especially gapped regions may be quite variable.
Sequences sharing less than 20% similarity are difficult to align: ! You enter the Twilight Zone (Doolittle, 1986) ! Alignments may appear plausible to the eye but are no longer ! Other methods are needed to explore these sequences (i.e:
profiles)
VI - 2004 Page 39
statistically significant.