动态规划法-双序列比对.ppt_第1页
动态规划法-双序列比对.ppt_第2页
动态规划法-双序列比对.ppt_第3页
动态规划法-双序列比对.ppt_第4页
动态规划法-双序列比对.ppt_第5页
已阅读5页,还剩50页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1/55,回顾,DynamicProgrammingEditDistance(编辑距离)Alignment(比对)DirectedAcyclicGraphEditGraphBacktracking,-TGCAT-A-C,AT-C-TGATC,2/55,习题,4,求两条序列的最长共同子序列。【作业】,v=TACGGGTAT,w=GGACGTACG,3/55,G,G,A,C,G,T,A,C,G,T,A,C,G,G,G,T,A,T,4,SequenceAlignment,5/55,Outline,GlobalAlignmentScoringMatricesLocalAlignmentAlignmentwithAffineGapPenalties,6/55,FromLCStoAlignment:ChangeuptheScoring,TheLongestCommonSubsequence(LCS)problemthesimplestformofsequencealignmentallowsonlyinsertionsanddeletions(nomismatches).IntheLCSProblem,wescored1formatchesand0forindelsConsiderpenalizingindelsandmismatcheswithnegativescoresSimplestscoringschema:+1:matchpremium-:mismatchpenalty-:indelpenalty,-TGCAT-A-C,AT-C-TGATC,7/55,SimpleScoring,Whenmismatchesarepenalizedby,indelsarepenalizedby,andmatchesarerewardedwith+1,theresultingscoreis:#matches(#mismatches)(#indels),8/55,TheGlobalAlignmentProblem,FindthebestalignmentbetweentwostringsunderagivenscoringschemaInput:StringsvandwandascoringschemaOutput:Alignmentofmaximumscore,m:mismatchpenalty:indelpenalty,9/55,ScoringMatrices,Togeneralizescoring,considera(4+1)x(4+1)scoringmatrix.Inthecaseofanaminoacidsequencealignment,thescoringmatrixwouldbea(20+1)x(20+1)size.Theadditionof1istoincludethescoreforcomparisonofagapcharacter“-”.Thiswillsimplifythealgorithmasfollows:,10/55,TheBlosum62ScoringMatrix,11/55,MeasuringSimilarity,MeasuringtheextentofsimilaritybetweentwosequencesBasedonpercentsequenceidentityBasedonconservation,12/55,PercentSequenceIdentity,Theextenttowhichtwonucleotideoraminoacidsequencesareinvariant,ACCTGAGAGACGTGGCAG,70%identical,mismatch,indel,13/55,MakingaScoringMatrix,Scoringmatricesarecreatedbasedonbiologicalevidence.Alignmentscanbethoughtofastwosequencesthatdifferduetomutations.Someofthesemutationshavelittleeffectontheproteinsfunction,thereforesomepenalties,(vi,wj),willbelessharshthanothers.,14/55,ScoringMatrix:Example,NoticethatalthoughRandKaredifferentaminoacids,theyhaveapositivescore.Why?Theyarebothpositivelychargedaminoacidswillnotgreatlychangefunctionofprotein.,15/55,Conservation,Aminoacidchangesthattendtopreservethephysico-chemicalpropertiesoftheoriginalresiduePolartopolaraspartateglutamateNonpolartononpolaralaninevalineSimilarlybehavingresiduesleucinetoisoleucine,16/55,Scoringmatrices,AminoacidsubstitutionmatricesPAMBLOSUMDNAsubstitutionmatricesDNAislessconservedthanproteinsequencesLesseffectivetocomparecodingregionsatnucleotidelevel,17/55,PAM,PointAcceptedMutation(Dayhoffetal.)1PAM=PAM1=1%averagechangeofallaminoacidpositionsAfter100PAMsofevolution,noteveryresiduewillhavechangedsomeresiduesmayhavemutatedseveraltimessomeresiduesmayhavereturnedtotheiroriginalstatesomeresiduesmaynotchangedatall,18/55,PAMX,PAMx=PAM1xPAM250=PAM1250PAM250isawidelyusedscoringmatrix:,AlaArgAsnAspCysGlnGluGlyHisIleLeuLys.ARNDCQEGHILK.AlaA13699589126867.ArgR3174325326329AsnN446725646325AspD54811171056325CysC2111521122211GlnQ3556110737235.TrpW020000001010TyrY112131113221ValV74444444541510,19/55,BLOSUM,BlocksSubstitutionMatrixScoresderivedfromobservationsofthefrequenciesofsubstitutionsinblocksoflocalalignmentsinrelatedproteinsMatrixnameindicatesevolutionarydistanceBLOSUM62wascreatedusingsequencessharingnomorethan62%identity,20/55,TheBlosum62ScoringMatrix,BLOSUM62,21/55,相似度越低的序列,在比对的时候,采用PAM矩阵时,后面的数字越大,采用BLOSUM矩阵时,后面的数字越小。,22/55,Localvs.GlobalAlignment,TheGlobalAlignmentProblemtriestofindthelongestpathbetweenvertices(0,0)and(n,m)intheeditgraph.TheLocalAlignmentProblemtriestofindthelongestpathamongpathsbetweenarbitraryvertices(i,j)and(i,j)intheeditgraph.,23/55,Localvs.GlobalAlignment,TheGlobalAlignmentProblemtriestofindthelongestpathbetweenvertices(0,0)and(n,m)intheeditgraph.TheLocalAlignmentProblemtriestofindthelongestpathamongpathsbetweenarbitraryvertices(i,j)and(i,j)intheeditgraph.Intheeditgraphwithnegatively-scorededges,LocalAlignmetmayscorehigherthanGlobalAlignment,24/55,Localvs.GlobalAlignment(contd),GlobalAlignmentLocalAlignmentbetteralignmenttofindconservedsegment,-T-CC-C-AGT-TATGT-CAGGGGACACGA-GCATGCAGA-GAC,|,AATTGCCGCC-GTCGT-T-TTCAG-CA-GTTATGT-CAGAT-C,tccCAGTTATGTCAGgggacacgagcatgcagagac,|,aattgccgccgtcgttttcagCAGTTATGTCAGatc,25/55,LocalAlignment:Example,Globalalignment,Localalignment,26/55,LocalAlignments:Why?,Twogenesindifferentspeciesmaybesimilarovershortconservedregionsanddissimilaroverremainingregions.Example:Homeoboxgeneshaveashortregioncalledthehomeodomainthatishighlyconservedbetweenspecies.AglobalalignmentwouldnotfindthehomeodomainbecauseitwouldtrytoaligntheENTIREsequence,27/55,TheLocalAlignmentProblem,Goal:FindthebestlocalalignmentbetweentwostringsInput:Stringsv,wandscoringmatrixOutput:Alignmentofsubstringsofvandwwhosealignmentscoreismaximumamongallpossiblealignmentofallpossiblesubstrings,28/55,TheProblemwiththisProblem,LongruntimeO(n4):-Inthegridofsizenxntherearen2vertices(i,j)thatmayserveasasource.-Foreachsuchvertexcomputingalignmentsfrom(i,j)to(i,j)takesO(n2)time.Thiscanberemediedbygivingfreerides,29/55,LocalAlignment:Example,Globalalignment,Localalignment,30/55,LocalAlignment:Example,31/55,LocalAlignment:Example,32/55,LocalAlignment:Example,33/55,LocalAlignment:Example,34/55,LocalAlignment:Example,35/55,LocalAlignment:RunningTime,LongruntimeO(n4):-Inthegridofsizenxntherearen2vertices(i,j)thatmayserveasasource.-Foreachsuchvertexcomputingalignmentsfrom(i,j)to(i,j)takesO(n2)time.Thiscanberemediedbygivingfreerides,36/55,LocalAlignment:FreeRides,Vertex(0,0),Thedashededgesrepresentthefreeridesfrom(0,0)toeveryothernode.,Yeah,afreeride!,37/55,TheLocalAlignmentRecurrence,Thelargestvalueofsi,joverthewholeeditgraphisthescoreofthebestlocalalignment.Therecurrence:,0si,j=maxsi-1,j-1+(vi,wj)si-1,j+(vi,-)si,j-1+(-,wj),38/55,TheLocalAlignmentRecurrence,Thelargestvalueofsi,joverthewholeeditgraphisthescoreofthebestlocalalignment.Therecurrence:,0si,j=maxsi-1,j-1+(vi,wj)si-1,j+(vi,-)si,j-1+(-,wj),39/55,/Blast.cgiNP_006735NP_000945,40/55,41/55,习题,考虑序列v=TACGGGTAT和w=GGACGTACG。假设匹配奖励+1,错配和插缺罚分均为-1.【作业】填写序列v和w之间的全局联配的动态规划表(编辑图或相似度矩阵)。在各单元画出箭头以存储返回信息。全局最优联配的得分是多少?这个得分对应的联配又是什么?填写序列v和w之间的局部联配的动态规划表。在各单元画出箭头以存储返回信息。在这种情形下,局部最优联配的得分是多少?这个得分对应的联配又是什么?,42/55,G,G,A,C,G,T,A,C,G,T,A,C,G,G,G,T,A,T,全局比对,43/55,局部比对,G,G,A,C,G,T,A,C,G,T,A,C,G,G,G,T,A,T,44/55,ScoringIndels:NaiveApproach,Afixedpenaltyisgiventoeveryindel:-for1indel,-2for2consecutiveindels-3for3consecutiveindels,etc.Canbetooseverepenaltyforaseriesof100consecutiveindels,45/55,AffineGapPenalties,Innature,aseriesofkindelsoftencomeasasingleeventratherthanaseriesofksinglenucleotideevents:,ATA_GCATATTGC,ATAG_GCAT_GTGC,Normalscoringwouldgivethesamescoreforbothalignments,46/55,AccountingforGaps,Gaps-contiguoussequenceofspacesinoneoftherowsScoreforagapoflengthxis:-(+x)where0isthepenaltyforintroducingagap:gapopeningpenaltywillbelargerelativeto:gapextensionpenaltybecauseyoudonotwanttoaddtoomuchofapenaltyforextendingthegap.,47/55,AffineGapPenalties,Gappenalties:-whenthereis1indel-2whenthereare2indels-3whenthereare3indels,etc.-x(-gapopening-xgapextensions)Somehowreducedpenalties(ascomparedtonavescoring)aregiventorunsofhorizontalandverticaledges,48/55,AffineGapPenaltiesandEditGraph,Toreflectaffinegappenaltieswehavetoadd“long”horizontalandverticaledgestotheeditgraph.Eachsuchedgeoflengthxshouldhaveweight-x*,49/55,Adding“AffinePenalty”EdgestotheEditGraph,Therearemanysuchedges!Addingthemtothegraphincreasestherunningtimeofthealignmentalgorithmbyafactorofn(wherenisthenumberofvertices)SothecomplexityincreasesfromO(n2)toO(n3),50/55,Manhattanin3Layers,51/55,AffineGapPenaltiesand3LayerManhattanGrid,Thethreerecurrencesforthescoringalgorithmcreatesa3-layeredgraph.Thetoplevelcreates/extendsgapsinthesequencew.Thebottomlevelcreates/extendsgapsinsequencev.Themiddlelevelextendsmatchesandmismatches.,52/55,Sw

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论