finding patterns gopalan vivek lee teck kwong bernett
TRANSCRIPT
Finding Patterns
Gopalan Vivek
Lee Teck Kwong Bernett
Recap
Multiple Sequence Alignment
....|....| ....|....| ....|....| ....|....| ....|....| 665 675 685 695 705Sp1 ACTCPYCKDS EGRGSG---- DPGKKKQHIC HIQGCGKVYG KTSHLRAHLRSp2 ACTCPNCKDG EKRS------ GEQGKKKHVC HIPDCGKTFR KTSLLRAHVRSp3 ACTCPNCKEG GGRGTN---- -LGKKKQHIC HIPGCGKVYG KTSHLRAHLRSp4 ACSCPNCREG EGRGSN---- EPGKKKQHIC HIEGCGKVYG KTSHLRAHLRDrosBtd RCTCPNCTNE MSGLPPIVGP DERGRKQHIC HIPGCERLYG KASHLKTHLRDrosSp TCDCPNCQEA ERLGPAGV-- HLRKKNIHSC HIPGCGKVYG KTSHLKAHLRCeT22C8.5 RCTCPNCKAI KHG------- DRGSQHTHLC SVPGCGKTYK KTSHLRAHLRY40B1A.4 PQISLKKKIF FFIFSNFR-- GDGKSRIHIC HL--CNKTYG KTSHLRAHLR
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.
....|....| ....|....| ....|....| ....|....| ....|....| ....|....| 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
C2H2 Zinc finger motif
Prosite pattern
C-x(2,4)-C-x(12)-H-x(3)-H
Motif– Common sequence elements shared by a
group of sequences. Indicative of functional or evolutionary relationship.
– N-Glycosylation site, N-{P}-[ST]-{P}
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.
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]
A single point is not indicative of identity.
But many points allow for identification.
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.
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
Usually faster than sequence comparison– Blast has to search using many fragments.– Pattern searching just search once
Types of Patterns
DNA– Restriction Endonuclease sites– DNA binding motifs– Transcription Factor binding sites– Splicing site motifs– Other signals
Protein– Sequence motifs
• Zinc finger• SH2 domains
– Structural patterns
Representations
Regular Expression (RE) Prosite Patterns Profiles (PSSM) Hidden Markov Models (HMM)
Sp1 CHIQGCGKVYGKTSHLRAHLRWHSp2 CHIPDCGKTFRKTSLLRAHVRLHSp3 CHIPGCGKVYGKTSHLRAHLRWHSp4 CHIEGCGKVYGKTSHLRAHLRWHDrosBtd CHIPGCERLYGKASHLKTHLRWHDrosSp CHIPGCGKVYGKTSHLKAHLRWHCeT22C8.5 CSVPGCGKTYKKTSHLRAHLRKHY40B1A.4 CHL--CNKTYGKTSHLRAHLRGH
Sequences containing zinc finger motif
Regular Expression
Used in computer science Syntax:
Character Meaning
^ 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
Character Meaning
? 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
Char Match character
. Match any character
[] Match any character within bracket
[^Char] Not character
Zinc finger motif
C.{2,4}C.{12}H.{3}H
Sp1 CHIQGCGKVYGKTSHLRAHLRWHSp2 CHIPDCGKTFRKTSLLRAHVRLHSp3 CHIPGCGKVYGKTSHLRAHLRWHSp4 CHIEGCGKVYGKTSHLRAHLRWHDrosBtd CHIPGCERLYGKASHLKTHLRWHDrosSp CHIPGCGKVYGKTSHLKAHLRWHCeT22C8.5 CSVPGCGKTYKKTSHLRAHLRKHY40B1A.4 CHL--CNKTYGKTSHLRAHLRGH
C.{2,4}C.{12}H.{3}H
Example
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
RE Prosite
^ <
$ >
? (0,1)
{m} (m)
{m,n} (m,n)
Char Char
. x
[] []
[^char] {}
Zinc finger motif
REC.{2,4}C.{12}H.{3}H
PrositeC-x(2,4)-C-x(12)-H-x(3)-H
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
1 2 3 4 5 6 7 8Sp1 C H I Q G C G K VYGKTSHLRAHLRWHSp2 C H I P D C G K TFRKTSLLRAHVRLHSp3 C H I P G C G K VYGKTSHLRAHLRWHSp4 C H I E G C G K VYGKTSHLRAHLRWHDrosBtd C H I P G C E R LYGKASHLKTHLRWHDrosSp C H I P G C G K VYGKTSHLKAHLRWHCeT22C8.5 C S V P G C G K TYKKTSHLRAHLRKHY40B1A.4 C H L - - C N K TYGKTSHL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 = 42Y40B1A.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
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
Example provided is very simple It is possible to include
– Evolutionary distance– Amino acid frequency– Substitution matrix
This makes the profile even more accurate
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
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.
I1
M1
D2
M2
I1 I1
M1 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.
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
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.
Ideal situation
Threshold
Threshold
False PositiveFalse Negative
The real situation
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.
Summary
Definition of patterns and motifs Why use pattern finding Types of patterns Sources and Creation of Patterns