Friday, December 4, 2026
SAVED POSTS
  • Login
  • Register
RathBiotaClan
No Result
View All Result
  • HOME
  • HEALTH SCIENCE

    TRENDING ON HEALTH (TOP)

    A New Lupus Drug Is Being Tested as a Simpler Alternative to CAR-T Cell Therapy

    Targeted Radiation Therapy Slows Disease Progression in Advanced Prostate Cancer

    Laughter therapy may help people with a common form of lung disease

    Mindfulness Therapy Offers New Hope for People Stuck in Depression

    NOW ON AIR (RBC)

    fruitfully remove the head, then touch the wing
    NEUROSCIENCE

    Fruit Flies Without Heads Keep Cleaning Their Wings, Scientists Found the Cells Behind It

    November 30, 2026
    HEALTH SCIENCE

    A New Lupus Drug Is Being Tested as a Simpler Alternative to CAR-T Cell Therapy

    November 29, 2026
    prostate-cancer
    CANCER

    Targeted Radiation Therapy Slows Disease Progression in Advanced Prostate Cancer

    November 27, 2026
    BIOTECHNOLOGY

    Scientists Reveal How CRISPR Systems Recruit Enzymes for Precise DNA Insertion

    November 26, 2026
  • NEUROSCIENCE
    • PHYSIOLOGY
    • IMMUNOLOGY
    • CANCER
  • DISCOVERIES
    • SPOTLIGHTS
    • STUDENT PORTAL
    • SCIENCE FEATURED
  • MOLECULAR BIOLOGY
    • GENETICS
    • BIOTECHNOLOGY
    • BIOINFORMATICS
    • BIOCHEMISTRY
    • BIOPHYSICS
  • ZOOLOGY & ECOLOGY
    • ENVIRONMENTAL SCIENCE
    • ECOLOGY
    • EVOLUTION
  • MICRO & PLANT SCIENCE
    • MICROBIOLOGY
    • CELL BIOLOGY
    • DEVELOPMENTAL BIOLOGY
  • PSYCHOLOGY
RathBiotaClan
Loading…
RathBiotaClan
No Result
View All Result
Home BIOINFORMATICS

Gaps in Sequence Alignment and Their Role in cDNA Matching

Shibasis Rath by Shibasis Rath
July 4, 2026
in BIOINFORMATICS, STUDENT PORTAL
Reading Time: 9 mins read
21
A A
0
ADVERTISEMENT

In the study of string alignment and dynamic programming, the basic elements used to evaluate an alignment are matches, mismatches, and spaces. However, these alone are not sufficient to produce alignments that are biologically meaningful. To overcome this limitation, the concept of a gap is introduced. Gaps allow an alignment to better reflect real biological mutational events and help produce alignments whose structure matches patterns actually observed in living organisms, particularly in DNA and protein sequences.

Definition of a Gap

A gap is defined as any maximal, consecutive run of spaces occurring in a single string of a given alignment. In simple words, when several spaces appear one after another (without interruption) in one string of the alignment, that entire stretch is treated as one single gap, rather than being counted as several individual spaces.

Certain rules apply while identifying a gap:

Advertisement
  • If a gap begins before the start of a string, it is bordered on its right side by the first character of that string.
  • If a gap begins after the end of a string, it is bordered on its left side by the last character of that string.
  • In all other cases, a gap must be bordered on both sides by actual characters of the string.
  • A gap can be as small as a single space, or it can extend to cover many consecutive spaces.

It is important to note that if the last space of one string happens to align with a space in the other string, these are two separate gaps (one in each string) and are not merged into a single gap, since they occur in different strings.

Gaps in the Objective Function

In the simplest scoring scheme that accounts for gaps, each gap is given a constant weight, denoted Wg, regardless of how many spaces it contains. This means that within a gap, each individual space is treated as “free” — that is, the score contribution of aligning a character with a space, or a space with a character, is taken as zero. The total value of an alignment is then calculated by adding a term for the number of gaps (k) multiplied by Wg, along with the usual terms for matches and mismatches.

READ ALSO

Multiple alignment with sum of pairs and consensus objective functions

Why Is Multiple String Alignment Harder Than Pairwise Alignment?

The value of Wg has a direct influence on the shape of the optimal alignment:

  • A large value of Wg discourages the formation of many gaps, so the alignment tends to have long, unbroken aligned regions.
  • A smaller value of Wg allows the alignment to be broken into more, shorter fragments, permitting a more fragmented alignment.

Thus, by tuning Wg, one can control how spaces are distributed across the alignment, which in turn determines whether the alignment appears as a few long blocks or many small scattered pieces.

Advertisement

Why Gaps Are Biologically Important

The biological reasoning behind introducing gaps is closely connected to the justification for local alignment. A gap of one string opposite a substring of the other string corresponds to either a deletion of that substring from the first string, or an insertion of that substring into the second string. Such insertion or deletion of an entire substring, especially in DNA, typically happens as the result of a single mutational event, rather than through many small individual mutations.

Several biological mechanisms are responsible for creating gaps of varying sizes:

  1. Unequal crossing-over during meiosis – causes an insertion in one strand and a corresponding deletion in the other.
  2. DNA slippage during replication – occurs when the replication machinery loses its position on the template, slips backward, and repeats a section, producing a duplicated stretch.
  3. Insertion of transposable elements (“jumping genes”) – these mobile genetic elements insert themselves into DNA strings.
  4. Insertion of DNA by retroviruses – viral genetic material becomes inserted into the host DNA.
  5. Translocation of DNA between chromosomes – DNA segments move from one chromosome to another.

These mechanisms explain why long insertions and deletions, appearing as gaps, are common biological phenomena and must be modeled explicitly rather than treated as a series of unrelated single-space mutations.

Gaps and Evolutionary History

When determining the evolutionary relationship between species over long time periods, gaps often carry more informative value than simple substitutions. This is because point mutations (single character substitutions) occur very frequently and rapidly, whereas mutational events that create gaps occur much less frequently. As a result, corresponding genes in two different species may show large differences at the level of individual character substitutions, making it difficult to establish evolutionary relationships using substitution-based similarity alone. However, since large insertions and deletions are rarer events, shared gaps in aligned strings can serve as reliable markers for reconstructing evolutionary history and are sometimes used as “evolutionary characters” while building evolutionary trees.

Advertisement

Gaps and Protein Domains

At the protein level, many proteins are built from combinations of protein domains selected from a limited repertoire. Consequently, two protein sequences may be highly similar over certain stretches but differ where one protein contains a domain absent in the other. Such a region, where one protein has an extra domain, naturally appears as a gap when the two proteins are aligned. In fact, many biologists regard the correct identification of these long (“major”) gaps as the central challenge of protein alignment — once major gaps are correctly placed, the remaining alignment (reflecting ordinary point mutations) becomes relatively straightforward.

cDNA Matching: An Illustration of Gap Importance

Biological Background

In eukaryotic organisms, a gene consists of alternating exons (expressed, protein-coding sequences) and introns(intervening, non-coding sequences). While the number of exons/introns per gene is usually modest, introns can be far longer than exons.

The process of protein synthesis from a eukaryotic gene proceeds as follows:

  • An RNA transcript is first produced from the gene’s DNA, covering both introns and exons, with base complementation (A→U, T→A, C→G, G→C).
  • The intron-exon boundaries are identified, and introns are spliced out of the transcript.
  • The remaining exon sequences are joined together to form messenger RNA (mRNA), which leaves the nucleus and directs protein synthesis.

Since only a fraction of genes are expressed in any specific cell type, capturing the mRNA of a particular cell allows researchers to determine which genes are active. This captured mRNA is converted into a complementary DNA strand known as cDNA, which unlike the original gene contains only the exon sequences (introns removed). Building comprehensive cDNA libraries for various cell types formed a major component of the Human Genome Project and also led to disputes regarding patenting of cDNA sequences.

The Matching Problem

Once cDNA is obtained, the challenge is to locate the corresponding gene within a long, sequenced stretch of genomic DNA. This becomes a string alignment problem: aligning the shorter cDNA string against the longer genomic DNA string in a manner that correctly reveals the locations of the exons. Since the cDNA lacks introns, the expected alignment consists of a few short regions of very high similarity (matching exons) separated by long gaps (corresponding to introns). Some mismatches and spaces may occur within the matching regions due to sequencing errors, but these should form only a small percentage of each region.

Why an Objective Function Without Gaps Fails

If the scoring scheme includes only matches, mismatches, and spaces (with no explicit gap term), the resulting alignment does not correctly capture the exon structure. The reasoning is as follows:

  • A low space penalty is required so that the alignment is not forced to keep the cDNA compressed together, since long intron gaps must be permitted.
  • A high mismatch penalty is required, since only a small number of mismatches (due to sequencing errors) are expected.
  • Given these settings, but with no gap term, the optimal alignment tends to become simply the longest common subsequence (LCS) between the cDNA and the long genomic string.
  • Since DNA has only four possible characters and introns are long, this LCS is likely to match nearly all characters of the cDNA, producing a higher score than the true, biologically correct exon-matching alignment (which would leave a few mismatches due to sequencing errors).
  • However, this LCS-based alignment scatters the cDNA thinly across the entire genomic sequence instead of correctly picking out the compact exon regions, thereby failing to reflect true biology.

The Solution: Adding a Gap Term

By introducing a constant gap weight Wg into the objective function for each gap present, and tuning Wg appropriately, the optimal alignment can be made to correctly cut the cDNA into segments matching its exons in the longer DNA sequence. This demonstrates the practical necessity of the gap concept for solving real biological alignment problems.

Processed Pseudogenes

A more complex variant of this problem involves pseudogenes — near-copies of functional genes that have mutated enough to lose their function, and which are common in eukaryotes. Pseudogenes are believed to arise through gene duplication followed by mutation, representing either failed trial genes or potential future genes. A pseudogene typically retains both introns and exons of its original gene and may be located far from, or even on a different chromosome than, its parent gene.

A more specific and interesting case is the processed pseudogene, which contains only exon sequences (introns already removed), formed when an mRNA is reverse-transcribed back into DNA (via the enzyme Reverse Transcriptase) and randomly inserted into the genome. Locating such processed pseudogenes is similar to, but more difficult than, cDNA matching, since the actual cDNA sequence is not available in hand; it requires repeat-finding methods, local alignment techniques, and careful gap-weight selection.

Caveat: Alternative Practical Approach

Although the gap-weighted alignment model is theoretically important, in practice, cDNA and pseudogene matching problems are often approached using local alignment without explicit gap weighting. Local alignment algorithms can identify multiple highly similar substring pairs (not just the single best pair). In the cDNA/pseudogene context, these individual highly similar pairs typically correspond to the exons themselves, and the complete match between cDNA and the gene can be reconstructed by piecing together several non-overlapping local alignments. This method is, in fact, the more commonly used approach in practical applications.

Conclusion

The introduction of gaps as a distinct construct in sequence alignment allows the alignment model to reflect real biological mutational events such as insertions, deletions, transposon activity, and DNA slippage, which typically occur as single events affecting long stretches of sequence rather than as many independent single-character changes. By assigning an appropriate gap weight (Wg) in the objective function, alignments can be guided to correctly represent structures such as exon-intron boundaries in cDNA matching, evolutionary relationships through shared gaps, and protein domain differences. This makes the concept of gaps essential for producing alignments that are both computationally optimal and biologically realistic.


Discover more from RathBiotaClan

Subscribe to get the latest posts sent to your email.

Previous Post

Local alignment-finding substrings of high similarity

Next Post

Choices for Gap Weights: Constant, Affine & Arbitrary Gap Weights in Sequence Alignment

Shibasis Rath

Shibasis Rath

Shibasis Rath is the founder and editor of RathBiotaClan. He holds a B.Sc. in Zoology and a master's degree in Bioinformatics, and writes about genetics, evolution, zoology and the wider life sciences, turning peer-reviewed research into clear, accurate news for general readers.

Every article links to the original study, and health stories are written as research summaries, not medical advice.

RathBiotaClan: Connecting research to reality.

Related Posts

Multiple alignment with sum of pairs and consensus objective functions
BIOINFORMATICS

Multiple alignment with sum of pairs and consensus objective functions

November 19, 2026
Why Is Multiple String Alignment Harder Than Pairwise Alignment?
BIOINFORMATICS

Why Is Multiple String Alignment Harder Than Pairwise Alignment?

November 19, 2026
Multiple Sequence Comparasion For Structural Interference
BIOINFORMATICS

Multiple Sequence Comparasion For Structural Interference

November 19, 2026

POPULAR NEWS

man in black shirt holding black smartphone

Watching TikTok and Instagram Reels Videos Deactivates the Brain’s Cognitive Control Network, Study Finds

by Shibasis Rath
August 20, 2026
1

Millions of people finish short video after short video every day; a new brain-scan study shows that the very act...

Gaps in Sequence Alignment and Their Role in cDNA Matching

Gaps in Sequence Alignment and Their Role in cDNA Matching

by Shibasis Rath
July 4, 2026
0

In the study of string alignment and dynamic programming, the basic elements used to evaluate an alignment are matches, mismatches,...

Scientists Have a Fascinating Hypothesis About Why Smart People Should Spend Less Time With Friends

Scientists Have a Fascinating Hypothesis About Why Smart People Should Spend Less Time With Friends

by Shibasis Rath
August 15, 2026
0

Higher intelligence links to lower life satisfaction when people socialize more often with friends. Researchers found this pattern in data...

Chewing gum releases thousands of microplastic particles directly into your mouth with every piece you chew

Chewing gum releases thousands of microplastic particles directly into your mouth with every piece you chew

by Shibasis Rath
May 8, 2026 - Updated on July 2, 2026
0

Microplastics are turning up in places researchers never expected: deep-sea sediments, Arctic ice, and human blood. Now, a UCLA pilot...

a group of gen Z kids walking down a street

Is Gen Z the First Generation Less Intelligent Than Their Parents?

by Shibasis Rath
February 5, 2026 - Updated on March 14, 2026
0

Gen Z intelligence decline is emerging as a serious concern among neuroscientists and education researchers. For over a century, each...

EDITOR CHOICE‘S

  • All
  • NEWS
  • SPOTLIGHTS
Fruit Flies Without Heads Keep Cleaning Their Wings, Scientists Found the Cells Behind It

Fruit Flies Without Heads Keep Cleaning Their Wings, Scientists Found the Cells Behind It

by Shibasis Rath
November 30, 2026
0

Touch the wing of a fruit fly with no head, and its back legs still sweep the wing clean. That...

A New Lupus Drug Is Being Tested as a Simpler Alternative to CAR-T Cell Therapy

A New Lupus Drug Is Being Tested as a Simpler Alternative to CAR-T Cell Therapy

by Shibasis Rath
November 29, 2026
0

T cell engagers, lab-made antibodies that steer immune cells against rogue B cells, are drawing interest as a new lupus...

prostate-cancer

Targeted Radiation Therapy Slows Disease Progression in Advanced Prostate Cancer

by Shibasis Rath
November 27, 2026
0

A targeted radioactive therapy may give men with advanced prostate cancer more time before their disease worsens. In a phase...

Scientists Reveal How CRISPR Systems Recruit Enzymes for Precise DNA Insertion

Scientists Reveal How CRISPR Systems Recruit Enzymes for Precise DNA Insertion

by Gupteswar Acharya
November 26, 2026
0

Cryo-EM reveals how CRISPR-associated transposases recruit proteins and activate precise DNA insertion in bacteria. Researchers captured three structural stages of...

ADVERTISEMENT

Google News

Get RathBiotaClan stories in your Google News feed.

Add to Google News

RathBiotaClan – RBC

RathBiotaClan

Connecting Research to Reality.

Trusted life science news and biology research for students, researchers, and science enthusiasts.

About Us

Privacy Policies

Contact Us

Editorial Standard

Latest Posts

  • Fruit Flies Without Heads Keep Cleaning Their Wings, Scientists Found the Cells Behind It
  • A New Lupus Drug Is Being Tested as a Simpler Alternative to CAR-T Cell Therapy
  • Targeted Radiation Therapy Slows Disease Progression in Advanced Prostate Cancer
  • Scientists Reveal How CRISPR Systems Recruit Enzymes for Precise DNA Insertion

SHIBASIS RATH

Contact Mail

rathbiotaclan@gmail.com

No Result
View All Result
MSME (Udyam) Certified Science Platform
Govt. of India

Get Us On PlayStore

playstore app for rathbiotaclan
  • About RathBiotaClan | Life Science & Biology Research
  • Advertise With Us
  • Cancellation and Refund Policy
  • Contact Us
  • Contribute
  • Editorial Standards
  • Home
  • Pricing Details
  • Privacy Policies
  • Shipping Policy
  • Terms & Conditions

© 2026 RathBiotaClan. All rights reserved.

Welcome Back!

Sign In with Google
OR

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Sign Up with Google
OR

Fill the forms below to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • HEALTH SCIENCE
  • NEUROSCIENCE
    • PHYSIOLOGY
    • IMMUNOLOGY
    • CANCER
  • DISCOVERIES
    • SPOTLIGHTS
    • STUDENT PORTAL
    • SCIENCE FEATURED
  • MOLECULAR BIOLOGY
    • GENETICS
    • BIOTECHNOLOGY
    • BIOINFORMATICS
    • BIOCHEMISTRY
    • BIOPHYSICS
  • ZOOLOGY & ECOLOGY
    • ENVIRONMENTAL SCIENCE
    • ECOLOGY
    • EVOLUTION
  • MICRO & PLANT SCIENCE
    • MICROBIOLOGY
    • CELL BIOLOGY
    • DEVELOPMENTAL BIOLOGY
  • PSYCHOLOGY
  • Login
  • Sign Up
SAVED POSTS

© 2026 RathBiotaClan. All rights reserved.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.

Discover more from RathBiotaClan

Subscribe now to keep reading and get access to the full archive.

Continue reading