5.4 The Motif Finding Problem
5.4 The Motif Finding Problem
Section titled “5.4 The Motif Finding Problem”Learning Objectives
Section titled “Learning Objectives”After reading this section, you should be able to:
- formulate the motif finding problem in a precise way
- understand how candidate motif positions are generated from sequences
- explain why motif discovery is fundamentally difficult
- describe the “chicken-and-egg” problem in motif inference
- recognize motif discovery as a problem with hidden variables
In the previous sections, we developed a probabilistic framework for describing motifs and quantifying their strength. This framework allows us to evaluate how well a given sequence segment matches a motif model. However, an essential question remains unanswered: how do we obtain the motif model in the first place?
In practice, we are not given aligned motif instances. Instead, we are provided with a collection of sequences in which motif occurrences are embedded at unknown positions. The task is therefore not merely to describe a motif, but to discover it from raw sequence data.
To make this problem more concrete, consider a set of DNA sequences that are believed to share a common regulatory element. Each sequence may contain a motif of length , but we do not know where it begins. A natural approach is to systematically examine all possible subsequences of length within each sequence. This can be achieved by sliding a window of length along the sequence and extracting all candidate substrings .
For a sequence of length , this procedure yields candidate subsequences. Each of these is a potential instance of the motif. If we knew which of these candidates were true motif occurrences, we could align them and construct a probabilistic model as described in Section 5.2. Conversely, if we already had a reliable motif model, we could score each candidate subsequence and identify those that best match the motif.
A Circular Dependency
Section titled “A Circular Dependency”At this point, a fundamental difficulty becomes apparent. The construction of the motif model requires knowledge of the motif positions, while the identification of motif positions requires a model of the motif. Neither can be determined independently of the other.
This interdependence leads to what is often referred to as a “chicken-and-egg” problem . We cannot build the model without knowing the positions, and we cannot find the positions without a model. As a result, straightforward approaches based on direct counting or direct comparison are no longer applicable.
This situation marks a clear departure from the problems encountered in previous chapters. In sequence alignment and similarity search, we compared sequences directly and evaluated their similarity based on observable features. In motif discovery, however, the relevant structure is not directly observable. It must be inferred from data in which the signal is hidden.
Motif Discovery as a Problem with Hidden Structure
Section titled “Motif Discovery as a Problem with Hidden Structure”To better understand this challenge, it is useful to reinterpret the problem in a more abstract way. The sequences themselves are fully observed. However, the positions at which the motif occurs are not. These positions represent hidden variables that determine which parts of the sequence correspond to motif instances.
At the same time, the motif model itself is unknown and must be estimated from the data. This creates a situation in which both the structure we seek to learn and the evidence required to learn it depend on each other.
This perspective reveals that motif discovery is not just a pattern matching problem, but a problem of inference under incomplete information. We are given observations, but part of the generative process that produced these observations is hidden.
Why Simple Strategies Fail
Section titled “Why Simple Strategies Fail”One might attempt to resolve this problem by making an initial guess of the motif positions and then constructing a model based on that guess. However, such an approach is highly sensitive to errors. If the initial guess is incorrect, the resulting model will be distorted, and subsequent iterations may reinforce this incorrect structure rather than correcting it.
Alternatively, one might attempt to search exhaustively over all possible combinations of motif positions. However, the number of possible configurations grows exponentially with the number and length of sequences, making this approach computationally infeasible.
These difficulties highlight the need for a more principled approach—one that can handle uncertainty in a systematic way and gradually refine both the motif model and the inferred positions.
A Bridge to Iterative Inference
Section titled “A Bridge to Iterative Inference”At this point, it is useful to step back and reconsider the structure of the problem. We are faced with a system in which observed data are generated by a process that involves hidden variables. Our goal is to infer both the hidden variables and the parameters of the model that governs this process.
This type of problem appears in many areas of statistical modeling and machine learning. A common strategy is to replace hard decisions with probabilistic reasoning and to refine estimates iteratively rather than attempting to solve the problem in a single step.
This insight provides the conceptual bridge to the next section. To resolve the circular dependency at the heart of motif discovery, we require a method that can alternate between estimating hidden structure and updating model parameters. The Expectation Maximization algorithm offers precisely such a strategy.
Self-Check Questions
Section titled “Self-Check Questions”- How can candidate motif positions be generated from a sequence?
- Why is it not possible to construct a motif model directly from unaligned sequences?
- What is meant by the “chicken-and-egg” problem in motif discovery?
- Why do naive approaches based on guessing or exhaustive search fail?
- In what sense can motif discovery be viewed as a problem with hidden variables?