Maximal Exact Matches (MEMs) vs. Super Maximal Exact Matches (SMEMs) - A Clear Example
Let's use the following two DNA sequences as our example:
Sequence 1 (Reference): ATGCGAATTCCGAT
Sequence 2 (Read): GCGAATTC
Both MEMs and SMEMs aim to find the longest exact matches between these sequences. However, they differ in how they handle overlaps and extendability.
1. Maximal Exact Matches (MEMs)
MEMs find exact matches and then try to extend them as far as possible in both directions. However, a MEM can be contained within a longer match. The key is it's the longest at that position.
- Finding the Match: The obvious exact match is
GCGAATTC.
- Extending Left: We can't extend it further to the left in Sequence 1 because the character to the left of
GCGAATTC in Sequence 1 is T, which doesn't match the corresponding position in Sequence 2.
- Extending Right: We can't extend it further to the right in Sequence 1 because the character to the right of
GCGAATTC in Sequence 1 is C, which doesn't match anything in Sequence 2.
- Result: The MEM is
GCGAATTC. It's maximal because you can't extend it further in either direction without introducing a mismatch.
However, consider this: There's a longer exact match possible if we look at a different starting point. ATGCGAATTC is also an exact match. But, the MEM algorithm focuses on finding the longest match starting at a given position. It doesn't necessarily find the absolute longest match in the entire sequences.
2. Super Maximal Exact Matches (SMEMs)
SMEMs are more restrictive. They also find exact matches and extend them as far as possible, but with a crucial difference: an SMEM cannot be contained within another exact match. They are the longest exact matches that cannot be extended at either end without introducing a mismatch and are not part of a longer exact match.
- Finding the Match: Again, we start with
GCGAATTC.
- Extending Left: Same as MEMs, we can't extend it further left.
- Extending Right: Same as MEMs, we can't extend it further right.
- Checking for Containment: Now, this is where SMEMs differ. We need to check if
GCGAATTC is part of a longer exact match. We see that ATGCGAATTC is an exact match. Therefore, GCGAATTC is contained within a longer match.
- Result:
GCGAATTC is not an SMEM.
Instead, the SMEM is ATGCGAATTC. Let's verify:
- Extending Left: Can't extend further left without a mismatch.
- Extending Right: Can't extend further right without a mismatch.
- Checking for Containment: There's no longer exact match that contains
ATGCGAATTC within these sequences.
Therefore, the SMEM is ATGCGAATTC.
Here's a table summarizing the differences:
| Feature | Maximal Exact Match (MEM) | Super Maximal Exact Match (SMEM) |
|---|
| Goal | Find the longest exact match starting at a given position, extending as far as possible. | Find the longest exact match that cannot be extended at either end and is not contained within a longer exact match. |
| Containment | A MEM can be contained within a longer match. | An SMEM cannot be contained within a longer match. |
| Number of Matches | Generally more MEMs than SMEMs. | Generally fewer SMEMs than MEMs. |
| Uniqueness | Not necessarily unique. | More likely to be unique. |
Why does this matter?
- Alignment: SMEMs are often preferred in alignment algorithms (like those used in bioinformatics) because they represent more reliable and unique regions of similarity. They are less likely to be spurious matches.
- Complexity: Finding SMEMs is computationally more expensive than finding MEMs.
- Applications: MEMs can be useful for initial seed finding, while SMEMs are better for refining alignments and identifying significant homology.
In essence, SMEMs are a more refined and selective version of MEMs, prioritizing matches that are both long and uniquely positioned within the sequences. They provide a higher level of confidence in the identified similarities.