The String Reconstruction Problem
Let’s learn different possible ways for string reconstruction.
Genome assembly is more difficult than you think
Before we introduce a computational problem modeling genome assembly, we’ll take a moment to discuss a few practical complications that make genome assembly more difficult than the Newspaper Problem.
- First, DNA is double-stranded, and we have no way of knowing a priori which strand a given read derives from, meaning that we’ll not know whether to use a read or its reverse complement when assembling a particular strand of a genome.
- Second, modern sequencing machines are not perfect, and the reads that they generate often contain errors. Sequencing errors complicate genome assembly because they prevent us from identifying all overlapping reads.
- Third, some regions of the genome may not be covered by any reads, making it impossible to reconstruct the entire genome.
Since the reads generated by modern sequencers often have the same length, we may safely assume that reads are all k-mers for some value of k. The first part of this chapter will assume an ideal — and unrealistic — situation in which all reads come from the same strand, have no errors, and exhibit perfect coverage, so that every k-mer substring of the genome is generated as a read. Later, we’ll show how to relax these assumptions for more realistic datasets.
Reconstructing strings from k-mers
We’re now ready to define a computational problem modeling genome assembly. Given a string Text, its k-mer composition Composition (Text) is the collection of all k-mer substrings of Text (including repeated k-mers). For example:
Composition(TATGGGGTGC) = {ATG,GGG,GGG,GGT,GTG,TAT,TGC,TGG}. |
---|
Note that we’ve listed k-mers in lexicographic order (i.e., how they would appear in a dictionary) rather than in the order of their appearance in TATGGGGTGC. We’ve done this because the correct ordering of reads is unknown when they’re generated.
Get hands-on with 1200+ tech skills courses.