---
title: "Assembling large genomes with single-molecule sequencing and"
description: "Berlin and colleagues use MinHash to find overlaps between noisy long DNA reads, making it faster to assemble large genomes without a reference."
canonical: "https://research.elamur.ai/free/en/papers/berlin-2015-assembling-large-genomes-single-molecule/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/berlin-2015-assembling-large-genomes-single-molecule/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Assembling large genomes with single-molecule sequencing and locality-sensitive hashing

# Assembling large genomes with single-molecule sequencing and locality-sensitive hashing

Paper · 2015 · Konstantin Berlin, Sergey Koren, Chen-Shan Chin et al.

**Authors:** Konstantin Berlin, Sergey Koren, Chen-Shan Chin, James P. Drake, Jane M. Landolin and Adam M. Phillippy · **Year:** 2015 · **Venue:** Nature Biotechnology · **Licence:** [CC BY-NC-ND (OpenAlex best open-access location)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

Cited by **4** papers in our library of more than 163,000 papers whose bibliographies we read · Nature Biotechnology · [licence](https://creativecommons.org/licenses/by-nc-nd/4.0/)

- [PDF](https://www.biorxiv.org/content/biorxiv/early/2014/08/14/008003.full.pdf)
- [DOI 10.1038/nbt.3238](https://doi.org/10.1038/nbt.3238)

## Summary

Long sequencing reads can carry enough context to place a stretch of DNA that appears in several parts of a genome. The difficulty is finding where those reads overlap when each contains errors and the collection is large. Berlin and colleagues address that search with the MinHash Alignment Process, or MHAP. It represents each read by a compact sketch of its short sequence fragments. Reads whose sketches agree often enough are compared in more detail to estimate where their shared sequence begins and ends. This makes overlap detection cheap enough to use in de novo assembly, which reconstructs a genome without using a reference to guide the reconstruction.

The authors integrate MHAP into the PBcR assembly pipeline in Celera Assembler. They apply it to single-molecule, real-time sequencing data from a bacterium, a yeast, a flowering plant, a fruit fly, and a haploid human cell line. On the fruit fly, the assembly ran about 600-fold faster than the earlier approach and included a 25Mbp contig spanning chromosome arm 3L. A contig is an uninterrupted stretch of assembled sequence. The authors estimate that the fly assembly could be computed in the cloud for under $300. The human assembly reached a contig NG50 of 4,320,471 bases, which means that contigs at least that long accounted for half the estimated genome size.

The paper checks whether the longer contigs preserve recognizable sequence. In the fly, 16,604 annotated genes, or 96% of those examined, aligned from end to end to individual contigs before final polishing. The authors also recovered many copies of repetitive elements and identified a contig that extends into the telomere at the end of fly chromosome arm 2R. For the human cell line, the long-read assembly placed 97% of the major histocompatibility complex region in 2 contigs. Alignments to the fly and human references also identified places where the new contigs might fill longstanding gaps. Those proposed closures require further validation.

The results show how a probabilistic search can support accurate assembly when many reads cover the same sequence. A sketch can miss an individual overlap, while other reads from the region can still supply the links and base evidence needed for reconstruction. The strongest results concern the high-coverage, inbred or haploid samples studied here. Separating structurally different chromosome copies remains a separate challenge, and polishing the assembled bases adds computing time even after the overlap search has become much faster.

## Deep dive: Assembling large genomes with single-molecule sequencing and locality-sensitive hashing

Berlin and colleagues use MinHash to find overlaps between noisy long DNA reads, making it faster to assemble large genomes without a reference. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why repeats can break an assembly

A sequencing read records the order of bases in a piece of DNA. Assembly begins with many such pieces and tries to recover a sequence that accounts for them. In a de novo project, the position of a read is unknown at the outset. The assembler has to infer which reads belong together, how they should be oriented, and how far they should be shifted relative to one another. It then has to decide which bases to report where the reads disagree. The resulting sequence serves as a basis for later analyses, so both the arrangement of large stretches and the accuracy of individual bases matter.

A repeated stretch makes placement ambiguous. Suppose a read ends inside a sequence that occurs in several places. Its end may agree equally well with reads from different copies. If the available reads all end within the repeat, the shared sequence alone gives the assembler little basis for deciding which flanking region should follow which. A read that starts in recognizable sequence on one side and reaches recognizable sequence on the other carries evidence for a specific connection. This is why the length of a read matters in relation to the length of the repeats it encounters. In placement terms, the most useful extra bases may be the ones beyond the repeat.

The paper describes a shift from first-generation Sanger sequencing to methods that could generate much more data but usually produced reads only a few hundred bases long. Those reads proved useful for many analyses. In assembly, their length left major repeat families unresolved, and the authors describe the resulting genomes as more fragmented than earlier Sanger assemblies. Evidence connecting separated reads can help establish a scaffold, an arrangement of contigs that may still contain gaps. Continuous sequence through a repeat supplies a different kind of evidence. It records the intervening bases as part of the assembly.

Single-molecule sequencing changed the length available to work with. The authors describe usable reads upwards of 50Kbp from Pacific Biosciences’ single-molecule, real-time technology, abbreviated SMRT. They also cite early nanopore results suggesting read lengths of >10Kbp. A kilobase is a unit of sequence length, and Kbp denotes that length in base pairs. The attraction of these reads was their ability to reach across repetitive regions that had previously interrupted an assembly. Their drawback at the time was that an individual read could contain many extra, missing, or substituted bases.

#### Why noisy long reads are expensive to compare

The paper describes earlier work suggesting that SMRT errors were mostly random. If reads covering a region make sufficiently independent mistakes, other observations can support the underlying base at a position where any individual read is wrong. Coverage describes the amount of sequence collected relative to the size of the genome. High coverage gives the assembler multiple observations from which it can infer a consensus. Earlier projects had already shown that this approach could produce complete microbial assemblies. Some used accurate short reads to correct the long reads first, while subsequent work showed that long reads could correct one another.

That redundancy also enlarges the set of reads to search. In overlap-layout-consensus assembly, overlaps provide evidence for the layout, and the layout provides the context for estimating a consensus sequence. The initial search has to find the pairs worth keeping from a much larger set of possible pairs. A local alignment can look for agreement after shifting the reads and allowing for extra or missing bases. Doing that detailed work for every pair would be expensive. For the initial SMRT assembly of the fruit fly cited in the paper, the computation consumed over 600,000 CPU hours, with over 95% of the runtime spent finding overlaps. A CPU hour measures accumulated processor work. Parallel execution can reduce the time spent waiting while the total processor work remains large.

Earlier search methods used exact short fragments to identify the pairs worth aligning. A read is broken into overlapping windows called k-mers, where k specifies the number of bases in a window. An index can retrieve other reads containing a matching fragment without first aligning them. Short fragments tend to survive sequencing errors more often, but they also recur in unrelated reads. An index lookup for a common fragment can therefore produce a long list of candidates, all of which demand some processing. Longer fragments reduce this kind of accidental agreement, while errors make exact matches across those fragments harder to find. Long reads offer more chances for both genuine and incidental matches.

The authors describe two ways to index that evidence. A hash table can group reads by an integer fingerprint for each fragment. A suffix array can organize the suffixes of the reads for sequence lookup. These structures help locate matching material, but the amount of material considered still grows with read length. In a repetitive collection, counting the matches found through the index can cost more than looking up the fragments themselves. The challenge is therefore to reduce how many pieces of evidence each read contributes to the search, while retaining enough to distinguish worthwhile pairs.

#### Why a sketch could help

MinHash had already been used to compare documents, including webpages, by reducing a large collection of fragments to a smaller collection of fingerprints. The paper also describes applications to images and to sequence similarity and clustering. A genome read can be treated as a string for the same purpose. The authors connect this idea to minimizers, which had previously been used to reduce the amount of sequence information retained during comparison. MHAP applies the idea at the level of whole reads and uses the resulting estimates to decide which pairs merit a closer look.

There are two kinds of information to preserve. To retrieve likely pairs from a large collection, it helps to know whether their strings contain substantially more shared material than unrelated reads do. To lay out the reads, the assembler needs an offset and an estimate of the span they share. A sketch made from fragment identities provides the first kind of evidence. Positions of matching fragments in the original reads provide the second. Separating those tasks concentrates the more detailed calculation on pairs that already have some evidence of agreement.

### The method, step by step

#### From a read to a candidate overlap

MHAP starts with the DNA strings produced by sequencing. It slides a window along each string and gives every fragment an integer fingerprint. For a given hash function, the algorithm keeps the lowest fingerprint found anywhere in the read. The fragment responsible for that value is called a min-mer. Different hash functions rank the same fragments differently, so repeating this operation gives a read several chances to retain different fragments. The sketch is the ordered collection of the retained values. Two entries are compared when they come from the same hash function.

Sharing a fragment does not guarantee that two reads share a minimum. The shared fragment has to rank below the other fragments in both reads for that hash function. Where the reads have substantial fragment content in common, more of the rankings tend to put a shared fragment first. Where they have little content in common, this happens less often. A sequence error can remove several exact fragments around its position, but a long region can still contribute many fragments unaffected by that error. The sketch draws evidence from across the read, giving the search a chance to retain some of those shared fragments.

The first filter uses an index to find pairs that share enough sketch entries. The next filter looks at where exact fragment matches occur in each surviving pair. If most of those matches imply a similar shift, their positions indicate an approximate overlap. The algorithm then scores the evidence within that span. A pair with stretches that extend beyond the overlap can therefore pass on the strength of the region it actually shares. The assembly pipeline uses the retained overlaps to group reads for correction and then constructs contigs from corrected sequence.

From noisy long reads to assembled contigs The steps in order.

Figure 1 illustrates the distinction between the sketch and positional evidence. The example uses k=3, which gives 12 fragment positions per read, and a sketch size of H=4. The sketches share the entries from the first two rankings. Their matching fraction is 0.5, while the actual Jaccard similarity of the fragment sets is 0.22. The example makes the estimate easy to follow and shows how far a very small sketch can depart from the underlying value. The authors use the positions of the matching fragments ACC and CCG to illustrate how the overlap offset can then be estimated.

#### What a direct fragment count measures

The mathematical argument begins with the number of windows available in a read. Starting at each successive base gives one more window until there are too few bases left to fill it.

```
K = L − k + 1
```

Here K is the number of fragment positions, L is the read length, and k is the length of each fragment. The final 1 counts the first valid starting position. The same fragment can occur at more than one position, so the number of distinct fragment identities can be smaller than the number of windows. In the part of the analysis that equates the two, the authors assume repeats and hash collisions can be neglected.

The authors first consider an idealized random read drawn from a finite alphabet. A specified fragment can match a window by chance. Its chance of appearing somewhere in the read grows as the number of windows grows.

```
Pᵣₐₙ𝒹 = 1 − (1 − |Σ|⁻ᵏ)ᴷ
```

Pᵣₐₙ𝒹 is the probability that a specified random fragment occurs in the first read under the paper’s random-sequence assumptions. Σ is the alphabet and the bars around it mean the number of symbols it contains. For DNA, those symbols are A, C, G, and T. The exponent −k gives the reciprocal of the number of possible length-k strings under uniform sampling. K is the number of window positions. The expression in parentheses accounts for missing the fragment at a window, and the outer subtraction takes the complement of missing it everywhere in the idealized calculation.

```
E[Xᵣ] = Pᵣₐₙ𝒹 K
```

E denotes expectation, Xᵣ is the number of chance matches counted in the second random read, and K is that read’s number of windows in the equal-length setup. Pᵣₐₙ𝒹 gives the chance that a particular fragment from the second read occurs somewhere in the first. The product expresses the expected count over the positions considered. A chance match in this calculation concerns the content of a fragment. It provides no evidence by itself that the two reads came from the same place.

For reads genuinely covering the same sequence, a fragment can match when the observed bases agree at corresponding positions. The paper writes an approximation for substitution errors. A position can agree because both reads report the original base or because both substitute the same alternative.

```
Pₒᵥₗ ≈ ((1 − ε)² + ε²/(|Σ| − 1))ᵏ
```

Pₒᵥₗ is the approximate probability of agreement for a corresponding length-k window. The symbol ≈ marks the approximation. The per-position error probability is ε. The term (1 − ε)² represents both observations retaining the original base. The term ε² represents both observations changing the base, and division by |Σ| − 1 accounts for the possible alternative symbols under the substitution assumptions. Raising the entire expression to k extends the positional calculation to a fragment. Insertions and deletions change the correspondence of positions, so the authors treat this expression as an approximation when discussing those kinds of errors.

```
E[X꜀] = (Pₒᵥₗ + Pᵣₐₙ𝒹 − Pₒᵥₗ Pᵣₐₙ𝒹) M + Pᵣₐₙ𝒹 (L − M)
```

X꜀ is the match count for reads with a shared region, and E again denotes expectation. M is the number of fragment positions in the shared region. The expression uses L for the total span in its count, while the earlier exact window count is denoted K. Pₒᵥₗ supplies the chance of positional agreement in the overlap, and Pᵣₐₙ𝒹 supplies the chance of incidental agreement. Subtracting the product avoids counting a match twice when both sources of agreement apply in the probability calculation. The final term supplies the expected accidental matches outside the shared region.

These expressions explain why a large absolute match count can be misleading. Adding sequence can add chances to match everywhere in the collection, even in reads that have no overlapping origin. Increasing k lowers the chance of accidental matches, but needing every base in a longer fragment to agree can discard real evidence from noisy reads. This tradeoff precedes the choice of index. An index can retrieve common fragments efficiently and still leave the expensive task of updating counts for many candidate reads.

The methods describe the cost in terms of N reads of length on the order of L. Smith–Waterman local alignment uses work on the order of O(L²) for a pair, giving O(N² L²) for the naive all-pairs calculation. In this notation, O describes how work grows with the size of the input, and the superscript ² denotes squaring. For a direct fragment index, the authors give a regime where processing one read can take O(KN) instead of the O(K) cost of the lookups alone, because each lookup can lead to updates for many reads. Repeating that work over the whole collection gives O(KN²) in that regime. Larger k reduces incidental matches, within the bounds imposed by sequencing error and overlap length.

#### How a hash minimum estimates similarity

Jaccard similarity compares the shared contents of two sets with all contents found in either set. Here the sets contain fragment fingerprints. This comparison asks how much of their combined content is shared, giving the absolute match count a scale.

```
J(S₁, S₂) = |Γ(S₁) ∩ Γ(S₂)| / |Γ(S₁) ∪ Γ(S₂)|
```

S₁ and S₂ are the two reads. Γ(S) is the set of integer fragment fingerprints for read S, and J is their Jaccard similarity. The symbol ∩ takes the intersection, which contains the fingerprints present in both sets. The symbol ∪ takes the union, which contains each fingerprint found in either set. The bars around a set give its cardinality, or number of distinct entries. The slash divides the shared count by the combined count.

```
J(S₁, S₂) = w / (2K − w)
```

This is the version for two reads with K distinct fragments each, under the paper’s assumptions about negligible repetition and fingerprint collisions. The symbol w is the number of shared fingerprints. The term 2K counts the entries supplied by the two reads before duplicate entries between the sets are accounted for. Subtracting w gives the size of the union. Under the conditions described by the authors, similar fractions of shared sequence can give similar Jaccard values even for reads of different lengths. Both the shared count and the union grow with length in that comparison.

An exact calculation can sort the fragment fingerprints from each read and compare the sorted lists in a merge. The authors give O(L log L) for sorting and comparing a pair, where log is a logarithm. When the sorted lists can be reused across comparisons, the merge itself takes O(L). This is cheaper than computing a detailed alignment for every pair, although doing an exact comparison still requires processing the fragments of each read.

MinHash avoids processing those full lists during candidate retrieval. Imagine ranking the fingerprints in the union under a random ordering. The winning fingerprint can occur in both reads, or it can occur in only one. If it occurs in both, both sketch entries select it. If it occurs in just one, the other read must select something else. Under the random ordering assumed in the argument, the winning fingerprint is equally likely to be any member of the union. Its chance of belonging to the intersection is therefore the Jaccard similarity.

```
P[min Γ(S₁) = min Γ(S₂)] = J(S₁, S₂)
```

P denotes probability over the hash ordering. The operation min returns the lowest fingerprint in a set for that ordering. The equality inside the brackets is the event that the reads retain the same value. The J on the right is the full-set similarity of the original reads, with S₁, S₂, and Γ having the meanings above. A single sketch entry supplies one observation of the event. The matching fraction across the sketch estimates its probability.

```
f(x; H, p) = 1 − ∑ᵢ₌₀ˣ⁻¹ C(H, i) pⁱ (1 − p)ᴴ⁻ⁱ
```

The function f gives the probability of observing at least x matching entries in a sketch of size H when the probability of a match at each entry is p. Here p is the Jaccard similarity. The summation sign ∑ adds the binomial probabilities for the match count i from zero through x − 1. The coefficient C(H, i) counts the ways to choose i matching entries out of H. The powers pⁱ and (1 − p)ᴴ⁻ⁱ give the probabilities of the matches and misses for a particular choice. Subtracting the sum from 1 leaves the probability of meeting or exceeding the minimum count. This calculation treats the sketch entries as independent trials. It explains why sketch size and the required number of matches jointly determine how often a pair with a given similarity passes.

#### How the implementation narrows the search

MHAP uses different fragment lengths for the two filters. The paper calls the sketch fragment length k₁ and the second filter’s fragment length k₂. The implementation derives the initial integer fingerprint using MurmurHash3 and uses XORShift to generate the pseudorandom values for the sketch. The same fragment generates comparable values across reads, which is essential for matching corresponding sketch positions. The paper also describes identifying and excluding highly frequent fragments, those that account for over 0.001% of all fragment observations. This reduces the influence of fragments that would otherwise link a query to many reads.

The sketch index keeps a separate hash table for each position. Given a query, MHAP looks up each sketch value in its corresponding table and tallies other reads found in those lookups. Any candidate with at least the required number of matching entries can be passed to the second filter. When the full index exceeds available memory, the implementation indexes a subset and compares it with reads streamed from storage. It repeats the comparison for disjoint subsets, allowing the work to be distributed or run sequentially according to the available resources. The batches change how much index data must reside in memory at once.

The second pass uses sorted fragment fingerprints with their positions. For each match, the difference between positions in the two reads suggests how far one read should be moved relative to the other. If a fragment matches at several positions in the other read, the procedure keeps the earliest match. The authors use the median of the position differences to estimate the shift. The median depends on the middle of the ordered estimates and is less influenced by extreme differences than a mean would be. After estimating the placement and implied overlap, the algorithm counts matching fragments again within the region of interest. It extends that region by 30% on either side to accommodate shifts caused by insertions and deletions in the SMRT reads.

```
Sim(S₁, S₂) = w / M
```

Sim is the similarity score assigned to the estimated overlap between reads S₁ and S₂. In this expression, w counts the matching fragments in the region examined by the second filter, and M is the size of the overlap in the counting procedure. The score is local to the estimated shared span. The earlier Jaccard calculation concerns the fragment contents of the entire pair of reads. Those measures answer different questions for a pair whose unshared portions are large.

The first filter uses k₁ of 16. The authors describe this as a length that reduces spurious candidates while still retaining sensitivity and fitting their 32-bit fingerprints. Slightly longer fragments would have required 64-bit fingerprints in their implementation, increasing memory use without a substantial improvement in the tests they cite. They selected sketch sizes of 512 and 1256, with the larger size intended for a more sensitive search. The main overlap benchmark used a minimum of 3 sketch matches and a minimum Jaccard setting of 0.04. For the second filter they selected k₂ of 12, based on the behavior of false positive matches in 100,000bp reads. About 40% of first-filter overlaps passed the second filter at the settings described for SMRT reads.

#### From overlaps to sequence

Overlap detection supplies evidence for correcting reads. PBcR selects long reads as correction targets and uses other observations of the corresponding regions to resolve likely errors. Under the pipeline defaults used in the experiments, the longest 40X of input data was corrected using the full read collection. From the corrected reads, the longest 25X was then selected for assembly. This is a selection and consensus procedure over observed sequence. The sketch parameters govern how overlap evidence is gathered, while correction uses the sequence of the reads that supply that evidence.

The pipeline has two correction modules. FalconSense aligns supporting reads to the read being corrected. It identifies matching bases and insertion or deletion events, then uses support for those observations to infer a corrected sequence without explicitly constructing a multiple alignment. PBDAGCon builds a partial-order alignment represented by a directed acyclic graph. The graph represents different supported routes through the sequence, and an optimized path supplies a consensus. The authors used FalconSense for the assemblies other than human. For the higher-error human input, they report that PBDAGCon performed better.

Celera Assembler’s PBcR pipeline assembles the corrected read set into contigs. Where reported, the authors then applied Quiver to polish the assembled bases. It is helpful to distinguish correction of a read from polishing of an assembly. Correction prepares reads for the reconstruction. Polishing revisits the consensus once assembled regions are available. The paper makes Celera Assembler with PBcR available and reports releasing the MHAP software, the associated data and assemblies, and a configuration for reproducing the fly computation in the cloud.

### Experiments and results

#### Simulated reads and measured overlaps

The authors use simulations to study detection under known conditions, compare overlap programs on reads from actual sequencing runs, and then evaluate the assemblies produced from the full datasets. The simulation isolates the behavior of the sketch. The read benchmark measures candidate detection against a reference-derived estimate of where reads overlap. The assembly experiments measure what the full pipeline reconstructs and how much computation it consumes.

For the simulations, the authors drew reads randomly from the human reference genome and introduced errors at rates of 11.88% for insertions, 1.83% for deletions, and 1.29% for substitutions. They estimated expected Jaccard similarity using 50,000 independent trials. Their comparisons included unrelated reads, pairs with a genuine overlap, and reads compared with the corresponding reference sequence. The last comparison has a clean sequence on one side. An overlap between two noisy reads can lose an exact fragment through errors in either observation.

The authors report that a sketch of 1,000 16-mers could detect a 5Kbp overlap between simulated 10Kbp reads with a 30% overlap error rate. In a mapping comparison with 10Kbp reads at 15% error, about ~150 16-mers were enough to reach over 80% sensitivity against the human reference. The mapping result describes a different search condition from raw-read overlapping. It shows how the amount of evidence needed from the sketch can change when errors affect only the input read.

The real-read benchmark compares MHAP with BLASR. The authors also evaluated BWA-MEM, SNAP, and RazerS, whose versions at the time could not detect the noisy overlaps reliably enough for the main comparison. BLASR was tested with different limits on the candidates it retained. In the paper’s labels, 1C ties its bestn setting to the dataset’s sequencing coverage, 10C sets it to 10 times coverage, and 100C sets it to 100 times coverage. The MHAP comparison varies the sketch size. These are parameter comparisons within each program as well as a comparison between programs.

For each dataset, the benchmarking procedure randomly selected up to 1Gbp of sequence and mapped reads to the appropriate reference to infer their relative positions. In estimating sensitivity, it sampled reads and checked whether the program found reference-inferred overlaps longer than the 2,000bp minimum. To estimate positive predictive value, or PPV, it sampled the overlaps reported by the program. If reference placement failed to support an overlap, the authors checked the proposed region with Smith–Waterman local alignment. They counted it as a positive when it met the overlap length requirement and had at least 70% sequence identity. This additional check allows some valid sequence similarities involving repeats to count as positives in spite of ambiguous reference placement.

Sensitivity is the percentage of benchmark positives detected. Specificity measures how frequently benchmark negatives are correctly rejected. PPV measures how frequently a reported candidate is positive under the evaluation procedure. These denominators matter because a search can reject nearly all the unrelated pairs and still include questionable candidates among its reported positives. The authors describe sampling to estimate overlap performance to ±1%. The table reports specificity as 100% in all completed comparisons. Some PPV values are lower, especially in the human dataset, so the reported specificity should be read at the precision of the benchmark.

Overlap sensitivity on A. thaliana Ler-0 reads The larger MHAP sketch recovers the most reference-inferred overlaps among the tested settings.

**The numbers**

| System or setting | sensitivity % |
| --- | --- |
| BLASR 1C | 2 |
| BLASR 10C | 11 |
| BLASR 100C | 68 |
| MHAP 512 | 69 |
| MHAP 1256 (this paper) | 88 |

On the plant dataset the most sensitive tested MHAP setting took 21.27 CPU hours. The broadest BLASR search took 445.27 CPU hours, and the small MHAP sketch took 13.34 CPU hours. Every setting in that comparison had a reported PPV of 100%. In the human overlap benchmark, MHAP 1256 had 77% sensitivity and 92% PPV in 17.19 CPU hours, while BLASR 100C had 71% sensitivity and 93% PPV in 189.45 CPU hours. The best results for sensitivity and for PPV can therefore belong to different settings. The plant and human examples make it possible to see the time advantage without treating the programs as interchangeable at any particular cutoff.

BLASR could find a larger share of the benchmark overlaps on some of the other datasets when given enough time or a sufficiently broad search. In the bacterial benchmark, BLASR 10C reached 95% sensitivity and MHAP 1256 reached 85%. Their overlap computation times were 86.84 and 3.61 CPU hours, respectively. On fruit fly reads, BLASR 10C reached 89% and MHAP 1256 reached 83%, at 878.15 and 15.73 CPU hours, respectively. The fly run with BLASR 100C was stopped after seven days. In yeast, BLASR 100C reached 87% sensitivity in 2,832.67 CPU hours, while MHAP 1256 reached 83% in 31.44 CPU hours. The authors’ case for MHAP rests in part on the amount of sensitivity it preserves at much lower computational cost.

Memory use is another resource measured in the benchmark. For the bacterial reads, MHAP 1256 used 22.34 GB in the overlap test, compared with 3.71 GB for BLASR 10C. On human reads, MHAP 1256 used 10.72 GB and BLASR 100C used 5.02 GB. These figures show how compute time and memory can move in different directions in a practical search. The assembly experiments used a separate constraint of 32GB of RAM per node for overlapping, and the human assembly’s total CPU time reflects a much larger task than the sampled overlap benchmark.

#### The assembly datasets and measures

The full assemblies used 85X coverage for *Escherichia coli* K12, 117X for *Saccharomyces cerevisiae* W303, and 121X for *Drosophila melanogaster* ISO1. The *Arabidopsis thaliana* Ler-0 dataset had 144X coverage, and the human CHM1htert cell line had 54X. The yeast was sequenced with P4C2 chemistry, which the paper describes as yielding shorter reads than P5C3, the chemistry used for the fly and plant data. The human sample was haploid. These differences are part of the context for comparing continuity and computational cost across the organisms.

Contig length can be summarized with N50. To interpret it, consider the assembled stretches ordered from longest to shortest and ask what length marks the halfway point in cumulative sequence. The assembly table reports NG50 using an estimated genome length from the reference, excluding unknown sequence, as the basis for that halfway point. Its assembly-performance percentages compare contig continuity with the N50 of reference segments. Those percentages describe a length benchmark. Base identity, assembled span, and reference concordance are recorded through other measurements. The authors report CPU hours consumed by overlapping and by the complete assembly separately, so that a gain in the overlap search can be distinguished from work elsewhere in the pipeline.

The reported contig comparisons use a cutoff of >200 bp. The PBcR assembly totals include contigs supported by at least 50 reads. For per-chromosome comparisons, the authors align the assemblies to their references and omit unassigned scaffolds. They derive reference segments by splitting at runs of at least three unknown bases. Therefore, references in the continuity comparisons provide a measured benchmark for what is represented in a particular reference release. They also contain gaps, and in several cases they come from a different strain from the reads being assembled.

#### Bacterium, yeast, and flowering plant

For *E. coli* K12, PBcR-MHAP reconstructed the entire genome in 4.6 CPU hours. The authors report a wall time of 20 minutes on a 16-core desktop. SPAdes used 4.1 CPU hours for its comparison with 85X of Illumina short reads from the same genome. Both assemblies exceeded 99.999% nucleotide accuracy in this comparison, but the short-read assembly was much more fragmented and had more structural errors. The long-read draft had more single-base insertion and deletion errors before polishing. Quiver added 6.6 CPU hours and left 11 consensus errors in the long-read assembly. The SPAdes assembly had 96 consensus errors. The comparison illustrates how high base accuracy can coexist with fragmentation, and how much the long-read consensus can change after its structure has been established.

In the yeast, PBcR-MHAP produced an NG50 of 818,260 bases, close to the PBcR-BLASR result of 818,023. The corresponding reported assembly-performance metric was 89% for both. The newer pipeline made fewer contigs and ran eight times faster, with the authors reporting less than two hours of elapsed time on a desktop. Against a previously published reference-guided assembly of W303, the new de novo result improved N50 4-fold and placed 12 out of 16 chromosomes in gapless assemblies. Its arrangement was broadly consistent with the reference for a different yeast strain. A separate terminal-repeat assessment asked whether those assembled chromosomes extended into the telomeres themselves.

For the Ler-0 plant assembly, the table reports an NG50 of 11,164,124 bases and an assembly-performance value of 100%. The reported average number of contigs per chromosome was 8.1. The paper compares this result with an established Col-0 reference, whose NG50 was 11,194,537 bases and whose reported average was 14.6 contigs per chromosome. For Ler-0, the authors report five fewer gaps per chromosome on average and broadly similar chromosome structure, with a few variations they ascribe to differences between strains. Overlap detection consumed 1,693 CPU hours, and the complete Ler-0 assembly used 1,896 CPU hours. The reference comparison provides evidence of continuity at chromosome scale, with the strain difference bearing on the interpretation of local discrepancies.

#### Fruit fly continuity and cloud cost

The fruit fly combines extensive repeats with a same-strain reference comparison and a direct timing contrast between pipeline versions. PBcR-BLASR reached an NG50 of 15,297,019 bases, or 71% on the assembly-performance measure. PBcR-MHAP reached 20,985,587 bases and 98%. The resulting assembly contained a 25Mbp contig spanning chromosome arm 3L. Figure 3 shows that the contig covers the arm’s full euchromatic region, which is the more readily characterized portion in this comparison. The authors use a self-alignment to show that the reconstructed sequence also contains repeated material toward its ends, including a region near the centromere with elevated repeat density.

Total assembly CPU hours for D. melanogaster ISO1 The pipeline using MHAP requires much less processor time for the fly assembly.

**The numbers**

| System or setting | CPU hours |
| --- | --- |
| PBcR-BLASR | 629,000 |
| PBcR-MHAP (this paper) | 1,060 |

For overlap detection alone, the fly times were 608,000 CPU hours with BLASR and 894 CPU hours with MHAP. The paper reports a 680X overlap speedup and a 593X total assembly speedup in its table. Those stage-specific figures should be distinguished from the smaller read benchmark, which sampled sequence for assessing overlap quality. They also show why there was room for a large end-to-end gain on this dataset. The preceding pipeline spent nearly all of its computational effort in the part that MHAP was designed to accelerate.

Against the original Sanger assembly, the authors report a contig N50 of 21Mbp for the SMRT result and a scaffold N50 of 14Mbp for the earlier result. A scaffold can combine contigs through linking evidence and include gaps between them. In this comparison the long-read contiguity exceeded the earlier benchmark even though the quantities are defined at different levels. The paper also reports an average of 5 contigs per autosomal chromosome arm for the SMRT result. Alignments flagged 52 of the 124 gaps in the version 5 reference as possible closures, reported as 42%. Some of the spanning sequences agreed with the estimated gap lengths. Further validation would be needed to establish the closures.

The authors estimate that cloud computing for the BLASR-based fly assembly would have cost over $100,000 at the rates they used. They estimate a cost under $300 with MHAP and report that their cloud configuration could reproduce the fly assembly in less than 10 hours. They also give a cloud cost of less than $2 for the bacterial assembly including Quiver polishing. Those figures put the processor-time measurements in the context of access to computing. The dollar amounts reflect the cloud rates and configurations used in the paper, while the CPU figures more directly describe the work consumed by the reported runs.

#### Scaling to the haploid human assembly

The human experiment used CHM1htert, a haploid cell line. The authors compare the de novo SMRT assembly with the GRCh38 reference and with a reference-guided assembly of CHM1 based on Illumina data and bacterial artificial chromosome tiling. That comparison puts a sequence reconstruction guided by long reads alongside an existing assembly with different inputs and access to reference information. The paper also includes an original Sanger-era human assembly as a historical baseline.

Contig NG50 for human assemblies in the CHM1 evaluation The CHM1 long-read assembly has longer contigs by this measure than the Illumina and historical Sanger assemblies.

**The numbers**

| System or setting | base pairs |
| --- | --- |
| CHM1 Illumina assembly | 129,173 |
| Historical human assembly hg1 | 455,244 |
| CHM1 PBcR-MHAP assembly (this paper) | 4,320,471 |

The CHM1 long-read assembly had 3,434 contigs under the table’s counting rules. The authors give an average of 92 contigs per chromosome based on alignment to GRCh38. For that reference, the table gives an NG50 of 56,413,054 bases. PBcR-MHAP used 222,098 CPU hours for human overlaps and 262,240 CPU hours for the full assembly. The fly timing therefore illustrates a large speedup over a completed earlier run, while the human timing shows the absolute work that still remained at the largest scale in the paper.

The reference comparison identified 51 of 819 GRCh38 gaps as potentially spanned by the CHM1 assembly, reported as 6%. Of these putative closures, 16 agreed with the estimated size of the gap. The paper’s chromosome visualization places many of the proposed closures near telomeres or centromeres. The authors also examine the major histocompatibility complex, a region important to immunity that they describe as historically difficult to assemble. The Illumina-based CHM1 assembly divides it among over 60 contigs. The long-read version covers 97% of the region in 2 contigs and reconstructs 21 additional MHC genes in a single piece, reported as 5%. This regional check gives the genome-wide continuity gain a concrete consequence for gene reconstruction.

#### Base accuracy, repeat copies, and chromosome ends

The authors compare each assembly with the closest available reference. They report broad structural concordance across the set and concentrate their detailed accuracy validation on the bacterium and fly, where the reads and reference come from the same strain. For the fly, the authors used the same ISO1 subline as the reference project. On average across the bacterium and fly, and excluding the effects of heterozygosity from the estimate, the draft PBcR-MHAP consensus accuracy was 99.9%, or Phred quality value 30. Quiver polishing raised that average to 99.99%, reported as QV40. Polishing the 143Mbp fly assembly used 498 CPU hours. The time spent refining base calls remained substantial after the faster overlap search.

The detailed fly comparison found 2,884 high-quality alignments covering 122.9Mbp, or 95.7% of the 129.7Mbp version 5 sequence used for this assessment. The alignments covered 114.8Mbp of known euchromatic sequence and 8.1Mbp of known heterochromatic sequence, the latter including repeat-rich parts of the genome that are hard to assemble. To check gene continuity, the authors aligned 17,294 annotated genes in their full lengths, including introns. Before polishing, 16,604 genes, or 96%, had a single alignment to a single contig. For sequence identity, 15,780 of the genes were reconstructed at over 99%, and 7,299 matched perfectly. With Quiver, the corresponding counts rose to 16,776 genes in one alignment, reported as 97%, with 16,751 over 99% identity and 14,824 at perfect identity.

The repeat analysis used annotated copies of transposable elements, which can recur in many places in the genome. The authors found 5,201 of 5,425 euchromatic copies in single contigs, giving 96% by the paper’s measure. Among those copies, 4,026 aligned perfectly before polishing and 4,984 afterward. For the abundant roo family, 132 of 138 copies, or 96%, were resolved in the long-read assembly. The comparison study using Illumina Synthetic Long Reads reported 5.2% resolution for that family. For the juan family, where copies differ by less than 0.01%, perfect identity was reported for 7 of 11 copies before polishing and 11 of 11 after it. Counting separately annotated instances makes this a more demanding check than showing that a family’s sequence appears somewhere in the assembly.

At chromosome ends, the yeast and fly offered different tests. For yeast, the authors mapped annotated terminal repeats to W303. They found 9 chromosomes for which a single contig aligned to at least 50% of the terminal repeat at each end. The paper treats this as evidence that those chromosomes were resolved from telomere to telomere. In the earlier W303 assembly, just one chromosome was represented in its entirety, and annotations marked only five chromosome ends. The repeat-alignment criterion addresses a stronger question than whether a chromosome has a gapless contig over its ordinarily alignable interior.

The authors searched the fly assembly for arrays characteristic of its telomeres, which contain specialized transposable elements and telomere-associated sequences. They identified 24 telomeric contigs. A contig for arm 2R contains both subtelomeric and telomeric repeats, capturing the transition from euchromatin to heterochromatin. It extends 80Kbp beyond the reference endpoint. Large contigs for arms 2L, 3R, and X also contain telomeric repeat sequence beyond the ends recorded in that reference. These regional checks give substance to the overall continuity measurements by showing specific kinds of sequence that newly appear together in contigs.

### What the ablations show

#### How sketch size changes the search

The closest controlled comparisons are the sketch and search-setting experiments. The authors vary fragment length, sketch size, and the required number of matches in simulation, and then compare the two selected sketch sizes on actual reads. The simulations show the benefit of retaining more observations of the hash-minimum event. A larger sketch gives a genuine overlap more opportunities to show agreement. It also gives an unrelated pair more opportunities for an accidental match. The tests for at least one or at least three matching entries show why the number of retained entries has to be interpreted with the threshold applied to them.

The comparisons of k=10 and k=16 illustrate a second tradeoff. On the simulated human reads, the shorter fragments produce more spurious agreement. The change matters computationally because each spurious match can add another candidate to count or examine. The longer fragments reduce that background. Their cost is that an error inside a fragment can remove an exact correspondence. The simulations illustrate the authors’ argument for choosing a fragment length that controls incidental agreement and then varying sketch size to recover sensitivity. They also explain why the result for mapping a noisy read to a clean reference, with errors on only one side, gives a different estimate of how small a useful sketch can be.

The effect of increasing the sketch size is visible across the real datasets. In the human read benchmark, sensitivity goes from 64% for MHAP 512 to 77% for MHAP 1256. CPU time rises from 9.37 to 17.19 hours, memory rises from 9.20 to 10.72 GB, and PPV moves from 93% to 92%. In the fly benchmark, the sensitivity is 62% with the smaller sketch and 83% with the larger one. The corresponding times are 9.08 and 15.73 CPU hours. These are measurements of the overlap stage on sampled data. The paper gives the full pipeline’s resulting continuity separately, so the sensitivity change should be interpreted as evidence about the candidate search.

Widening BLASR’s candidate search also recovers overlaps at a cost. The yeast dataset is a clear example. At 1C, sensitivity is 16% and CPU time is 71.43 hours. At 10C, sensitivity is 35% and CPU time is 434.30 hours. At the broadest tested setting, sensitivity is 87% with a still greater time cost. In the assembly comparison, the MHAP-based yeast result attains very similar NG50 to the BLASR-based result. The comparison is consistent with the authors’ account that many overlaps are redundant for reconstruction. The individual overlap counts alone cannot identify which connections were indispensable to any given contig.

#### Why longer reads help the sketch comparison

Figure 2 compares work for a direct lookup approach with work for MHAP as read length changes, holding the amount of sequence fixed and requiring a minimum 20% overlap. Its work measure is the number of 16-mers processed, normalized by the largest value in the simulations. The figure tests sketches of 512 and 1256 entries. At fixed total sequence, longer reads mean fewer reads. The direct approach still considers fragments across all those bases. In the sketch comparison, each read contributes a fixed-size sketch to the lookup. There are then fewer sketch entries to compare across the collection as read length goes up.

This analysis isolates a source of the paper’s speed advantage. It counts fragment-processing work in the overlap search. Sketch generation and later assembly operations still have their own costs. The full measurements show the cumulative outcome of those stages as well as the benefit isolated by the simulation. In particular, the fraction of work saved can depend on how expensive overlap detection was initially. The fly pipeline had much more of its time concentrated in overlapping than a reader would infer from its final MHAP runtime alone.

#### Where the additional checks locate gains

Quiver supplies a before-and-after comparison on the assembled sequence. The strong increase in perfect fly gene matches, alongside the smaller change in the number of single-alignment genes, shows where the polishing benefit appears in these measures. An assembled gene can already occupy a single contig while containing several wrong bases. Correcting the bases can move it into the perfect-match category without changing that basic placement. The repeat results tell a similar story. The paper records 37 roo copies with 100% identity before Quiver and 93 after it, while its resolution measure asks whether the assembly placed the annotated copy in a contig. Those distinctions separate the success of connecting sequence through a repeat from the success of estimating every base inside it.

There is no comprehensive component-by-component assembly ablation. The paper offers the simulated sketch comparisons, the parameter and timing comparisons with BLASR, the assembly comparisons, and the analyses before and after polishing. It also explains why the human run used a different correction module, based on the behavior of its noisier input. The integrated pipeline includes changes in consensus as well as overlap detection. The overlap-only timings are the most direct evidence for MHAP’s search advantage, while the assembly benchmarks establish the quality and cost of running the combined workflow.

### Limitations

#### Limits the authors state

The authors performed these assemblies on inbred or haploid material. They describe MHAP’s overlap sensitivity as promising for diploid and polyploid genomes, but also explain that assembly remains difficult when chromosome copies carry structurally different alleles. A read can support a genuine local overlap while leaving open which chromosome copy it belongs to. Recovering a consensus through a region and separating the different copies across that region are distinct accomplishments. In particular, the human CHM1 result establishes long-read assembly at human genome scale for a haploid sample.

The paper treats its fly and human gap closures as candidates. A contig that aligns on both sides of an annotated gap gives evidence that sequence spans the location. Agreement with the gap’s estimated length adds a check. The authors state that the proposed closures require further validation, including the ones that meet the length check. They also discuss remaining gaps where long-range information from optical maps or chromatin interaction maps might support chromosome-scale scaffolding and haplotype separation. Those are proposed extensions of the assembly work.

The authors identify consensus polishing as an area for improvement. Their polished assemblies have higher base accuracy, with the additional work quantified for the fly. The raw reads are particularly affected by insertions and deletions, and the draft bacterial comparison illustrates how single-base errors can remain in an otherwise continuous assembly. The authors mention short-read resequencing as another possible source of evidence for polishing and calling heterozygous alleles. Their central assembly demonstration uses SMRT reads, and the short-read suggestion concerns additional work on the resulting draft.

The paper proposes that MHAP may also suit nanopore sequencing if the reads have comparable length and error characteristics. The reported assemblies and the simulations support conclusions about the SMRT conditions studied. The authors also suggest reference alignment, clustering, and distance estimation as areas for evaluating sketches. Only the mapping condition in the simulation is directly examined as part of that broader set of possibilities.

#### Limits of the comparisons

Reference mapping gives the overlap benchmark a tractable source of labels, but those labels depend on where a read can be mapped. Ambiguous placements are particularly relevant for repeats, where genuine local sequence agreement can occur between reads assigned to different copies. The authors’ Smith–Waterman check addresses some pairs that reference mapping fails to support. Its criterion establishes local similarity of sufficient length and identity. It cannot always establish that the reads originated at the same genomic copy. The reported sensitivity and PPV are performance measures relative to this evaluation procedure and its sampling precision.

Reference choice also affects the assessment of the assemblies. For the plant and yeast, a discrepancy may represent real strain variation or an assembly error. The study’s detailed same-strain validation is concentrated on *E. coli* and the fruit fly. Even there, measuring agreement to a reference principally evaluates alignable sequence already represented in that reference. Novel sequence and extensions past reference ends require other kinds of evidence. The paper follows this distinction in practice by giving gene alignments and repeat annotations separately from candidate gap closures.

The telomere analyses use recognizable patterns as evidence. The yeast criterion is based on aligning at least the reported fraction of known terminal repeats at both ends of a contig. A chromosome can satisfy that test without every base of either terminal array being verified. In the fly, assigning an extended contig through its characteristic repeat sequences and anchored flanking region supplies evidence of a transition into the telomere. Contigs consisting of telomeric material can still pose a placement problem. Similarly, exact matches among the evaluated fly transposable elements apply to the annotated euchromatic instances selected for the comparison. They provide a view of how the assembly handles difficult repeats within that part of the genome.

The paper’s strongest pipeline comparisons also vary in what they hold constant. The sampled overlap benchmark tests MHAP and BLASR directly on sequencing reads. The end-to-end PBcR comparison includes the newer correction module where used. Comparisons with SPAdes, historical Sanger assemblies, synthetic long reads, and the reference-guided CHM1 assembly change the input data and assembly strategy together. They show the practical results available under those different setups. The controlled overlap comparisons carry more weight for attributing improved search speed to the sketch itself.

Finally, the input datasets have substantial coverage. The simulations vary read length, overlap conditions, and sketch settings. They do not trace the minimum coverage at which the corresponding complete assemblies would retain their reported continuity. The proposition that redundancy can compensate for missed overlaps is supported by successful assemblies in the tested setting. Its practical threshold depends on the reads available in a region and on the difficulty of the repeats or chromosome copies the assembler must distinguish.

### What came after

The paper records no subsequent study using MHAP. Its account of follow-on work is prospective. The authors released assemblies for CHM1, yeast W303, *Arabidopsis* Ler-0, and fruit fly ISO1 so that sequence spanning difficult regions could be examined during continued reference finishing. The fly telomeric transitions and the candidate human gap closures are examples of results that could be investigated in such work. The paper records the sequence evidence and the conditions for calling those gaps candidates, with validation still pending.

The authors also distinguish further uses of the overlap search from methods that could extend the resulting contigs. They propose evaluating MinHash sketches for reference mapping, clustering, and alignment-free distance estimates. For regions where reads still leave an ambiguous connection, they point to optical maps and chromatin interaction measurements as possible sources of longer-range linking evidence. These proposals follow from different observations in the study. Sketching reduced the work of identifying plausible read pairs, while the assembled chromosomes showed where continuity or haplotype resolution could still depend on evidence beyond those local overlaps.

## Cite

Cite as Konstantin Berlin, Sergey Koren, Chen-Shan Chin, James P. Drake, Jane M. Landolin and Adam M. Phillippy. 2015. Assembling large genomes with single-molecule sequencing and locality-sensitive hashing. Nature Biotechnology.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1038/nbt.3238](https://doi.org/10.1038/nbt.3238)

```bibtex
@inproceedings{berlin2015assembling,
  title = {{Assembling large genomes with single-molecule sequencing and locality-sensitive hashing}},
  author = {Konstantin Berlin, Sergey Koren, Chen-Shan Chin, James P. Drake, Jane M. Landolin and Adam M. Phillippy},
  booktitle = {Nature Biotechnology},
  year = {2015},
  doi = {10.1038/nbt.3238},
  url = {https://doi.org/10.1038/nbt.3238}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
