From Reads to Chromosomes: An Anatomy of Genome Assembly

基因组组装解剖:从读段到染色体,从算法到工具

从零讲清测序给出的是什么、组装到底在解什么题,再用一个自己写的迷你 de Bruijn 组装器把三件事测出来:k 与重复长度的相变、错误率如何把图炸成碎片、覆盖度与读长各自的门槛。最后是 29 个组装器的目录、选择决策树,和一份「如果要写新工具」的设计草案。
Assembly
Tooling
Author

Jie Hua

Published

Nov 28, 2026

写作说明 / Note

本文由 AI(Trae Agent) 检索、整理并撰写,尚未经过人工逐条校对。需要说清楚两件事。第一,文中的实验都来自我自己写的一个玩具组装器(R/assemble.cpp,约 190 行 C++)与一个合成的 31 kb 基因组,不是真实物种,也不是真实工具:它只做「数 k-mer → 建图 → 拆 unitig → 算 N50」,没有双链规范化、没有错误校正、没有配对、没有 scaffold、没有 polishing。第二,我没有运行 SPAdes、MEGAHIT、Canon、hifiasm 等任何真实组装器,所以文中没有它们的跑分;工具表里的年份、语言、算法来自各自论文,可能有误。玩具组装器的结论只应被读作「图的结构如何随参数变化」,不应被读作「哪个工具更好」。所有数字由脚本生成并写进 outputs/metrics.json,正文用 inline R 引用。

This article was researched and written by an AI system (Trae Agent) and has not been proofread line by line by a human. Two things need stating. First, every experiment here comes from a toy assembler of my own (R/assemble.cpp, about 190 lines of C++) run on a synthetic 31 kb genome — not a real species and not a real tool. It only does “count k-mers, build the graph, split unitigs, compute N50”: no canonicalisation, no error correction, no pairs, no scaffolding, no polishing. Second, no real assembler was run — not SPAdes, MEGAHIT, Canu or hifiasm — so there are no benchmarks for them here; years, languages and algorithms in the tool table come from their papers and may contain errors. Read the toy results as “how graph structure responds to parameters”, never as “which tool is better”. Every number is generated by the scripts into outputs/metrics.json and quoted with inline R.

写一篇中英双语超长文,解剖基因组组装:应用、算法、当前工具、以及「如果要写一个新工具该怎么做」。读者零基础,所以先讲清测序给出什么、组装在解什么题、三个层次(contig/scaffold/染色体)与三个敌人(重复、错误、倍性),再讲度量(N50/NG50/NA50/QV/BUSCO)。算法部分讲贪心、OLC、de Bruijn、string graph、repeat graph。实验部分必须真的实现:用一个自己写的迷你 de Bruijn 组装器,在合成的 31 kb 基因组(含一段可控长度的重复)上测 k 与重复长度的相变、错误率与过滤、覆盖度门槛、读长门槛。工具部分给目录、时间线与选择决策树。最后给设计新工具的输出契约、表示、工程与评估方案。不许编造真实工具的跑分,不许凭记忆写 DOI。

A very long bilingual anatomy of genome assembly: applications, algorithms, current tools, and “how would you build a new one”. Assume a reader with no background, so start from what sequencing produces, what assembly is actually solving, the three levels (contig, scaffold, chromosome) and the three enemies (repeats, errors, ploidy), then the metrics (N50, NG50, NA50, QV, BUSCO). Algorithms: greedy, OLC, de Bruijn, string graph, repeat graph. The experiments must be real: implement a miniature de Bruijn assembler and use it on a synthetic 31 kb genome with a controllable repeat to measure the k-versus-repeat phase transition, the effect of errors and filtering, the coverage threshold and the read-length threshold. The tool section gives a catalogue, a timeline and a decision tree. Close with an output contract, representation, engineering and evaluation plan for a new tool. No invented benchmarks for real tools; no DOIs from memory.

1. 从零开始:测序给出的是什么 / From zero: what sequencing gives you

基因组是一串很长的文本,字母表只有四个:A、C、G、T。人类单倍体约 31 亿个字母(3.1 Gbp),最长的一条染色体(1 号)约 2.5 亿个字母。如果把一个细胞里的 DNA 拉直,大约两米。测序仪不能一次读完两米,它只能读随机位置上的短片段:二代测序(Illumina)读 100–300 bp,三代测序(PacBio、Oxford Nanopore)读 10–100 kb。测序的产物是一堆读段(read),每条只知道自己的一小段字母,不知道自己在基因组上的位置。

A genome is a very long text over a four-letter alphabet: A, C, G, T. The human haploid genome is about 3.1 billion letters (3.1 Gbp), and the longest chromosome (chr1) about 250 million. Stretched out, the DNA in one cell is roughly two metres long. A sequencer cannot read two metres at once; it reads short fragments from random positions: 100–300 bp for Illumina, 10–100 kb for PacBio or Oxford Nanopore. The output is a pile of reads, each knowing only its own letters and nothing about where it belongs.

由此得到第一个必须记住的量:覆盖度(coverage)。把全部读段的碱基数加起来除以基因组大小,就是平均每个位置被读了多少次。人类基因组 30× 覆盖意味着约 930 亿个碱基的读段——比基因组本身多 30 倍,但读段平均只有 150 bp,短的连一个基因都盖不住。

That gives the first quantity to remember: coverage. Add up all read bases, divide by genome size, and you have the average number of times each position was read. Thirty-fold coverage of the human genome is about 93 billion bases of reads — thirty times the genome itself, but each read averages 150 bp, too short to cover even one gene.

组装(assembly) 就是把这一堆碎片还原成原来的长文本。数学上它接近一个叫最短公共超串的问题:找一条尽可能短的字符串,使每条读段都是它的子串。这个问题是 NP-hard 的,而且真实数据里读段有错误、有重复、还有两套染色体,所以实际做法全是启发式。记住这一点:组装从来没有唯一正确答案,只有「在某种误差模型下最好的重建」。

Assembly is the reconstruction of that long text from the pile. Mathematically it is close to the shortest common superstring problem: find the shortest string of which every read is a substring. The problem is NP-hard, and real data add errors, repeats and two chromosome copies, so every practical method is a heuristic. Keep this in mind: assembly never has a unique right answer, only the best reconstruction under some error model.

flowchart TD
    R["读段 / reads(10^7–10^9 条)"] --> C["contig<br/>无 gaps 的连续序列"]
    C --> S["scaffold<br/>用配对/长读段排序定向,中间留 N"]
    S --> H["染色体级 / chromosome-scale<br/>端粒到端粒,单倍型分开"]
    S --> P["polishing + 评估<br/>QV · BUSCO · 比对一致性"]
    P --> H

2. 从零开始:三个层次与三个敌人 / Three levels, three enemies

三个层次对应三种「完成度」。contig 是无 gap 的连续序列,靠读段之间的重叠拼出来;scaffold 是把 contig 排序并定向,中间用 N 填长度未知的 gap,靠的是配对读段或长读段跨过 gap;染色体级(chromosome-scale) 要求每条染色体从端粒到端粒完整,且把两套单倍型分开(phased),只有长读段加 Hi-C 或 trio 信息才做得到。做物种基因组的人说「做到染色体级」,说的就是第三层。

The three levels are three degrees of completion. A contig is a gap-free sequence built from read overlaps. A scaffold orders and orients contigs with N’s for gaps of unknown length, using paired reads or long reads that span them. Chromosome-scale means each chromosome is complete from telomere to telomere with the two haplotypes separated (phased), which needs long reads plus Hi-C or trio information. When people say “we finished the genome to chromosome level”, they mean the third.

三个敌人决定了难度,而且它们互相伪装。

Three enemies set the difficulty, and they disguise themselves as each other.

重复(repeats):同一段序列出现在多个位置。短读段如果整段落在重复内部,它同时属于所有拷贝,信息上无法区分。这是组装的根本障碍——不是算法不够聪明,是数据里没有足够的信息。错误(errors):每个碱基都可能读错,错误会在 de Bruijn 图里制造假分支,在重叠图里制造假重叠。倍性(ploidy):你有两套染色体,同源位置上有杂合差异,于是图上出现一个「气泡」(bubble)。气泡既可能是杂合,也可能是重复——这是组装里最经典的混淆,也是「二倍体组装」这个子领域的全部难点。

Repeats: the same sequence at several positions. A short read lying entirely inside a repeat belongs to all copies at once and cannot be assigned. This is the fundamental obstacle — not a lack of cleverness, but a lack of information in the data. Errors: every base can be misread, and errors create false branches in a de Bruijn graph and false overlaps in an overlap graph. Ploidy: you have two chromosome copies with heterozygous differences, so the graph shows a bubble. A bubble can be heterozygosity or a repeat — the classic confusion of the field, and the entire difficulty of diploid assembly.

把三个敌人压缩成三个数:重复长度 \(L\)、读长 \(R\)、覆盖度 \(c\)(外加错误率 \(e\))。整篇文章其实只在讲一件事:组装就是用 \(R\)、\(c\)、\(e\) 去战胜 \(L\)。后面所有算法与工具,都是这句话的不同写法。

Compress the enemies into three numbers: repeat length \(L\), read length \(R\), coverage \(c\) (plus error rate \(e\)). The whole article says one thing: assembly uses \(R\), \(c\) and \(e\) to defeat \(L\). Every algorithm and tool below is a different spelling of that sentence.

3. 怎么算「拼得好」 / How to score an assembly

没有唯一正确答案,就必须有度量。最常用的是 N50:把所有 contig 按长度从大到小排,累加到总长的一半时,那条 contig 的长度就是 N50。它是「长度加权的中位数」,比平均值稳健,但可以被骗:一次错误的连接(misassembly)把两个 contig 粘成一条超长的,N50 立刻上升,而组装其实更差了。

Without a unique answer you need metrics. The most common is N50: sort contigs by length, add from the largest until you reach half the total, and the length at that point is the N50. It is a length-weighted median, more robust than the mean, and it can be gamed: one false join (a misassembly) fuses two contigs into a very long one, N50 jumps, and the assembly is actually worse.

所以现在没人只看 N50。NG50 用基因组大小(而不是组装总长)作分母,跨组装可比;NA50 先把 contig 比对回参考基因组,再按比对块算,错误连接会被切断;QV 用 k-mer 一致性把准确率换算成一个对数分数(Q40 约等于每 10 kb 一个错误);BUSCO 看保守单拷贝基因找回了多少;完整性 + 一致性(例如 Merqury 的 k-mer completeness 与 QV)成对报告。

So nobody reports N50 alone. NG50 uses genome size as the denominator, making assemblies comparable; NA50 aligns contigs to a reference first and cuts them at breakpoints, so false joins are penalised; QV converts accuracy into a log score from k-mer agreement (Q40 is roughly one error per 10 kb); BUSCO counts how many conserved single-copy genes came back; and completeness plus accuracy (Merqury’s k-mer completeness and QV) are reported as a pair.

Table 1: 六个指标,各自能回答什么、能被什么骗 | six metrics and how they fail
指标 / metric 定义 / definition 能骗过吗 / gameable
N50 长度加权中位数(组装总长的一半) 能,一次错连就涨
NG50 同上,分母用基因组大小 较难
NA50 比对到参考后按 block 计算 较难,需要参考
QV k-mer 一致率换算成 -10log10(错误率) 难,需要读段
BUSCO 保守单拷贝基因的找回比例 能,污染或重复会虚高
misassembly 错误的连接 / 倒位 / 重复塌缩 不能,但需要参考或读段

一句话的经验:报告组装必须同时给「长度」与「正确性」,只给一个都不可信。

The one-line lesson: an assembly must report length and correctness together; either one alone is untrustworthy.

4. 为什么要组装 / Why assemble at all

既然能把读段比对到参考基因组,为什么还要从头拼?因为参考基因组不包含你要找的东西。八个典型场景:

If reads can be mapped to a reference, why assemble from scratch? Because the reference does not contain what you are looking for. Eight standard cases:

新物种:没有参考,只能从头。临床微生物:耐药基因常在质粒或可移动元件上,必须拼出完整质粒才知道它能不能传播。宏基因组:样本里几百个物种混在一起,先组装再分箱(binning)才有基因组(MAG)。T2T 人类基因组:参考基因组缺的 8% 正是重复区,只有长读段组装能补上。结构变异与癌症:大片段插入、缺失、易位在比对里表现为断点,在组装里是连续序列。古 DNA:短且碎,往往要参考引导。单倍型与泛基因组:把两套染色体分开,才知道每个个体独有的那部分。农业与育种:抗病基因簇常常是大重复,参考里塌缩成一条。

New species: no reference, so de novo is the only option. Clinical microbiology: resistance genes often sit on plasmids or mobile elements, and only a complete plasmid tells you whether it can spread. Metagenomics: hundreds of species in one sample, so assembly then binning is the only route to genomes (MAGs). The T2T human genome: the 8% missing from the reference is exactly the repetitive part, and only long-read assembly fills it. Structural variation and cancer: large insertions, deletions and translocations are breakpoints in mapping but contiguous sequence in an assembly. Ancient DNA: short and damaged, usually reference-guided. Haplotypes and pangenomes: only a phased assembly shows what is unique to an individual. Agriculture: disease-resistance clusters are often large repeats that collapse into one copy in a reference.

5. 算法 I:贪心与 OLC / Greedy and overlap-layout-consensus

最早的组装器面对的是 Sanger 读段:长(500–1000 bp)、少(几万条)、准(错误率 0.1%)。在这个设定下,最自然的做法是重叠图:把每条读段当节点,如果两条读段的末尾和开头有足够长的精确重叠,就连一条边。然后找一条路径覆盖所有节点(layout),最后按多重比对修正每个位置(consensus)。这就是 OLC。更早的 Phrap 用贪心:每次合并重叠最长的一对,直到不能合并。

The first assemblers faced Sanger reads: long (500–1000 bp), few (tens of thousands), accurate (0.1%). In that setting the natural structure is the overlap graph: one node per read, an edge when the suffix of one read overlaps the prefix of another by enough exact bases. Then find a path through the nodes (layout) and correct each column by multiple alignment (consensus). That is OLC. The earlier Phrap was greedy: repeatedly merge the pair with the best overlap until nothing merges.

它的代价是平方复杂度:\(n\) 条读段要比较 \(n^2/2\) 对,十万条读段就是五十亿次比对。所以 OLC 必须先建索引(k-mer 种子)把候选压到接近线性,再做精确比对。它对错误率极其敏感——错误会破坏重叠,让正确的读段连不上,或者让错误的读段连上。

The cost is quadratic: \(n\) reads need \(n^2/2\) pairs, and a hundred thousand reads is five billion comparisons. OLC therefore indexes first (k-mer seeds) to push candidates down to near-linear, then aligns. It is also very sensitive to error rate — errors break true overlaps and create false ones.

6. 算法 II:de Bruijn 图 / The de Bruijn graph

二代测序改变了设定:读段短(100 bp)、多(上亿条)、错误率低(0.1%)。短读段之间的精确重叠太短、太不可靠,于是 2008 年前后整个领域换了一个表示:不再拿读段当节点,而是拿 k-mer 当节点。

Short-read sequencing changed the setting: reads short (100 bp), numerous (hundreds of millions), accurate (0.1%). Exact overlaps between short reads are too short and too unreliable, so around 2008 the field switched representation: nodes are no longer reads but k-mers.

具体做法只有三步。数:把每条读段切成 \(R-k+1\) 个长度 \(k\) 的 k-mer,全部丢进哈希表计数。建:每个 k-mer 是一个节点,若 \(u\) 的后 \(k-1\) 个碱基等于 \(v\) 的前 \(k-1\) 个碱基,就连一条边 \(u \to v\)。走:在图上找一条路径,使每条边恰好走一次(欧拉路径),这条路径拼出的序列就是组装结果。

Three steps. Count: cut each read into \(R-k+1\) k-mers and put them all in a hash table. Build: every k-mer is a node, and if the last \(k-1\) bases of \(u\) equal the first \(k-1\) of \(v\), add the edge \(u \to v\). Walk: find a path that uses every edge exactly once (an Eulerian path); the sequence spelled by that path is the assembly.

为什么这个表示好:复杂度从「读段对的平方」降到「碱基数的线性」——\(O(G)\) 计数,\(O(E)\) 走图。为什么它不好:k 是一个硬阈值。如果一段重复长 \(L\),而某个 k-mer 整个落在重复内部,这个 k-mer 就同时属于所有拷贝,图在这里分叉,顺序无法唯一确定。反过来,只要 \(k > L\),就没有 k-mer 完全落在重复里,所有 k-mer 都唯一,图是一条直线。

Why the representation is good: complexity drops from “pairs of reads” to “bases”, \(O(G)\) to count and \(O(E)\) to walk. Why it is bad: k is a hard threshold. If a repeat has length \(L\) and some k-mer lies entirely inside it, that k-mer belongs to every copy, the graph branches, and the order is not determined. Conversely, as soon as \(k > L\), no k-mer fits inside the repeat, every k-mer is unique, and the graph is a straight line.

这句话是整篇文章的核心,第 9 节会用实验把它画出来。它同时解释了两件事:为什么短读段组装器永远拼不穿转座子(转座子动辄几千 bp,而 k 上限受内存约束),以及为什么长读段改变了游戏(第 12 节)。

That sentence is the core of this article, and section 9 draws it. It explains two things at once: why short-read assemblers never assemble through a transposon (thousands of bp, while k is capped by memory), and why long reads changed the game (section 12).

7. 算法 III:string graph 与重复图 / String graph and repeat graph

string graph(Myers 2005)是 OLC 的极简版:先把重叠关系算出来,再删掉所有传递边(如果 A 与 B 重叠、B 与 C 重叠、且 A 与 C 也重叠,那么 A–C 这条边是多余的)。删完之后,图的规模与基因组长度成正比,而不是与读段数的平方成正比。它把「重叠图」从不可用变成可用,也是今天长读段组装的骨架。

The string graph (Myers 2005) is a minimalist OLC: compute overlaps, then delete every transitive edge (if A overlaps B, B overlaps C, and A overlaps C, the A–C edge is redundant). Afterwards the graph is proportional to genome length rather than the square of read count. It turned the overlap graph from unusable to usable and is the backbone of long-read assembly today.

长读段让 OLC 重新变得可行:一条 20 kb 的读段跨过 3 kb 的重复,重叠关系本身就把重复两端的唯一序列连起来了。于是重复不再需要在图里被「解开」,它压根没被切断。repeat graph(Flye 的表示)把这件事做得更彻底:先把基因组按「唯一段 / 重复段」压缩成一张小图,再把每个重复当成一条需要确定拷贝数与顺序的路径。HiFi 读段(15 kb、Q20 以上)让这套做法不再需要预先纠错,直接组装。

Long reads make OLC feasible again: a 20 kb read crossing a 3 kb repeat links the unique sequences on both sides by overlap alone. The repeat no longer has to be untangled in the graph, because it was never cut. The repeat graph (Flye’s representation) pushes this further: compress the genome into unique and repeat segments, then treat each repeat as a path whose copy number and order must be resolved. HiFi reads (15 kb, Q20+) let this work without a separate correction step.

Table 2: 五种表示,各自在哪里失效 | five representations and where each breaks
算法 / algorithm 节点 / node 复杂度 / cost 怕什么 / weak at 典型 / typical
贪心 / greedy 读段 \(O(n^2)\) 次重叠 错误率、嵌合 Phrap
OLC 读段 \(O(n^2)\),种子后近线性 错误率、读段数 Celera, Canu
de Bruijn k-mer \(O(G)\) 计数 + \(O(E)\) 走图 k < 重复长度 Velvet, SPAdes, MEGAHIT
string graph 读段(去传递边) \(O(n\log n)\) 级,图随基因组线性 错误率、超长重复 SGA, hifiasm
repeat graph 唯一段与重复段 随基因组线性,重复折叠 极高频重复、倍性 Flye, metaFlye

8. 实验 I:k-mer 谱 / The k-mer spectrum

第一次动手。造一个 31 kb 的合成基因组:10 kb 随机序列 + 一段 3 kb 的重复 + 5 kb 随机序列 + 同一个 3 kb 重复 + 10 kb 随机序列。模拟 30× 覆盖、100 bp、无错误的读段,把读段切成 31-mer 数一遍。

First hands-on step. Build a synthetic 31 kb genome: 10 kb of random sequence, a 3 kb repeat, 5 kb more random, the same 3 kb repeat again, and 10 kb more random. Simulate 30× coverage in 100 bp error-free reads, cut them into 31-mers and count.

Figure 1: k-mer 谱:主峰的位置就是有效覆盖度,左肩是错误;44 附近的小峰是重复的两份拷贝 | the main peak is effective coverage, the left shoulder is error, the bump at 44 is the two copies of the repeat

三个可以读出来的数。主峰位置:21.2,而不是覆盖度 30——因为一个 k-mer 只被「起点落在它前后 \(R-k+1\) 个位置」的读段覆盖,有效倍数是 \(c\,(R-k+1)/R = 30\times70/100 = 21\),实测 21.2 与它相差不到 1%。基因组大小:所有 k-mer 出现次数之和除以主峰均值,得 30702,与真值 31 000 差 1.0%——这就是 KmerGenie 一类工具在组装之前干的事。第二峰:在 44 附近还有一个小峰,正好是主峰的两倍,那是重复的两份拷贝——重复不需要组装,它在谱里就已经露头了。

Three numbers fall out. The peak sits at 21.2, not at coverage 30, because a k-mer is only covered by reads starting in the \(R-k+1\) positions around it, so the effective depth is \(c\,(R-k+1)/R = 30\times70/100 = 21\); the measured 21.2 is within 1% of that. Genome size: total k-mer occurrences divided by the peak mean gives 30702, 1.0% away from the true 31,000 — exactly what tools like KmerGenie do before assembling. A second peak near 44 is exactly twice the main peak: that is the two copies of the repeat, visible in the spectrum before any assembly happens.

加入 1% 的替换错误后,谱立刻变成双峰:主峰不动,左端在 1–2 次处冒出一根高柱。统计一下,85.7% 的不同 k-mer 只出现 1–2 次,也就是说错误 k-mer 的数量是真实 k-mer 的六倍。这就是为什么每个组装器都要在数完 k-mer 之后做一件事:丢掉低频的。第 10 节会看到,不做这一步,图直接碎成几千段。

Add 1% substitution errors and the spectrum becomes bimodal: the main peak stays, and a tall bar appears at multiplicity 1–2. Counting them, 85.7% of distinct k-mers appear only once or twice — error k-mers outnumber real ones six to one. That is why every assembler does one thing right after counting: drop the low-frequency ones. Section 10 shows that without this step the graph shatters into thousands of pieces.

9. 实验 II:相变 / The phase transition

现在把 k 与重复长度放在同一张图上。固定 30× 覆盖、无错误,只改重复长度 \(L\)(10 bp 到 6 kb),分别用 \(k = 21, 31, 61\) 组装。如果第 6 节的推理正确,N50 应该在 \(L\) 越过 \(k\) 的瞬间断崖式下跌。

Now put k and repeat length on the same plot. Fix coverage at 30× and errors at zero, vary the repeat length \(L\) from 10 bp to 6 kb, and assemble with \(k = 21, 31, 61\). If the reasoning of section 6 is right, N50 should fall off a cliff the moment \(L\) passes \(k\).

Figure 2: 三条断崖,位置正好在 k = 21、31、61;重复长于 k 时 N50 从整条基因组掉到最长唯一段 | three cliffs at k = 21, 31 and 61; once the repeat exceeds k, N50 drops from the whole genome to the longest unique flank

读这张图只需三行。\(k = 21\) 时,\(L = 15\) 给出 N50 = 25.0 kb,\(L = 21\) 掉到 10.0 kb,单元数从 1 变成 3。\(k = 31\) 时断崖右移到 \(L = 31\):\(L = 26\) 仍是 25.0 kb,\(L = 31\) 掉到 10.0 kb。\(k = 61\) 时能撑到 \(L = 41\)(25.1 kb),\(L = 61\) 也掉到 10.1 kb。

Three lines read the figure. At \(k = 21\), \(L = 15\) gives N50 = 25.0 kb and \(L = 21\) collapses to 10.0 kb, with the unitig count going from 1 to 3. At \(k = 31\) the cliff moves to \(L = 31\): 25.0 kb at \(L = 26\), 10.0 kb at \(L = 31\). At \(k = 61\) it survives to \(L = 41\) (25.1 kb) and collapses at \(L = 61\) (10.1 kb).

「掉到 10 kb」这个数不是随机的:它正好是两段唯一侧翼的长度。重复一断开,最长的 unitig 就只剩一侧翼,N50 便由它决定。反过来,重复被跨过时 N50 等于整条组装(25.0 kb ≈ 25 kb + 2×26 bp)。所以 N50 的每一次跳变,背后都是一次「重复被跨过 / 没被跨过」的二元决定。

The “10 kb” is not random: it is exactly the length of one unique flank. Once the repeat breaks the graph, the longest unitig can only be a flank, and it sets the N50. Conversely, when the repeat is spanned, N50 equals the whole assembly (25.0 kb ≈ 25 kb plus 2×26 bp). Every jump in N50 is a binary decision: was this repeat crossed, or not.

这张图解释了短读段组装的宿命。人类基因组的转座子动辄 1–6 kb,而 k 的上限由内存决定:\(4^k\) 种 k-mer 意味着 k = 31 时理论上有 \(4.6\times10^{18}\) 种可能,实际用哈希表存 30 亿个 k-mer 已经要几十 GB。所以短读段组装器永远跨不过一个 3 kb 的 Alu 二聚体——不是参数没调好,是 \(k\) 这个旋钮的物理上限。第 12 节会说长读段怎么绕开它。

This figure explains the fate of short-read assembly. Human transposons are 1–6 kb, while k is capped by memory: \(4^k\) possible k-mers means \(4.6\times10^{18}\) at k = 31, and storing 3 billion k-mers in a hash table already costs tens of GB. Short-read assemblers therefore never cross a 3 kb Alu dimer — not because the parameters were wrong, but because the knob has a physical ceiling. Section 12 shows how long reads get around it.

10. 实验 III:错误与过滤 / Errors and filtering

把 3 kb 重复固定,k = 31(所以重复一定跨不过去),加入 0%、0.1%、0.5%、1%、2% 的替换错误,分别测试「不过滤」与「只保留出现 ≥ 2 次的 k-mer」。

Fix the 3 kb repeat, set k = 31 (so the repeat cannot be crossed), add 0, 0.1, 0.5, 1 and 2% substitution errors, and test both “no filter” and “keep only k-mers seen at least twice”.

Figure 3: 0.1% 的错误就足以把图炸成两千段;count ≥ 2 的过滤把它压回 20 段,但 2% 时过滤也救不回来 | 0.1% error is enough to shatter the graph into two thousand pieces; filtering at count ≥ 2 brings it back to twenty, but at 2% filtering is not enough

左边是断崖的另一面。0.1% 错误、不过滤:2159 个 unitig,N50 只有 0.06 kb,输出总长是基因组的 3.73 倍——多出来的 2.7 倍全是错误序列。加上 count ≥ 2 过滤:19 个 unitig,N50 回到 5.1 kb。一次极简的过滤,把 0.1% 的错误基本清干净了。

The left panel is the other side of the cliff. At 0.1% error without filtering: 2159 unitigs, N50 of only 0.06 kb, and the total output 3.73 times the genome — all of the excess is false sequence. With the count ≥ 2 filter: 19 unitigs and N50 back at 5.1 kb. One crude filter clears almost all of the 0.1% error.

右边是两条线的分工。纵轴是「输出总长 ÷ 基因组总长」,它应该等于 1。大于 1 表示噪声(错误造出的假序列),小于 1 表示塌缩(重复被合并成一份)。不过滤时它涨到 33 倍;过滤后降到 2.6,仍然大于 1。所以在 2% 错误下,光过滤不够,必须做错误校正(用 k-mer 谱或读段一致性把每个碱基先修一遍),这也是 Canu、wtdbg2 这些长读段工具的第一步。

The right panel splits the two jobs. The vertical axis is “output length ÷ genome length”, which should be 1. Above 1 means noise (false sequence from errors); below 1 means collapse (repeats merged into one copy). Unfiltered it reaches 33×; filtered it drops to 2.6 and is still above 1. So at 2% error filtering is not enough and you need error correction — rewriting each base from the k-mer spectrum or read consensus — which is precisely the first step of long-read tools such as Canu and wtdbg2.

注意 0% 那一行:0.91,略小于 1。那不是错误,是塌缩——3 kb 重复的两份被合成了一份,组装总长正好少了 3 kb。所以「输出总长 ÷ 基因组总长」这一个数,同时能读出错误与塌缩两种病。

Note the 0% row: 0.91, slightly below 1. That is not error but collapse: the two copies of the 3 kb repeat merged into one, so the assembly is short by exactly 3 kb. A single number — output over genome — diagnoses both diseases at once.

11. 实验 IV:覆盖度门槛 / The coverage threshold

换一个可以拼通的重复(20 bp < k = 31),只改覆盖度。此时唯一的变量是「每个 k-mer 到底被看到没有」。

Switch to a repeat that can be crossed (20 bp < k = 31) and vary only coverage. Now the only variable is whether each k-mer was seen at all.

Figure 4: 覆盖度从 1× 到 20×:1× 时一半的 k-mer 都没被看到,20× 才回到一条完整序列 | coverage from 1× to 20×: at 1× half the k-mers are missing, and only at 20× does the graph become one sequence

1× 时只有 50.8% 的 k-mer 被观察到,图碎成 122 段,N50 = 0.14 kb。3× 时 87.5%;5× 时 96.5%;8× 时 99.6%,只剩 9 段;20× 时 1 段,N50 回到 25.0 kb。

At 1× only 50.8% of k-mers are seen, the graph breaks into 122 pieces and N50 is 0.14 kb. At 3× it is 87.5%, at 5× 96.5%, at 8× 99.6% with only 9 pieces, and at 20× 1 piece with N50 25.0 kb.

理论上这就是泊松,但要用第 8 节那个有效深度而不是名义覆盖度:覆盖度 \(c\) 时,一个 k-mer 的期望出现次数是 \(c\,(R-k+1)/R = 0.7c\),完全没被看到的概率是 \(e^{-0.7c}\)。1× 时有效深度 0.7,\(e^{-0.7}\) = 49.7%,实测漏掉 49.2%;3× 时 2.1,理论 12.2%,实测 12.5%;8× 时 5.6,理论 0.4%,实测 0.4%。数字对得很齐,所以「要多少覆盖度」有一个不依赖经验的答案:看 \(e^{-0.7c}\) 什么时候小到你不在乎。20× 时它已经是 \(10^{-6}\) 量级。

In theory this is Poisson, but with the effective depth of section 8 rather than the nominal coverage: at coverage \(c\) a k-mer is expected \(c\,(R-k+1)/R = 0.7c\) times, so the chance of never seeing it is \(e^{-0.7c}\). At 1× the effective depth is 0.7, \(e^{-0.7}\) = 49.7%, and we measure 49.2% missing; at 3× it is 2.1, theory 12.2% against 12.5%; at 8× it is 5.6, theory 0.4% against 0.4%. The numbers line up, so “how much coverage” has a principled answer: find \(c\) where \(e^{-0.7c}\) is small enough not to matter. At 20× it is already of order \(10^{-6}\).

那为什么真实项目还要 30–50×?因为错误、重复、杂合都会消耗覆盖度:每一处缺口都要靠更深的读段堆叠去救,每一次重复的判定都要靠两侧的覆盖差异。8× 是「理论上够」,30× 是「工程上稳」。

Then why do real projects still use 30–50×? Because errors, repeats and heterozygosity all consume coverage: every gap needs deeper stacking to fill, and every repeat decision needs the coverage difference on its two sides. 8× is “theoretically enough”; 30× is “engineering-safe”.

12. 实验 V:读长 / Read length

最后一个实验,也是最重要的一个。固定 3 kb 重复、30× 覆盖,只改读长,数一数「有多少条读段完整跨过了一整份拷贝」。

The last and most important experiment. Fix the 3 kb repeat and 30× coverage, vary read length, and count how many reads span one whole copy.

Figure 5: 读长小于重复长度时一条跨过的读段也没有;读长到 10 kb 就有几十条,重复的信息第一次真正存在 | below the repeat length not a single read spans it; at 10 kb dozens do, and for the first time the information exists

100 bp 到 3000 bp:0 条。5000 bp:13 条。10 kb:37 条。20 kb:42 条,占全部读段的 91.3%。

From 100 bp to 3000 bp: 0 reads. At 5000 bp: 13. At 10 kb: 37. At 20 kb: 42, which is 91.3% of all reads.

这张图是整篇文章的转折点。前面说「k 要大于重复长度」,本质是在说「算法自己造出的长程连接要足够长」;而长读段直接用测序仪造出长程连接。条件只有一个:\(R > L\)。一旦满足,任何算法——dBG、OLC、string graph——都能跨过去,因为信息已经在数据里了。

This figure is the turning point. Everything above said “k must exceed the repeat length”, which is really “the algorithm’s self-made long-range links must be long enough”; long reads make the sequencer produce those links. The condition is just \(R > L\). Once it holds, any algorithm — dBG, OLC, string graph — gets across, because the information is in the data.

这也解释了为什么长读段工具的误差容忍度可以做得很高:它们不需要精确重叠,只需要足够长的重叠。反过来,长读段的错误率(ONT 原始 5–10%)让重叠不可靠,于是有了 HiFi(Q20 以上,错误率 < 1%)和「先纠错再组装」的路线。读长买来信息,准确率买来可靠,两者都要花钱。

It also explains why long-read tools tolerate so much error: they do not need exact overlaps, only long enough ones. Conversely, the error rate of raw ONT (5–10%) makes overlaps unreliable, which is why HiFi (Q20+, under 1% error) and the “correct, then assemble” route exist. Read length buys information, accuracy buys reliability, and both cost money.

13. 目前的工具 / The tools we actually have

把 29 个组装器放进一张表,按算法族与输入类型交叉,历史就很清楚了。

Put 29 assemblers in one table and cross algorithm family with input type; the history becomes obvious.

Figure 6: 29 个组装器的时间线:Sanger 时代的 OLC、短读段的 de Bruijn、长读段的 string graph 与重复图 | a timeline of 29 assemblers: OLC for Sanger, de Bruijn for short reads, string and repeat graphs for long reads
Figure 7: 算法族 × 输入:de Bruijn 只服务短读段,string graph 与重复图只服务长读段 | algorithm family against input: de Bruijn serves short reads, string and repeat graphs serve long ones
Table 3: 29 个组装器:语言几乎全是 C/C++,算法随读长换过一次 | 29 assemblers: nearly all C/C++, with one algorithm change driven by read length
工具 / tool 年份 语言 算法 输入 / input 对象 / scope 引用 / ref
Phrap 1995 C greedy sanger genome Green 1995
Celera Assembler 2000 C++ olc sanger genome Myers 2000
Arachne 2002 C++ olc sanger genome Jaffe 2003
Canu 2017 C++ olc long genome Koren 2017
NextDenovo 2019 C olc long genome NextDenovo repo
Raven 2021 C++ olc long genome Vaser 2021
Euler 2001 C++ euler sanger genome Pevzner 2001
Velvet 2008 C dbg short genome Zerbino 2008
ABySS 2009 C++ dbg short genome Simpson 2009
Ray 2010 C++ dbg short metagenome Boisvert 2010
ALLPATHS-LG 2011 C++ dbg short genome Gnerre 2011
SPAdes 2012 C++ dbg short genome Bankevich 2012
SOAPdenovo2 2012 C dbg short genome Luo 2012
IDBA-UD 2012 C++ dbg short metagenome Peng 2012
Platanus 2014 C++ dbg short genome Kajitani 2014
GATB 2014 C++ dbg short toolkit Drezen 2014
MEGAHIT 2015 C++ dbg short metagenome Li 2015
SKESA 2018 C++ dbg short bacterial Souvorov 2018
SGA 2012 C string short genome Simpson 2012
miniasm 2016 C string long genome Li 2016
hifiasm 2021 C++ string hifi genome Cheng 2021
Verkko 2021 C++ string hifi genome Rautiainen 2023
Hifiasm-meta 2022 C++ string hifi metagenome Feng 2022
Flye 2019 C++ repeatgraph long genome Kolmogorov 2019
metaFlye 2020 C++ repeatgraph long metagenome Kolmogorov 2020
wtdbg2 2019 C fuzzy long genome Ruan 2020
Shasta 2019 C++ marker long genome Shafin 2020
MaSuRCA 2013 C++ hybrid hybrid genome Zimin 2013
Unicycler 2017 Python hybrid hybrid bacterial Wick 2017

三个可以直接读数出来的结论。第一,语言几乎没有变过:21 个 C++、7 个 C、1 个 Python。组装是内存与速度的游戏,内核二十年都在 C/C++ 里。第二,算法换过一次:de Bruijn 的 11 个工具全部集中在 2008–2015 的短读段时代,string graph 与重复图的工具全部在 2016 年之后。第三,输入换代驱动了一切:短读段 12 个,长读段与 HiFi 11 个,正好一半一半。

Three conclusions read straight off the tables. First, the language barely changed: 21 in C++, 7 in C, 1 in Python. Assembly is a game of memory and speed, and the kernel has been C/C++ for twenty years. Second, the algorithm changed once: all 11 de Bruijn tools sit in the short-read era 2008–2015, and every string-graph or repeat-graph tool is from 2016 onwards. Third, the input drove everything: 12 short-read tools and 11 long-read or HiFi tools, almost exactly half each.

还有一张小表:评估工具。它们不组装,但决定了你能不能相信一个组装。

One more small table: the evaluation tools. They do not assemble, but they decide whether you can trust an assembly.

Table 4: 跑完组装之后必须跑的东西 | what you must run after assembling
工具 / tool 回答什么 / answers 依赖 / needs
QUAST contig 统计 + 参考比对 + 错连 参考(可选)
QUAST-LG 大基因组版 QUAST 参考(可选)
Merqury k-mer 完整性 + QV 读段 k-mer
BUSCO 保守基因找回比例 BUSCO 库
yak k-mer 谱算 QV 与杂合度 读段 k-mer
asmstats 简单统计(N50 等) 无

14. 怎么选 / How to choose

flowchart TD
    Q["手上有什么读段"] --> Q1{"只有短读段?"}
    Q --> Q2{"有长读段?"}
    Q --> Q3{"短 + 长都有?"}
    Q1 -->|细菌/小基因组| A1["SKESA · SPAdes<br/>高覆盖、干净"]
    Q1 -->|大基因组草稿| A2["MEGAHIT · SOAPdenovo2<br/>资源友好"]
    Q2 -->|HiFi| B1["hifiasm(二倍体分型)<br/>Verkko(T2T)"]
    Q2 -->|ONT 原始| B2["Flye · Raven · NextDenovo<br/>先纠错或直接重复图"]
    Q3 --> C1["Unicycler(细菌闭合)<br/>MaSuRCA(混合)"]
    B1 --> D["评估:QUAST + Merqury + BUSCO"]
    B2 --> D
    C1 --> D
    A1 --> D
    A2 --> D

四条经验。按读段选,不按名气选:短读段只能 de Bruijn,长读段只能 OLC 或 string graph,这是数据类型决定的。按目标选:要草稿用快的(MEGAHIT、SKESA),要 T2T 用贵的(Verkko、hifiasm + Hi-C)。倍性是隐藏难度:二倍体物种用 hifiasm 的分型模式或 trio 信息,别用单倍体工具硬拼。永远跑评估:N50 涨了不代表变好,QV 与 BUSCO 才是。

Four rules. Choose by read type, not by reputation: short reads can only use de Bruijn, long reads only OLC or string graphs — the data type decides. Choose by goal: a draft wants speed (MEGAHIT, SKESA), T2T wants money (Verkko, hifiasm with Hi-C). Ploidy is hidden difficulty: for diploid species use hifiasm’s phased mode or trio data, not a haploid tool. Always evaluate: a higher N50 does not mean better; QV and BUSCO do.

15. 如果要写一个新工具 / If you were to build one

下面是一份设计草案,我没有实现它;但每一步都能在现有工具里找到先例。

A design sketch that I have not implemented, though every step has precedent.

第 0 步:先定输出契约。 这是最容易被跳过、也最影响成败的一步。输出不该只是 FASTA,而应该是:组装序列(FASTA)、图(GFA,保留分支与覆盖度)、以及一张每个 contig 的元数据表(长度、覆盖度、是否单倍型、两端是否有端粒、是否与参考冲突)。为什么要 GFA:下游做变异、做比较基因组、做人工修补,都需要图;只给 FASTA 等于把最难的决定替你做了,而且做错了没人知道。

Step 0: fix the output contract. The step most often skipped and most decisive. The output should not be FASTA alone but: the assembly (FASTA), the graph (GFA, keeping branches and coverage), and a per-contig table (length, coverage, haplotype, whether both ends are telomeres, whether it conflicts with a reference). Why GFA: downstream variant calling, comparative genomics and manual finishing all need the graph; FASTA alone makes the hardest decisions for the user, silently.

第 1 步:选表示。 短读段用 de Bruijn(内存换简单),长读段用 string graph(信息换算法),超高重复或宏基因组用重复图。选错的代价很大:用 dBG 处理 ONT 会把错误全变成假分支,用 string graph 处理 100 bp 会退化成 \(O(n^2)\)。

Step 1: pick the representation. de Bruijn for short reads (memory for simplicity), string graph for long reads (information for algorithmic work), repeat graph for high-repeat or metagenomic data. Choosing wrong is expensive: dBG on ONT turns every error into a false branch, and a string graph on 100 bp degrades to \(O(n^2)\).

第 2 步:解决内存。 组装的第一限制不是时间而是内存。四条常用手段:k-mer 计数用 sorted / compact 结构(而不是 unordered_map,后者每个键要几十字节);k-mer 用 2-bit 打包;图用位压缩的边表;按 k-mer 前缀分块,每块独立组装再拼接(这也是并行化的入口)。

Step 2: solve memory. The binding constraint is memory, not time. Four standard moves: count k-mers with a sorted or compact structure (not unordered_map, which costs tens of bytes per key); pack k-mers in 2 bits; store the graph as a bit-compressed edge table; and partition by k-mer prefix, assembling each block independently and joining afterwards — which is also where parallelism enters.

第 3 步:决定「长度」从哪里来。 这是唯一不能靠工程解决的:长程信息只有四个来源——更长的读段、配对读段(含 Hi-C)、参考基因组、以及图本身(把多个个体的组装放在一起)。任何新工具的价值,基本上等于它在这四个来源里多榨出了多少。

Step 3: decide where long-range information comes from. This is the one thing engineering cannot fix: long-range information has only four sources — longer reads, paired reads (including Hi-C), a reference genome, and the graph itself (assembling several individuals together). The value of a new tool is roughly how much more it squeezes out of those four.

第 4 步:评估协议。 三条腿:模拟(已知真值,注入重复与错误,算 recall/precision 与错连);真实数据 + 独立评估(QUAST-LG、Merqury QV、BUSCO);消融(去掉纠错、去掉 TSD/端粒检测、换 k、换覆盖度,各掉多少)。没有第三条腿的论文,通常无法说明自己的增益从哪来。

Step 4: the evaluation protocol. Three legs: simulation (known truth, injected repeats and errors, recall/precision and misassemblies); real data with independent evaluation (QUAST-LG, Merqury QV, BUSCO); and ablations (drop correction, drop telomere detection, change k, change coverage, and measure each delta). A paper without the third leg usually cannot say where its gain comes from.

Table 5: 写组装器前要定的六件事 | six decisions before writing an assembler
决策 / choice 选项 A 选项 B 代价 / cost
表示 / representation de Bruijn string / repeat graph 内存或算法复杂度
计数器 / counter unordered_map sorted + 2-bit + 分块 实现复杂、要处理碰撞
长程信息 / long range 只用读长 读段 + Hi-C + 参考 成本与实验设计
二倍体 / diploid 单倍体拼完再分 分型组装(hifiasm 式) 内存翻倍、需要相位信息
输出 / output 只给 FASTA FASTA + GFA + 元数据表 下游友好、实现更严
评估 / evaluation 只报 N50 QUAST + Merqury + 模拟 时间,但决定可信度

失败模式,提前想清楚:端粒与着丝粒(重复阵列、覆盖异常)、片段重复(>95% 相似,长读段也跨不过)、杂合与重复混淆(气泡到底是一个还是两个)、样本污染(低丰度物种被拼成嵌合)、参考偏好(用参考引导时把差异抹平)、以及评估本身(用错参考会让错连看不见)。

Failure modes, to think through in advance: telomeres and centromeres (repeat arrays, odd coverage), segmental duplications (over 95% similar, which even long reads fail to cross), heterozygosity mistaken for repeats (is that bubble one copy or two), sample contamination (low-abundance species assembled into chimeras), reference bias (reference-guided assembly flattens real differences), and evaluation itself (the wrong reference hides misassemblies).

16. 常见的坑 / Pitfalls

Table 6: 八个最常见的坑 | the eight most common traps
坑 表现 对策
只报 N50 一次错连就涨,看着更好其实更差 N50 + NA50 + QV + BUSCO 一起报
用错参考评估 错连被参考的 gap 掩盖 用近缘但独立的参考,或读段评估
把杂合当重复 气泡被切开,两套单倍型拼成嵌合 分型组装 / trio / Hi-C
过滤太狠 低覆盖区真实 k-mer 被丢掉 按覆盖度自适应阈值
覆盖度不均匀 高 GC 或重复区覆盖塌陷成缺口 先看覆盖度直方图再解读
污染物拼成嵌合 低丰度物种混进主组装 先分箱再组装
忘记评估 QV 准确率没人测,下游变异全错 Merqury / yak 算 QV
参数不可复现 换台机器结果不同 锁定版本与参数,给容器

17. 复现 / Reproducing

Rscript scripts/00_sim.R        # 合成基因组 + k-mer 谱 / genome and spectrum
Rscript scripts/01_phase.R      # k 与重复长度的相变、错误扫描 / phase transition, errors
Rscript scripts/02_coverage.R   # 覆盖度与读长门槛 / coverage and read length
Rscript scripts/03_catalog.R    # 工具目录的三张图 / catalog figures

玩具组装器在 R/assemble.cpp,核心只有三个函数:sim_reads() 模拟读段,kmer_multiplicity() 数谱,assemble_stats() 建图并拆 unitig。所有实验的数字写在 outputs/metrics.json,图在 figures/。

The toy assembler is R/assemble.cpp with three functions: sim_reads() simulates reads, kmer_multiplicity() counts the spectrum, and assemble_stats() builds the graph and splits unitigs. All numbers land in outputs/metrics.json and all figures in figures/.

最后强调一次边界:本文的相变曲线来自一个玩具实现,真实工具的曲线形状相同(k 与重复长度的阈值关系是数学事实),但数值会被错误校正、配对、polishing 与启发式修饰。把它当作理解工具行为的坐标系,而不是工具排行榜。

One last boundary: the curves here come from a toy implementation. Real tools show the same shape — the threshold relation between k and repeat length is a mathematical fact — but the numbers are modified by error correction, pairing, polishing and heuristics. Use this as a coordinate system for understanding tools, not as a leaderboard.

参考文献 / References

  1. Myers, E. W., et al. (2000). A whole-genome assembly of Drosophila. Science 287, 2196–2204. doi:10.1126/science.287.5461.2196
  2. Pevzner, P. A., Tang, H., Waterman, M. S. (2001). An Eulerian path approach to DNA fragment assembly. PNAS 98, 9748–9753. doi:10.1073/pnas.171285098
  3. Jaffe, D. B., et al. (2003). Whole-genome sequence assembly for mammalian genomes: Arachne 2. Genome Research 13, 91–96. doi:10.1101/gr.828403
  4. Zerbino, D. R., Birney, E. (2008). Velvet: algorithms for de novo short read assembly using de Bruijn graphs. Genome Research 18, 821–829. doi:10.1101/gr.074492.107
  5. Simpson, J. T., et al. (2009). ABySS: a parallel assembler for short read sequence data. Genome Research 19, 1117–1123. doi:10.1101/gr.089532.108
  6. Li, R., et al. (2010). De novo assembly of human genomes with massively parallel short read sequencing. Genome Research 20, 265–272. doi:10.1101/gr.097261.109
  7. Gnerre, S., et al. (2011). High-quality draft assemblies of mammalian genomes from massively parallel sequence data. PNAS 108, 1513–1518. doi:10.1073/pnas.1017351108
  8. Bankevich, A., et al. (2012). SPAdes: a new genome assembly algorithm and its applications to single-cell sequencing. Journal of Computational Biology 19, 455–477. doi:10.1089/cmb.2012.0021
  9. Peng, Y., et al. (2012). IDBA-UD: a de novo assembler for single-cell and metagenomic sequencing data with highly uneven depth. Bioinformatics 28, 1420–1428. doi:10.1093/bioinformatics/bts174
  10. Simpson, J. T., Durbin, R. (2012). Efficient de novo assembly of large genomes using compressed data structures. Genome Research 22, 549–556. doi:10.1101/gr.126953.111
  11. Luo, R., et al. (2012). SOAPdenovo2: an empirically improved memory-efficient short-read de novo assembler. GigaScience 1, 18. doi:10.1186/2047-217X-1-18
  12. Zimin, A. V., et al. (2013). The MaSuRCA genome assembler. Bioinformatics 29, 2669–2677. doi:10.1093/bioinformatics/btt476
  13. Kajitani, R., et al. (2014). Efficient de novo assembly of highly heterozygous genomes from whole-genome shotgun short reads. Genome Research 24, 1384–1395. doi:10.1101/gr.170720.113
  14. Drezen, E., et al. (2014). GATB: genome assembly & analysis tool box. Bioinformatics 30, 2959–2961. doi:10.1093/bioinformatics/btu406
  15. Li, D., et al. (2015). MEGAHIT: an ultra-fast single-node solution for large and complex metagenomics assembly via succinct de Bruijn graph. Bioinformatics 31, 1674–1676. doi:10.1093/bioinformatics/btv033
  16. Li, H. (2016). Minimap and miniasm: fast mapping and de novo assembly for noisy long sequences. Bioinformatics 32, 2103–2110. doi:10.1093/bioinformatics/btw152
  17. Koren, S., et al. (2017). Canu: scalable and accurate long-read assembly via adaptive k-mer weighting and repeat separation. Genome Research 27, 722–736. doi:10.1101/gr.215087.116
  18. Wick, R. R., et al. (2017). Unicycler: resolving bacterial genome assemblies from short and long sequencing reads. PLoS Computational Biology 13, e1005595. doi:10.1371/journal.pcbi.1005595
  19. Souvorov, A., Agarwala, R., Lipman, D. J. (2018). SKESA: strategic k-mer extension for scrupulous assemblies. Genome Biology 19, 153. doi:10.1186/s13059-018-1540-z
  20. Kolmogorov, M., et al. (2019). Assembly of long, error-prone reads using repeat graphs. Nature Biotechnology 37, 540–546. doi:10.1038/s41587-019-0072-8
  21. Shafin, K., et al. (2020). Nanopore sequencing and the Shasta toolkit enable efficient de novo assembly of eleven human genomes. Nature Biotechnology 38, 1044–1053. doi:10.1038/s41587-020-0503-6
  22. Ruan, J., Li, H. (2020). Fast and accurate long-read assembly with wtdbg2. Nature Methods 17, 155–158. doi:10.1038/s41592-019-0669-3
  23. Cheng, H., Concepcion, G. T., Feng, X., Zhang, H., Li, H. (2021). Haplotype-resolved de novo assembly using phased assembly graphs with hifiasm. Nature Methods 18, 170–175. doi:10.1038/s41592-020-01056-5
  24. Vaser, R., Šikić, M. (2021). Time- and memory-efficient genome assembly with Raven. Nature Computational Science 1, 332–336. doi:10.1038/s43588-021-00073-4
  25. Rautiainen, M., et al. (2023). Telomere-to-telomere assembly of diploid chromosomes with Verkko. Nature Biotechnology 41, 1474–1482. doi:10.1038/s41587-023-01662-6
  26. Kolmogorov, M., et al. (2020). metaFlye: scalable long-read metagenome assembly using repeat graphs. Nature Methods 17, 1103–1110. doi:10.1038/s41592-020-00971-x
  27. Feng, X., Cheng, H., Portik, D., Li, H. (2022). Metagenome assembly of high-fidelity long reads with hifiasm-meta. Nature Methods 19, 671–674. doi:10.1038/s41592-022-01478-3
  28. Myers, E. W. (2005). The fragment assembly string graph. Bioinformatics 21, ii79–ii85. doi:10.1093/bioinformatics/bti1114
  29. Lander, E. S., Waterman, M. S. (1988). Genomic mapping by fingerprinting random clones: a mathematical analysis. Genomics 2, 231–239. doi:10.1016/0888-7543(88)90007-9
  30. Gurevich, A., et al. (2013). QUAST: quality assessment tool for genome assemblies. Bioinformatics 29, 1072–1075. doi:10.1093/bioinformatics/btt086
  31. Rhie, A., Walenz, B. P., Koren, S., Phillippy, A. M. (2020). Merqury: reference-free quality, completeness, and phasing assessment for genome assemblies. Genome Biology 21, 245. doi:10.1186/s13059-020-02134-9
  32. Simão, F. A., et al. (2015). BUSCO: assessing genome assembly and annotation completeness with single-copy orthologs. Bioinformatics 31, 3210–3212. doi:10.1093/bioinformatics/btv351
  33. Chikhi, R., Medvedev, P. (2014). Informed and automated k-mer size selection for genome assembly. Bioinformatics 30, 31–37. doi:10.1093/bioinformatics/btt310
  34. Koren, S., et al. (2018). De novo assembly of haplotype-resolved genomes with trio binning. Nature Biotechnology 36, 1174–1182. doi:10.1038/nbt.4277
  35. Nurk, S., et al. (2022). The complete sequence of a human genome. Science 376, 44–53. doi:10.1126/science.abj6987

关于引用:带 DOI 的条目为期刊论文;软件论文以作者-年份标注,工具主页见正文。文中所有实测数字都来自同目录脚本,与上述文献无关。

A note on citations: entries with a DOI are journal articles; software papers are cited by author and year, with homepages linked in the text. Every measured number comes from the scripts in this directory and is independent of the literature above.