Explore the sequence evolution, relationships, and functional connections of ORZ, OTZ, Orz, Crz, on_, or2, oΩ, STO, and Oroz. Learn about pairwise alignment, optimal alignment scoring, LCS, edit distance, global vs. local alignment, and maximizing sum intervals.
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation
Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement.Téléchargez la présentation en cliquant sur ce lien.Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.
F I N
Plus de contenu associé
Transcription de la présentation
Sequence Alignment Kun-Mao Chao (趙坤茂) Department of Computer Science and Information Engineering National Taiwan University, Taiwan WWW: http://www.csie.ntu.edu.tw/~kmchao
Pairwise Alignment Sequence A: CTTAACT Sequence B: CGGATCAT An alignment of A and B: C---TTAACTCGGATCA--T Sequence A Sequence B
Pairwise Alignment Sequence A: CTTAACT Sequence B: CGGATCAT An alignment of A and B: Mismatch Match C---TTAACTCGGATCA--T Deletion gap Insertion gap
Alignment Graph C G G A T C A T Sequence A: CTTAACT Sequence B: CGGATCAT CTTAACT C---TTAACTCGGATCA--T
A simple scoring scheme • Match: +8 (w(x, y) = 8, if x = y) • Mismatch: -5 (w(x, y) = -5, if x ≠ y) • Each gap symbol: -3 (w(-,x)=w(x,-)=-3) C - - - T T A A C TC G G A T C A - - T +8 -3 -3 -3 +8 -5 +8 -3 -3 +8 = +12 Alignment score
An optimal alignment-- the alignment of maximum score • Let A=a1a2…am and B=b1b2…bn . • Si,j: the score of an optimal alignment between a1a2…ai and b1b2…bj • With proper initializations, Si,j can be computedas follows.
Longest Common Subsequence (LCS) A subsequence of a sequence S is obtained by deleting zero or more symbols from S. For example, the following are all subsequences of “president”: pred, sdn, predent. The longest common subsequence problem is to find a maximum-length common subsequence between two sequences.
Alignment vs. LCS Sequence A: CAATTGA Sequence B: GAATCTGC Compute their optimal alignmentunder the following scoring scheme: Match: 1 Mismatch: 0 Gap symbol: 0
C AAT - TG AG AAT C TG C LCS: AATTG 0 +1 +1 +1 +0 +1 +1 +0 = 5 G A A T C T G C CAATTGA optimal score
Edit distance • The edit distance (Levenshtein distance) between Sequence A and Sequence B is equal to the minimum number of operations (deletion, insertion, or substitution) required to transform Sequence A to Sequence B. CA A T -T GAGA A T CT GC edit distance = 3
Alignment vs. Edit distance Sequence A: CAATTGA Sequence B: GAATCTGC Alignment score: maximized Edit distance: minimized Compute their optimal alignmentunder the following scoring scheme: Match: 0 Mismatch: -1 Gap symbol: -1
Maximum-sum interval • Given a sequence of real numbers a1a2…an, find a consecutive subsequence with the maximum sum. 9 –3 1 7 –15 2 3 –4 2 –7 6 –2 8 4 -9 For each position, we can compute the maximum-sum interval ending at that position in O(n) time. Therefore, a naive algorithm runs in O(n2) time.
Computing a segment sum in O(1) time • prefix-sum(i) = a1+a2+…+ai • all n prefix sums are computable in O(n) time. • sum(i, j) = prefix-sum(j) – prefix-sum(i-1) j i prefix-sum(j) prefix-sum(i-1)
Maximizing sum(i, j) O(n)-time Method 1 • sum(i, j) = prefix-sum(j) – prefix-sum(i-1) • For each location j, prefix-sum(j) is fixed. To compute the maximum-sum interval ending at position j can be done by finding the minimum prefix-sum before position j. j i prefix-sum(j) prefix-sum(i-1)
ai Maximum-sum interval(The recurrence relation) • Define S(i) to be the maximum sum of the intervals ending at position i. O(n)-time Method 2 If S(i-1) < 0, concatenating ai with its previous interval gives less sum than ai itself.
An optimal local alignment • Si,j: the score of an optimal local alignment ending at (i, j) between a1a2…ai and b1b2…bj. • With proper initializations, Si,j can be computedas follows.
Match: 8 Mismatch: -5 Gap symbol: -3 local alignment C G G A T C A T CTTAACT
Match: 8 Mismatch: -5 Gap symbol: -3 local alignment C G G A T C A T CTTAACT
Match: 8 Mismatch: -5 Gap symbol: -3 local alignment C G G A T C A T CTTAACT The best score
A – C - TA T C A T 8-3+8-3+8 = 18 C G G A T C A T CTTAACT The best score
Connexion au compte
Connectez-vous pour publier votre contenu sur SlideServe.