# 变异检测

变异检测是[生物信息学](https://www.edgepedia.org/zh/bioinformatics)中的一个步骤，通过将测序读段与参考基因组比对，识别基因组变异（如SNP和插入缺失），并以VCF格式将其报告为基因型判定。

输出结果是变异检测格式（VCF）文件，该格式为千人基因组计划开发，并被UK10K、dbSNP和NHLBI外显子组计划采用。<sup>[1](https://doi.org/10.1093/bioinformatics/btr330)</sup> VCF定义了八个必填列（CHROM、POS、ID、REF、ALT、QUAL、FILTER、INFO），并存储SNP、插入缺失和结构变异及其注释，如GL基因型似然度和GQ基因型质量。<sup>[1](https://doi.org/10.1093/bioinformatics/btr330)</sup> 因此，一个判定不仅仅是原始的变异位点：它携带每个样本的基因型和置信度评分。

| 关键事实 | 详情 |
|---|---|
| 输出 | SNP、插入缺失和结构变异的VCF记录，含基因型似然度（GL）和基因型质量（GQ）<sup>[1](https://doi.org/10.1093/bioinformatics/btr330)</sup> |
| 标准流程 | 比对、局部重比对、碱基质量重校准、基因型判定、机器学习过滤<sup>[2](https://www.nature.com/articles/ng.806)</sup> |
| 核心算法（HaplotypeCaller） | 活跃区域、局部重组装、PairHMM似然度、贝叶斯法则基因型判定<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell)</sup> |
| 与Sanger测序的准确性对比 | 记录为>99%；HaplotypeCaller在基准测试中F分数>0.99<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> |
| 最佳短读段F1 | 在约35×覆盖度下，SNV和插入缺失合计为0.999（DeepVariant、DNAscope）<sup>[5](https://link.springer.com/article/10.1186/s12859-023-05596-3)</sup> |
| 长读段速度 | 加速版Clair3在32个CPU线程和一个NVIDIA GPU上，12–20分钟即可完成30×全基因组的检测<sup>[6](https://www.ovid.com/journals/bioinf/fulltext/10.1093/bioinformatics/btag181~accelerated-long-read-variant-calling-with-clair3-for)</sup> |
| 临床深度 | 临床和公共卫生应用建议最低25×深度<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC11466455/)</sup> |

## 工作原理

例如，samtools mpileup命令计算给定每种可能基因型下数据的似然度，并将似然度以BCF格式存储，而不进行任何判定；bcftools随后应用先验并执行实际判定。<sup>[8](https://samtools.sourceforge.net/mpileup.shtml)</sup> 似然度以PL格式写入，即Phred标度的数据似然度：PL=7,0,37表示 \( P(D \mid CC) = 10^{-0.7} \)、\( P(D \mid CA) = 1 \)、\( P(D \mid AA) = 10^{-3.7} \)。<sup>[8](https://samtools.sourceforge.net/mpileup.shtml)</sup>

基于单倍型的判定优于仅基于堆叠的模型。GATK的HaplotypeCaller分四步运行：定义活跃区域、通过局部重组装确定单倍型、用PairHMM确定单倍型似然度、用贝叶斯法则分配基因型。<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell)</sup> 对每个活跃区域，程序构建类De Bruijn图以重组装读段并识别可能的单倍型，然后使用Smith-Waterman将每个单倍型与参考序列重比对。<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell)</sup> PairHMM对每个读段与每个单倍型进行成对比对，产生给定读段数据下单倍型似然度的矩阵，将其边缘化为每个等位基因的似然度；贝叶斯法则随后得出每个样本的后验基因型似然度。<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell)</sup>

统计模型不断演进。早期概率方法如MAQ和SOAPsnp使用固定的先验值作为杂合子概率和核苷酸读取错误概率，而SeqEM通过自适应期望最大化（EM）方法引入了多样本基因型判定。<sup>[9](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0075619)</sup> 深度学习检测器用学习到的错误模型替代手工指定的模型：DeepVariant通过学习候选变异周围的读段堆叠图像与真实基因型判定之间的统计关系来检测变异。<sup>[10](https://doi.org/10.1038/nbt.4235)</sup>

## 如何操作

标准的胚系流程从原始FASTQ文件开始。GATK最佳实践流程使用BWA比对读段，运行Picard或SAMtools处理，然后执行GATK变异发现，有意在初始判定集中优先考虑灵敏度，再通过过滤提高特异性。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup> 2011年原始流程的五步框架为：初始读段比对；插入缺失周围的局部重比对；碱基质量分数重校准（BQSR）；SNP发现和基因型判定；以及用机器学习区分真实变异与机器伪影；当前使用HaplotypeCaller等检测器的工作流程省略了独立的重新比对步骤，因为检测器自行执行局部重组装。<sup>[2](https://www.nature.com/articles/ng.806)</sup><sup> • </sup><sup>[34](https://sites.google.com/a/broadinstitute.org/legacy-gatk-documentation/announcements/7847-Changing-workflows-around-calling-SNPs-and-indels)</sup>

两个实际选择很重要。第一，SNP和插入缺失分别进行重校准和过滤，因为这两类变异具有不同的错误特征。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup> 第二，过滤可以是统计性的或基于规则的：VQSR是一种两步机器学习方法，从真值训练集构建自适应错误模型，并为每个变异标注VQSLOD对数几率分数，即该判定为真阳性而非假阳性的对数几率；它需要大型数据集和真值资源，因此小型研究改用硬过滤。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup>

已发表的评估对BQSR和局部重比对的帮助程度存在分歧：一篇综述报告称，相对于计算成本，准确性提升微乎其微，使得这些步骤成为可选的。<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> 比对器的选择也比检测器的选择影响更小，但有一个例外：在一项针对14个GIAB金标准数据集的四种比对器和九种检测器的基准测试中，Bowtie2的表现显著差于其他工具，被判定不适合医学变异检测，而使用其他比对器时准确性主要取决于检测器。<sup>[12](https://europepmc.org/article/MED/35193511)</sup>

## 起源

该领域的概率基础由MAQ奠定，它使用比对质量分数进行短读段比对和变异检测（李恒、阮珏和Richard Durbin，《Genome Research》，2008年）。<sup>[13](https://doi.org/10.1101/gr.078212.108)</sup> 2009年，同一团队发表了使用Burrows-Wheeler变换的短读段比对工具BWA（Li和Durbin，《Bioinformatics》）<sup>[14](https://doi.org/10.1093/bioinformatics/btp324)</sup>以及SAM格式和SAMtools，其工具链包含变异检测器（[李恒](https://www.edgepedia.org/zh/heng-li)及其同事，《Bioinformatics》）。<sup>[15](https://doi.org/10.1093/bioinformatics/btp352)</sup> GATK于2010年由McKenna及其同事推出，是一个结构化Java框架，采用[MapReduce](https://www.edgepedia.org/zh/mapreduce)理念进行下一代测序分析（《Genome Research》）<sup>[16](https://doi.org/10.1101/gr.107524.110)</sup>；DePristo及其同事于2011年在《Nature Genetics》上发表了变异发现框架。<sup>[2](https://www.nature.com/articles/ng.806)</sup> VCF格式本身于2011年由Danecek及其同事发表，附带VCFtools（《Bioinformatics》）。<sup>[1](https://doi.org/10.1093/bioinformatics/btr330)</sup> FreeBayes是一种基于单倍型的检测器，由Erik Garrison和Gabor Marth于2012年描述（arXiv）。<sup>[17](https://doi.org/10.48550/arxiv.1207.3907)</sup> Strelka2涵盖胚系和体细胞变异，由Kim及其同事于2018年在《Nature Methods》上发表<sup>[18](https://doi.org/10.1038/s41592-018-0051-x)</sup>；深度学习检测器DeepVariant由Poplin及其同事于2018年在《Nature Biotechnology》上发表。<sup>[10](https://doi.org/10.1038/nbt.4235)</sup> 对于长读段，PEPPER-Margin-DeepVariant（Shafin及其同事，《Nature Methods》，2021年）<sup>[19](https://doi.org/10.1038/s41592-021-01299-w)</sup>和Clair3（Zheng及其同事，《Nature Computational Science》，2022年）<sup>[20](https://doi.org/10.1038/s43588-022-00387-x)</sup>是主要的深度学习条目，后者融合了堆叠和全比对模型。

## 变体

**胚系与体细胞。** 胚系检测区分遗传变异与测序和比对错误。<sup>[21](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0339891)</sup> 体细胞检测器如MuTect2、Strelka2和VarScan2同时考虑肿瘤和正常数据，必须将低频变异与伪影区分开来，这需要灵敏的统计建模和先进的错误校正。<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> GATK明确不建议将HaplotypeCaller用于癌症变异发现，因为其似然度算法不太适合相对于倍性的极端等位基因频率，并建议改用Mutect2。<sup>[22](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)</sup> 由于没有体细胞检测器在所有场景中都能提供优越性能，建议采用组合两种或更多互补检测器的集成方法。<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup>

**长读段和基于图的检测。** 长读段检测器包括Longshot，它能够从单分子长读段中对二倍体基因组进行准确的变异检测<sup>[23](https://doi.org/10.1038/s41467-019-12493-y)</sup>，以及NanoCaller<sup>[24](https://doi.org/10.1186/s13059-021-02472-2)</sup>，还有单倍型组装工具如HapCUT2。<sup>[25](https://doi.org/10.1101/gr.213462.116)</sup> 基于图的基因型判定工具包括Graphtyper，用于使用泛基因组图进行群体规模基因型判定<sup>[26](https://doi.org/10.1038/ng.3964)</sup>，以及[Paragraph](https://www.edgepedia.org/zh/paragraph)，一种用于短读段数据的基于图的结构变异基因型判定器。<sup>[27](https://doi.org/10.1186/s13059-019-1909-7)</sup>

## 应用

**准确性与计算。** NGS变异检测相对于[Sanger测序](https://www.edgepedia.org/zh/sanger-sequencing)的准确性记录为>99%，HaplotypeCaller在众多基准数据集中展示了F分数>0.99。<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> 在约35×覆盖度下，DNAscope和DeepVariant对SNV和插入缺失的综合调和平均F1达到0.999。<sup>[5](https://link.springer.com/article/10.1186/s12859-023-05596-3)</sup> 检测器的权衡各不相同：samtools反映保守设计，FreeBayes的宽松单倍型感知先验在较低精确度下产生高召回率，Strelka2的随机森林模型优于VarScan2。<sup>[21](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0339891)</sup> 没有单一检测器普遍优越；选择取决于优先考虑精确度、召回率还是效率。<sup>[21](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0339891)</sup> 计算随模型扩展：在20×至30×全基因组覆盖度下，每个样本的运行时间可跨越数十到数百个CPU核心小时。<sup>[6](https://www.ovid.com/journals/bioinf/fulltext/10.1093/bioinformatics/btag181~accelerated-long-read-variant-calling-with-clair3-for)</sup>

**队列与联合基因型判定。** 胚系流程以GVCF模式对每个样本运行HaplotypeCaller，用GenomicsDBImport合并GVCF，用GenotypeGVCFs进行联合基因型判定，并用VQSR过滤。<sup>[22](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)</sup> 从GATK 3.x开始，判定被解耦为每样本基因型似然度计算（昂贵）和队列范围基因型后验计算（廉价），从而实现队列的增量增长并解决了N+1问题；该流程扩展到了ExAC的92K外显子组。<sup>[22](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)</sup> 联合判定在所有变异位点为每个样本产生基因型，支持三人组中的定相，减轻变异表示差异，并提高低覆盖度区域的灵敏度。<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> 在生物样本库规模上，DeepVariant被UK Biobank WES联盟选用，DRAGEN-GATK对超过100万个[All of Us](https://www.edgepedia.org/zh/all-of-us)样本进行了基因型判定，GATK用于180K TOPMed样本。<sup>[5](https://link.springer.com/article/10.1186/s12859-023-05596-3)</sup> 基准测试依赖于共识资源，如GIAB基准基因型判定<sup>[28](https://doi.org/10.1038/nbt.2835)</sup>和合成二倍体基准。<sup>[29](https://doi.org/10.1038/s41592-018-0054-7)</sup>

## 局限与替代方案

短读段检测具有特征性失败模式，过滤和人工审查必须捕捉：低质量碱基判定、插入缺失附近局部比对错误导致的读段末端伪影、链偏好、低复杂度区域的错误比对，以及参考序列中未充分代表的读段旁系同源比对。<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> 插入缺失诱导的假SNP可通过计算解决：碱基比对质量（BAQ）在samtools 0.1.9及更高版本中为每个碱基分配该碱基比对错误的Phred标度概率，对于高覆盖度单样本SNP检测，BAQ似乎与多序列重比对同样有效，且速度快得多。<sup>[8](https://samtools.sourceforge.net/mpileup.shtml)</sup> 在ONT平台上，使用快速模型进行碱基判定的读段通常将同聚核苷酸序列的长度误算1或2 bp，这是一种系统性错误，可通过sup碱基判定器和深度学习检测器减轻。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC11466455/)</sup> 约150 bp的读段通常不足以解析复杂结构变异和长插入<sup>[4](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup>；使用Winnowmap2的重复感知长读段比对可处理重复参考序列<sup>[30](https://doi.org/10.1038/s41592-022-01457-8)</sup>，Truvari则精化结构变异比较以用于基准测试。<sup>[31](https://doi.org/10.1186/s13059-022-02840-6)</sup>

深度学习检测器现在在基准测试中占主导地位：在GIAB样本的Illumina、PacBio HiFi和ONT数据上，DeepVariant等AI检测器在大多数方面取代了传统检测器（BCFTools、GATK4、Platypus）进行SNV和插入缺失检测，DeepVariant提供最均衡的判定，每个基因组错误减少50%以上。<sup>[5](https://link.springer.com/article/10.1186/s12859-023-05596-3)</sup> 泛基因组感知检测已作为产品流程出现：NVIDIA Parabricks提供从FASTQ到VCF的GPU加速端到端胚系流程，结合vg Giraffe泛基因组比对和泛基因组感知DeepVariant，支持与GRCh38比对的HPRC v1.1 Minigraph-Cactus图。<sup>[32](https://docs.nvidia.com/clara/parabricks/tool-reference/tools/pangenome_germline)</sup><sup> • </sup><sup>[33](https://doi.org/10.1101/2025.06.05.657102)</sup> GATK也在试验基于神经网络的过滤（CNNScoreVariants/FilterVariantTranches），目标是最终取代VQSR。<sup>[22](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)</sup> 已发表的评估尚未解决超大群体联合基因型判定需要多少计算量，也未解决FFPE伪影、等位基因丢失和污染的具体失败模式。

## References

1. [Petr Danecek and colleagues (2011). The variant call format and VCFtools. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btr330)
2. [A framework for variation discovery and genotyping using next-generation DNA sequencing data](https://www.nature.com/articles/ng.806)
3. [HaplotypeCaller in a nutshell – GATK](https://gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell)
4. [Best practices for variant calling in clinical sequencing](https://link.springer.com/article/10.1186/s13073-020-00791-w)
5. [Performance analysis of conventional and AI-based variant callers using short and long reads](https://link.springer.com/article/10.1186/s12859-023-05596-3)
6. [Accelerated long-read variant calling with Clair3 (Bioinformatics)](https://www.ovid.com/journals/bioinf/fulltext/10.1093/bioinformatics/btag181~accelerated-long-read-variant-calling-with-clair3-for)
7. [Benchmarking reveals superiority of deep learning variant callers on bacterial nanopore sequence data (eLife, 2024)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11466455/)
8. [Calling SNPs/INDELs with SAMtools/BCFtools (mpileup documentation)](https://samtools.sourceforge.net/mpileup.shtml)
9. [Variant Callers for Next-Generation Sequencing Data: A Comparison Study](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0075619)
10. [Ryan Poplin and colleagues (2018). A universal SNP and small-indel variant caller using deep neural networks. Nature Biotechnology.](https://doi.org/10.1038/nbt.4235)
11. [From FastQ data to high confidence variant calls: the Genome Analysis Toolkit best practices pipeline](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)
12. [Systematic benchmark of state-of-the-art variant calling pipelines identifies major factors affecting accuracy of coding sequence variant discovery](https://europepmc.org/article/MED/35193511)
13. [Heng Li, Jue Ruan, Richard Durbin (2008). Mapping short DNA sequencing reads and calling variants using mapping quality scores. Genome Research.](https://doi.org/10.1101/gr.078212.108)
14. [Heng Li, Richard Durbin (2009). Fast and accurate short read alignment with Burrows–Wheeler transform. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btp324)
15. [Heng Li and colleagues (2009). The Sequence Alignment/Map format and SAMtools. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btp352)
16. [Aaron McKenna and colleagues (2010). The Genome Analysis Toolkit: A MapReduce framework for analyzing next-generation DNA sequencing data. Genome Research.](https://doi.org/10.1101/gr.107524.110)
17. [Garrison, Erik, Marth, Gabor (2012). Haplotype-based variant detection from short-read sequencing. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1207.3907)
18. [Sangtae Kim and colleagues (2018). Strelka2: fast and accurate calling of germline and somatic variants. Nature Methods.](https://doi.org/10.1038/s41592-018-0051-x)
19. [Kishwar Shafin and colleagues (2021). Haplotype-aware variant calling with PEPPER-Margin-DeepVariant enables high accuracy in nanopore long-reads. Nature Methods.](https://doi.org/10.1038/s41592-021-01299-w)
20. [Zhenxian Zheng and colleagues (2022). Symphonizing pileup and full-alignment for deep learning-based long-read variant calling. Nature Computational Science.](https://doi.org/10.1038/s43588-022-00387-x)
21. [Variant calling in genomics: A comparative performance analysis and decision guide](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0339891)
22. [Germline short variant discovery (SNPs + Indels) – GATK](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)
23. [Peter Edge, Vikas Bansal (2019). Longshot enables accurate variant calling in diploid genomes from single-molecule long read sequencing. Nature Communications.](https://doi.org/10.1038/s41467-019-12493-y)
24. [Mian Umair Ahsan and colleagues (2021). NanoCaller for accurate detection of SNPs and indels in difficult-to-map regions from long-read sequencing by haplotype-aware deep neural networks. Genome biology.](https://doi.org/10.1186/s13059-021-02472-2)
25. [Peter Edge, Vineet Bafna, Vikas Bansal (2016). HapCUT2: robust and accurate haplotype assembly for diverse sequencing technologies. Genome Research.](https://doi.org/10.1101/gr.213462.116)
26. [Hannes P Eggertsson and colleagues (2017). Graphtyper enables population-scale genotyping using pangenome graphs. Nature Genetics.](https://doi.org/10.1038/ng.3964)
27. [Sai Chen and colleagues (2019). Paragraph: a graph-based structural variant genotyper for short-read sequence data. Genome biology.](https://doi.org/10.1186/s13059-019-1909-7)
28. [Justin M Zook and colleagues (2014). Integrating human sequence data sets provides a resource of benchmark SNP and indel genotype calls. Nature Biotechnology.](https://doi.org/10.1038/nbt.2835)
29. [Heng Li and colleagues (2018). A synthetic-diploid benchmark for accurate variant-calling evaluation. Nature Methods.](https://doi.org/10.1038/s41592-018-0054-7)
30. [Chirag Jain and colleagues (2022). Long-read mapping to repetitive reference sequences using Winnowmap2. Nature Methods.](https://doi.org/10.1038/s41592-022-01457-8)
31. [Adam C. English and colleagues (2022). Truvari: refined structural variant comparison preserves allelic diversity. Genome biology.](https://doi.org/10.1186/s13059-022-02840-6)
32. [pangenome_germline | NVIDIA Parabricks documentation](https://docs.nvidia.com/clara/parabricks/tool-reference/tools/pangenome_germline)
33. [Mobin Asri and colleagues (2025). Pangenome-aware DeepVariant. bioRxiv (Cold Spring Harbor Laboratory).](https://doi.org/10.1101/2025.06.05.657102)
34. [7847 Changing workflows around calling SNPs and indels (sites.google.com)](https://sites.google.com/a/broadinstitute.org/legacy-gatk-documentation/announcements/7847-Changing-workflows-around-calling-SNPs-and-indels)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 生命与健康 › 生物学基础 › 遗传学与基因组参考资料 › Genomics, sequencing, and genome resources › Genotyping and variant analysis

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/variant-calling

English original: https://www.edgepedia.org/variant-calling
