Presentation is loading. Please wait.

Presentation is loading. Please wait.

Finding Patterns Gopalan Vivek Lee Teck Kwong Bernett.

Similar presentations


Presentation on theme: "Finding Patterns Gopalan Vivek Lee Teck Kwong Bernett."— Presentation transcript:

1 Finding Patterns Gopalan Vivek Lee Teck Kwong Bernett

2 Recap Multiple Sequence Alignment....|....|....|....|....|....|....|....|....|....| 665 675 685 695 705 Sp1 ACTCPYCKDS EGRGSG---- DPGKKKQHIC HIQGCGKVYG KTSHLRAHLR Sp2 ACTCPNCKDG EKRS------ GEQGKKKHVC HIPDCGKTFR KTSLLRAHVR Sp3 ACTCPNCKEG GGRGTN---- -LGKKKQHIC HIPGCGKVYG KTSHLRAHLR Sp4 ACSCPNCREG EGRGSN---- EPGKKKQHIC HIEGCGKVYG KTSHLRAHLR DrosBtd RCTCPNCTNE MSGLPPIVGP DERGRKQHIC HIPGCERLYG KASHLKTHLR DrosSp TCDCPNCQEA ERLGPAGV-- HLRKKNIHSC HIPGCGKVYG KTSHLKAHLR CeT22C8.5 RCTCPNCKAI KHG------- DRGSQHTHLC SVPGCGKTYK KTSHLRAHLR Y40B1A.4 PQISLKKKIF FFIFSNFR-- GDGKSRIHIC HL--CNKTYG KTSHLRAHLR

3 Introduction Terms used in pattern finding is quite loose. Terms may be used differently by different authors. Thus there is a need to know the context in which the terms are used.

4 ....|....|....|....|....|....|....|....|....|....|....|....| 665 675 685 695 705 715 Sp1 ACTCPYCKDS EGRGSG---- DPGKKKQHIC HIQGCGKVYG KTSHLRAHLR WHTGERPFMC Sp2 ACTCPNCKDG EKRS------ GEQGKKKHVC HIPDCGKTFR KTSLLRAHVR LHTGERPFVC Sp3 ACTCPNCKEG GGRGTN---- -LGKKKQHIC HIPGCGKVYG KTSHLRAHLR WHSGERPFVC Sp4 ACSCPNCREG EGRGSN---- EPGKKKQHIC HIEGCGKVYG KTSHLRAHLR WHTGERPFIC DrosBtd RCTCPNCTNE MSGLPPIVGP DERGRKQHIC HIPGCERLYG KASHLKTHLR WHTGERPFLC DrosSp TCDCPNCQEA ERLGPAGV-- HLRKKNIHSC HIPGCGKVYG KTSHLKAHLR WHTGERPFVC CeT22C8.5 RCTCPNCKAI KHG------- DRGSQHTHLC SVPGCGKTYK KTSHLRAHLR KHTGDRPFVC Y40B1A.4 PQISLKKKIF FFIFSNFR-- GDGKSRIHIC HL--CNKTYG KTSHLRAHLR GHAGNKPFAC C 2 H 2 Zinc finger motif Prosite pattern C-x(2,4)-C-x(12)-H-x(3)-H

5 Motif –Common sequence elements shared by a group of sequences. Indicative of functional or evolutionary relationship. –N-Glycosylation site, N-{P}-[ST]-{P}

6 Pattern –“A consistent, characteristic form, style, or method, as a composite of traits or features characteristic of an individual or a group.” (dictionary.com) –A physical expression of a motif. –Many forms of expression.

7

8 Signature/Print –A set of patterns that defines a group of sequences having a certain common characteristic. –Bacterial Rhodopsin (2 patterns) R-Y-x-[DT]-W-x-[LIVMF]-[ST]-T-P-[LIVM](3) [FYIV]-x-[FYVG]-[LIVM]-D-[LIVMF]-x-[STA]-K- x(2)-[FY]

9 A single point is not indicative of identity. But many points allow for identification.

10

11 Why pattern finding and not sequence comparison? Useful in event of low sequence similarity to infer function or family –Certain motifs are characteristic of function or family. –Zinc finger motif, indicative of DNA binding. –Avidin motif, indicative of Avidin family of proteins.

12 Detection of specific motifs or signals –Example: Restriction Endonuclease sites –EcoRI »5’-G^AATT C-3’ (Sense strand) »3’–C TTAA^G-3’ (Antisense strand) Transcription factor binding sites –GAL4 »CCCCAGaTTTTC Protein motifs –Zinc finger

13 Usually faster than sequence comparison –Blast has to search using many fragments. –Pattern searching just search once

14 Types of Patterns DNA –Restriction Endonuclease sites –DNA binding motifs –Transcription Factor binding sites –Splicing site motifs –Other signals

15 Protein –Sequence motifs Zinc finger SH2 domains –Structural patterns

16 Representations Regular Expression (RE) Prosite Patterns Profiles (PSSM) Hidden Markov Models (HMM)

17 Sp1 CHIQGCGKVYGKTSHLRAHLRWH Sp2 CHIPDCGKTFRKTSLLRAHVRLH Sp3 CHIPGCGKVYGKTSHLRAHLRWH Sp4 CHIEGCGKVYGKTSHLRAHLRWH DrosBtd CHIPGCERLYGKASHLKTHLRWH DrosSp CHIPGCGKVYGKTSHLKAHLRWH CeT22C8.5 CSVPGCGKTYKKTSHLRAHLRKH Y40B1A.4 CHL--CNKTYGKTSHLRAHLRGH Sequences containing zinc finger motif

18 Regular Expression Used in computer science Syntax: CharacterMeaning ^Match the beginning of the line $Match the end of the line *Match 0 or more repetitions of preceding character +Match 1 or more repetitions of preceding character

19 CharacterMeaning ?Match 0 or 1 occurrence of preceding character {m}Match m repetition of preceding character {m,n}Match range m to n repetition of preceding character CharMatch character.Match any character []Match any character within bracket [^Char]Not character Zinc finger motif C.{2,4}C.{12}H.{3}H

20 Sp1 CHIQGCGKVYGKTSHLRAHLRWH Sp2 CHIPDCGKTFRKTSLLRAHVRLH Sp3 CHIPGCGKVYGKTSHLRAHLRWH Sp4 CHIEGCGKVYGKTSHLRAHLRWH DrosBtd CHIPGCERLYGKASHLKTHLRWH DrosSp CHIPGCGKVYGKTSHLKAHLRWH CeT22C8.5 CSVPGCGKTYKKTSHLRAHLRKH Y40B1A.4 CHL--CNKTYGKTSHLRAHLRGH C.{2,4}C.{12}H.{3}H Example

21 Prosite Patterns Very similar to RE Patterns encoded in Prosite style or RE style can be switched easily between these two styles More familiar to biologist

22 REProsite ^< $> ?(0,1) {m}(m) {m,n}(m,n) Char.x [] [^char]{} Zinc finger motif RE C.{2,4}C.{12}H.{3}H Prosite C-x(2,4)-C-x(12)-H-x(3)-H

23 Profiles Similar to scoring matrices used in sequence comparison The outcome of applying the matrices is a score A threshold is used to determine whether it is a hit

24 1 2 3 4 5 6 7 8 Sp1 C H I Q G C G K VYGKTSHLRAHLRWH Sp2 C H I P D C G K TFRKTSLLRAHVRLH Sp3 C H I P G C G K VYGKTSHLRAHLRWH Sp4 C H I E G C G K VYGKTSHLRAHLRWH DrosBtd C H I P G C E R LYGKASHLKTHLRWH DrosSp C H I P G C G K VY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= 49 DrosBtd CHIPGCER = 8+7+6+5+6+8+1+1 = 42 DrosSp CHIPGCGK = 8+7+6+5+6+8+6+7 = 53 CeT22C8.5 CSVPGCGK = 8+1+1+5+6+8+6+7 = 42 Y40B1A.4 CHL--CNK = 8+7+1+1+1+8+1+7 = 34 <- lowest Since all the sequences are known to contain the zinc finger motif, the threshold can be set at 34. Thus any sequence having a lower score than the threshold will be rejected and any sequence having a higher score is likely to have the zinc finger motif. Example Unrelated seq – CADEGCEK – 8+0+0+1+6+8+1+7 = 31 REJECT

27 The unrelated sequence was rejected due to a low score. However if one was using a Prosite pattern, one would have accepted it. –C-x(2,4)-C-x(2) <= Prosite motif Advantage of profile –More expressive, details are included –More sensitive –Provides a quantitative value

28 Example provided is very simple It is possible to include –Evolutionary distance –Amino acid frequency –Substitution matrix This makes the profile even more accurate

29 Hidden Markov Models (HMM) Profiles are a special case of HMM HMM have a number of states Transitions from one state to another is based on a set or probabilities called transitional probabilities At each state an observation is generated

30 It is known as HMM as only the observations are visible and the states hidden. The probabilities are first determined using MSA. The determined probabilities are then used to determine whether a sequence has the pattern or not.

31 I1 M1 D2 M2 I1 M1 D2 A Short Profile HMM I represents insertion states, M represents match states and D represents deletion state. Both I and M emits amino acids.

32 Sources and Creation of Patterns Source of patterns –The source of patterns is mainly MSA. Creation of patterns –Manually as in Prosite –Automatically through machine learning Meme Pratt

33 Considerations Sensitivity/Recall –How much of the patterns were discovered –TP / (TP + FN) Specificity/Precision –How many of the discovered patterns are correct –TP / (TP + FP) It is usually a balance between these two measures.

34 Ideal situation Threshold

35 False Positive False Negative The real situation

36 Other points: –A literature search can be done to identify potential conserved/functional regions suitable for use in pattern creation. For example, Alanine Scanning may indicate a region of functional importance. –All calculations of Sensitivity and Specificity is based on current state of database. –Need to consider the coverage of existing database.

37 Summary Definition of patterns and motifs Why use pattern finding Types of patterns Sources and Creation of Patterns


Download ppt "Finding Patterns Gopalan Vivek Lee Teck Kwong Bernett."

Similar presentations


Ads by Google