动态规划法双序列比对PPT讲稿.ppt

上传人:石*** 文档编号:46594379 上传时间:2022-09-27 格式:PPT 页数:55 大小:3.06MB
返回 下载 相关 举报
动态规划法双序列比对PPT讲稿.ppt_第1页
第1页 / 共55页
动态规划法双序列比对PPT讲稿.ppt_第2页
第2页 / 共55页
点击查看更多>>
资源描述

《动态规划法双序列比对PPT讲稿.ppt》由会员分享,可在线阅读,更多相关《动态规划法双序列比对PPT讲稿.ppt(55页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、动态规划法双序列比对第1页,共55页,编辑于2022年,星期五2/55习题4,求两条序列的最长共同子序列。【作业】v=TACGGGTATw=GGACGTACG第2页,共55页,编辑于2022年,星期五3/550123456789000000000001020304050607080905GGACGTACGTACGGGTAT第3页,共55页,编辑于2022年,星期五4Sequence AlignmentSequence Alignment第4页,共55页,编辑于2022年,星期五5/55OutlineGlobal Alignment Scoring MatricesLocal Alignment

2、Alignment with Affine Gap Penalties第5页,共55页,编辑于2022年,星期五6/55From LCS to Alignment:Change up the ScoringThe Longest Common Subsequence(LCS)problemthe simplest form of sequence alignment allows only insertions and deletions(no mismatches).In the LCS Problem,we scored 1 for matches and 0 for indelsCons

3、ider penalizing indels and mismatches with negative scoresSimplest scoring schema:+1:match premium -:mismatch penalty -:indel penalty-T G C A T -A -CA T -C -T G A T C第6页,共55页,编辑于2022年,星期五7/55Simple ScoringWhen mismatches are penalized by,indels are penalized by,and matches are rewarded with+1,the re

4、sulting score is:#matches (#mismatches)(#indels)第7页,共55页,编辑于2022年,星期五8/55The Global Alignment ProblemFind the best alignment between two strings under a given scoring schemaInput:Strings v and w and a scoring schemaOutput:Alignment of maximum scorem:mismatch penalty:indel penalty第8页,共55页,编辑于2022年,星期

5、五9/55Scoring MatricesTo generalize scoring,consider a(4+1)x(4+1)scoring matrix.In the case of an amino acid sequence alignment,the scoring matrix would be a(20+1)x(20+1)size.The addition of 1 is to include the score for comparison of a gap character“-”.This will simplify the algorithm as follows:第9页

6、,共55页,编辑于2022年,星期五10/55The Blosum62 Scoring Matrix第10页,共55页,编辑于2022年,星期五11/55Measuring SimilarityMeasuring the extent of similarity between two sequencesBased on percent sequence identityBased on conservation第11页,共55页,编辑于2022年,星期五12/55Percent Sequence IdentityThe extent to which two nucleotide or am

7、ino acid sequences are invariantA C C T G A G A G A C C T G A G A G A C G T G G C A GA C G T G G C A G70%identicalmismatchindel第12页,共55页,编辑于2022年,星期五13/55Making a Scoring MatrixScoring matrices are created based on biological evidence.Alignments can be thought of as two sequences that differ due to

8、mutations.Some of these mutations have little effect on the proteins function,therefore some penalties,(vi,wj),will be less harsh than others.第13页,共55页,编辑于2022年,星期五14/55Scoring Matrix:ExampleARNKA5-2-1-1R-7-13N-70K-6 Notice that although R and K are different amino acids,they have a positive score.W

9、hy?They are both positively charged amino acids will not greatly change function of protein.第14页,共55页,编辑于2022年,星期五15/55ConservationAmino acid changes that tend to preserve the physico-chemical properties of the original residuePolar to polaraspartate glutamateNonpolar to nonpolaralanine valineSimila

10、rly behaving residuesleucine to isoleucine第15页,共55页,编辑于2022年,星期五16/55Scoring matricesAmino acid substitution matricesPAMBLOSUMDNA substitution matricesDNA is less conserved than protein sequencesLess effective to compare coding regions at nucleotide level第16页,共55页,编辑于2022年,星期五17/55PAMPoint Accepted

11、Mutation(Dayhoff et al.)1 PAM=PAM1=1%average change of all amino acid positionsAfter 100 PAMs of evolution,not every residue will have changedsome residues may have mutated several timessome residues may have returned to their original statesome residues may not changed at all第17页,共55页,编辑于2022年,星期五1

12、8/55PAMXPAMx=PAM1xPAM250=PAM1250PAM250 is a widely used scoring matrix:Ala Arg Asn Asp Cys Gln Glu Gly His Ile Leu Lys.A R N D C Q E G H I L K .Ala A 13 6 9 9 5 8 9 12 6 8 6 7 .Arg R 3 17 4 3 2 5 3 2 6 3 2 9Asn N 4 4 6 7 2 5 6 4 6 3 2 5Asp D 5 4 8 11 1 7 10 5 6 3 2 5Cys C 2 1 1 1 52 1 1 2 2 2 1 1Gln

13、 Q 3 5 5 6 1 10 7 3 7 2 3 5.Trp W 0 2 0 0 0 0 0 0 1 0 1 0Tyr Y 1 1 2 1 3 1 1 1 3 2 2 1Val V 7 4 4 4 4 4 4 4 5 4 15 10第18页,共55页,编辑于2022年,星期五19/55BLOSUMBlocks Substitution Matrix Scores derived from observations of the frequencies of substitutions in blocks of local alignments in related proteinsMatri

14、x name indicates evolutionary distanceBLOSUM62 was created using sequences sharing no more than 62%identity第19页,共55页,编辑于2022年,星期五20/55The Blosum62 Scoring MatrixBLOSUM 62第20页,共55页,编辑于2022年,星期五21/55BLOSUM90PAM30低趋异度小鼠和大鼠RBPBLOSUM45PAM240高趋异度小鼠和细菌的lipocalinBLOSUM80PAM120BLOSUM62PAM180相似度越低的序列,在比对的时候,采

15、用PAM矩阵时,后面的数字越大,采用BLOSUM矩阵时,后面的数字越小。第21页,共55页,编辑于2022年,星期五22/55Local vs.Global AlignmentThe Global Alignment Problem tries to find the longest path between vertices(0,0)and(n,m)in the edit graph.The Local Alignment Problem tries to find the longest path among paths between arbitrary vertices(i,j)and

16、(i,j)in the edit graph.第22页,共55页,编辑于2022年,星期五23/55Local vs.Global AlignmentThe Global Alignment Problem tries to find the longest path between vertices(0,0)and(n,m)in the edit graph.The Local Alignment Problem tries to find the longest path among paths between arbitrary vertices(i,j)and(i,j)in the e

17、dit graph.In the edit graph with negatively-scored edges,Local Alignmet may score higher than Global Alignment第23页,共55页,编辑于2022年,星期五24/55Local vs.Global Alignment(contd)Global AlignmentLocal Alignmentbetter alignment to find conserved segment -T-CC-C-AGT-TATGT-CAGGGGACACGA-GCATGCAGA-GAC|AATTGCCGCC-G

18、TCGT-T-TTCAG-CA-GTTATGT-CAGAT-C tccCAGTTATGTCAGgggacacgagcatgcagagac|aattgccgccgtcgttttcagCAGTTATGTCAGatc第24页,共55页,编辑于2022年,星期五25/55Local Alignment:ExampleGlobal alignmentLocal alignmentCompute a“mini”Global Alignment to get Local第25页,共55页,编辑于2022年,星期五26/55Local Alignments:Why?Two genes in different

19、 species may be similar over short conserved regions and dissimilar over remaining regions.Example:Homeobox genes have a short region called the homeodomain that is highly conserved between species.A global alignment would not find the homeodomain because it would try to align the ENTIRE sequence第26

20、页,共55页,编辑于2022年,星期五27/55The Local Alignment ProblemGoal:Find the best local alignment between two stringsInput:Strings v,w and scoring matrix Output:Alignment of substrings of v and w whose alignment score is maximum among all possible alignment of all possible substrings第27页,共55页,编辑于2022年,星期五28/55T

21、he Problem with this ProblemLong run time O(n4):-In the grid of size n x n there are n2 vertices(i,j)that may serve as a source.-For each such vertex computing alignments from(i,j)to(i,j)takes O(n2)time.This can be remedied by giving free rides第28页,共55页,编辑于2022年,星期五29/55Local Alignment:ExampleGlobal

22、 alignmentLocal alignmentCompute a“mini”Global Alignment to get Local第29页,共55页,编辑于2022年,星期五30/55Local Alignment:Example第30页,共55页,编辑于2022年,星期五31/55Local Alignment:Example第31页,共55页,编辑于2022年,星期五32/55Local Alignment:Example第32页,共55页,编辑于2022年,星期五33/55Local Alignment:Example第33页,共55页,编辑于2022年,星期五34/55Loca

23、l Alignment:Example第34页,共55页,编辑于2022年,星期五35/55Local Alignment:Running TimeLong run time O(n4):-In the grid of size n x n there are n2 vertices(i,j)that may serve as a source.-For each such vertex computing alignments from(i,j)to(i,j)takes O(n2)time.This can be remedied by giving free rides第35页,共55页,

24、编辑于2022年,星期五36/55Local Alignment:Free RidesVertex(0,0)The dashed edges represent the free rides from(0,0)to every other node.Yeah,a free ride!第36页,共55页,编辑于2022年,星期五37/55The Local Alignment RecurrenceThe largest value of si,j over the whole edit graph is the score of the best local alignment.The recu

25、rrence:0 si,j =max si-1,j-1+(vi,wj)s i-1,j +(vi,-)s i,j-1+(-,wj)Notice there is only this change from the original recurrence of a Global Alignment第37页,共55页,编辑于2022年,星期五38/55The Local Alignment RecurrenceThe largest value of si,j over the whole edit graph is the score of the best local alignment.The

26、 recurrence:0 si,j =max si-1,j-1+(vi,wj)s i-1,j +(vi,-)s i,j-1+(-,wj)Power of ZERO:there is only this change from the original recurrence of a Global Alignment-since there is only one“free ride”edge entering into every vertex第38页,共55页,编辑于2022年,星期五39/55http:/blast.ncbi.nlm.nih.gov/Blast.cgi NP_006735

27、NP_000945第39页,共55页,编辑于2022年,星期五40/55第40页,共55页,编辑于2022年,星期五41/55习题考虑序列v=TACGGGTAT和w=GGACGTACG。假设匹配奖励+1,错配和插缺罚分均为-1.【作业】填写序列v和w之间的全局联配的动态规划表(编辑图或相似度矩阵)。在各单元画出箭头以存储返回信息。全局最优联配的得分是多少?这个得分对应的联配又是什么?填写序列v和w之间的局部联配的动态规划表。在各单元画出箭头以存储返回信息。在这种情形下,局部最优联配的得分是多少?这个得分对应的联配又是什么?第41页,共55页,编辑于2022年,星期五42/55-01234567

28、8900-1-2-3-4-5-6-7-8-91-12-23-34-45-56-67-78-899GGACGTACGTACGGGTAT全局比对第42页,共55页,编辑于2022年,星期五43/55局部比对-012345678900000000000102030405060708090GGACGTACGTACGGGTAT第43页,共55页,编辑于2022年,星期五44/55Scoring Indels:Naive ApproachA fixed penalty is given to every indel:-for 1 indel,-2 for 2 consecutive indels-3 fo

29、r 3 consecutive indels,etc.Can be too severe penalty for a series of 100 consecutive indels第44页,共55页,编辑于2022年,星期五45/55Affine Gap PenaltiesIn nature,a series of k indels often come as a single event rather than a series of k single nucleotide events:Normal scoring would give the same score for both a

30、lignmentsThis is more likely.This is less likely.第45页,共55页,编辑于2022年,星期五46/55Accounting for GapsGaps-contiguous sequence of spaces in one of the rowsScore for a gap of length x is:-(+x)where 0 is the penalty for introducing a gap:gap opening penalty will be large relative to:gap extension penalty bec

31、ause you do not want to add too much of a penalty for extending the gap.第46页,共55页,编辑于2022年,星期五47/55Affine Gap PenaltiesGap penalties:-when there is 1 indel-2 when there are 2 indels-3 when there are 3 indels,etc.-x(-gap opening-x gap extensions)Somehow reduced penalties(as compared to nave scoring)a

32、re given to runs of horizontal and vertical edges第47页,共55页,编辑于2022年,星期五48/55Affine Gap Penalties and Edit GraphTo reflect affine gap penalties we have to add“long”horizontal and vertical edges to the edit graph.Each such edge of length x should have weight -x*第48页,共55页,编辑于2022年,星期五49/55Adding“Affine

33、 Penalty”Edges to the Edit GraphThere are many such edges!Adding them to the graph increases the running time of the alignment algorithm by a factor of n(where n is the number of vertices)So the complexity increases from O(n2)to O(n3)第49页,共55页,编辑于2022年,星期五50/55Manhattan in 3 Layers第50页,共55页,编辑于2022年

34、,星期五51/55Affine Gap Penalties and 3 Layer Manhattan GridThe three recurrences for the scoring algorithm creates a 3-layered graph.The top level creates/extends gaps in the sequence w.The bottom level creates/extends gaps in sequence v.The middle level extends matches and mismatches.第51页,共55页,编辑于2022

35、年,星期五52/55Switching between 3 LayersLevels:The main level is for diagonal edges The lower level is for horizontal edges The upper level is for vertical edgesA jumping penalty is assigned to moving from the main level to either the upper level or the lower level(-)There is a gap extension penalty for

36、 each continuation on a level other than the main level(-)第52页,共55页,编辑于2022年,星期五53/55The 3-leveled Manhattan Grid第53页,共55页,编辑于2022年,星期五54/55Affine Gap Penalty RecurrencesContinue Gap in w(deletion)Start Gap in w(deletion):from middleContinue Gap in v(insertion)Start Gap in v(insertion):from middleMa

37、tch or MismatchEnd deletion:from topEnd insertion:from bottom第54页,共55页,编辑于2022年,星期五55/55习题考虑序列v=TACGGGTAT和w=GGACGTACG。假设匹配奖励+1,错配和插缺罚分均为-1.填写序列v和w之间的全局联配的动态规划表(编辑图或相似度矩阵)。在各单元画出箭头以存储返回信息。全局最优联配的得分是多少?这个得分对应的联配又是什么?填写序列v和w之间的局部联配的动态规划表。在各单元画出箭头以存储返回信息。在这种情形下,局部最优联配的得分是多少?这个得分对应的联配又是什么?假设使用仿射缺口惩罚,其中引入缺口开放的罚分为-10,缺口扩展的罚分为-1。匹配和错配的得分不改变。在这种情形下,全局最优联配是什么?他的得分是多少?第55页,共55页,编辑于2022年,星期五

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁