Sequence assembly from corrupted shotgun reads

Shirshendu Ganguly, Elchanan Mossel, Miklós Z. RáczISIT 2016

Abstract

The prevalent technique for DNA sequencing consists of two main steps: shotgun sequencing, where many randomly located fragments, called reads, are extracted from the overall sequence, followed by an assembly algorithm that aims to reconstruct the original sequence. There are many different technologies that generate the reads: widely-used second-generation methods create short reads with low error rates, while emerging third-generation methods create long reads with high error rates. Both error rates and error profiles differ among methods, so reconstruction algorithms are often tailored to specific shotgun sequencing technologies. As these methods change over time, a fundamental question is whether there exist reconstruction algorithms which are robust, i.e., which perform well under a wide range of error distributions. Here we study this question of sequence assembly from corrupted reads. We make no assumption on the types of errors in the reads, but only assume a bound on their magnitude. More precisely, for each read we assume that instead of receiving the true read with no errors, we receive a corrupted read which has edit distance at most ε times the length of the read from the true read. We show that if the reads are long enough and there are sufficiently many of them, then approximate reconstruction is possible: we construct a simple algorithm such that for almost all original sequences the output of the algorithm is a sequence whose edit distance from the original one is at most O(ε) times the length of the original sequence.

Introduction

DNA sequencing is the bedrock of modern biology, yet the "shotgun" process of breaking a genome into tiny fragments (reads) and piecing them back together remains a significant computational challenge. As sequencing technologies evolve—moving from the short, high-accuracy reads of Illumina to the long, error-prone reads of Oxford Nanopore—algorithms often struggle to keep up.

In their paper, "Sequence assembly from corrupted shotgun reads," Shirshendu Ganguly, Elchanan Mossel, and Miklós Z. Rácz tackle a fundamental question: Can we design an assembly algorithm that is truly robust, performing well regardless of whether the errors are deletions, insertions, or substitutions?

The Adversarial Error Model

Traditional assembly algorithms are often "brittle"—they are finely tuned to specific error profiles, such as a 1% substitution rate. However, emerging third-generation sequencing methods produce long reads with high error rates (10-22%) and varied error profiles.

The authors address the gap between specialized algorithms and the need for a general, robust theory of assembly. They move away from assuming specific error distributions (like i.i.d. noise) and instead adopt an adversarial corruption model. In this model, an "adversary" can change any base in a read, as long as the total number of changes (the edit distance) doesn't exceed a certain fraction ($ε$) of the read's length. The goal is to find an algorithm that can still reconstruct the original sequence $X$ approximately, even when every single read is corrupted in the worst possible way.

A schematic showing the shotgun sequencing process, the introduction of adversarial read errors, and the final approximate reconstruction.

A Robust Sequential Algorithm

The core of the paper is a sequential reconstruction algorithm. Unlike complex graph-based assemblers (like De Bruijn graphs), this approach is elegantly simple and greedy:

  1. Initialization: Start with an arbitrary corrupted read from the pool.
  2. Extension: Search the pool of available reads for one that "overlaps" with the current end of the reconstructed sequence.
  3. Thresholding: An overlap is accepted if the edit distance between the end of the current sequence and the beginning of the new read is below a specific threshold (roughly $2ε L$).
  4. Iteration: Concatenate the non-overlapping part of the new read and repeat until the sequence can no longer be extended.
  5. Bidirectionality: Perform the same process in the opposite direction to cover the entire genome.

The mathematical heavy lifting involves proving that this simple greedy approach doesn't get "lost" by accidentally jumping to a different, similar-looking part of the genome.

Key Insights: The Phase Transition of Edit Distance

A crucial "aha moment" comes from observing how the edit distance between two random strings changes as they overlap. If the overlap is significant, the edit distance is low (proportional to the shift). If the overlap falls below a certain threshold, the strings suddenly look completely independent, and the edit distance jumps to a much higher baseline.

The left plot shows that the average edit distance between independent random strings grows linearly with length n. The right plot illustrates the phase transition: as the shift (overlap) increases, the edit distance stays low until it hits a threshold and levels off.

By framing the problem around edit distance rather than specific error types, the authors ensure the algorithm is robust. It doesn't matter how the read was corrupted; it only matters how much. Furthermore, in an adversarial setting, perfect reconstruction is often impossible (the adversary could simply delete a unique segment). By relaxing the goal to "approximate reconstruction"—where the output is within $O(ε n)$ edit distance of the original—the authors find a solvable regime.

Key Results and Guarantees

The authors evaluate their ideas using simulated data where the "genome" is a sequence of i.i.d. characters chosen uniformly from the DNA alphabet. Their primary findings include:

  • Theorem 3.2: If the read length $L$ is logarithmic relative to the total sequence length $n$ (specifically $L > \bar{C}/ε$) and there are enough reads to ensure coverage, approximate reconstruction is guaranteed with high probability.
  • Approximation Factor: For small error rates $ε$, the algorithm produces a sequence whose edit distance from the original is at most roughly $3ε n$.
  • Adversarial Tolerance: The results hold even if the errors are not random but are chosen maliciously to confuse the assembler, provided they stay within the $ε$ budget.

Limitations and Future Work

While this work provides a strong theoretical foundation, several challenges remain. The current analysis assumes the DNA sequence is essentially random noise (i.i.d.). Real genomes are full of long, complex repeats that are much harder to resolve. Extending this to Markov models or sequences with specific repeat statistics is a key next step. Additionally, while the authors show approximate reconstruction is possible, they haven't yet defined the information-theoretic limits—the best possible approximation factor an adversary could force.

Summary updated

BibTeX
@inproceedings{ganguly2016sequence,
  author = {Shirshendu Ganguly and Elchanan Mossel and Miklós Z. Rácz},
  title = {{Sequence assembly from corrupted shotgun reads}},
  booktitle = {ISIT},
  year = {2016},
  url = {https://openreview.net/forum?id=UVqvVz75le},
}
Figure