# SNP检测

SNP检测是从测序数据中通过计算识别单核苷酸多态性（SNP）的过程，通常的做法是将比对到参考基因组上的读段进行分析，以定位可变位点并判定基因型。其输出是变异位点上的一组基因型判定结果，通常以VCF或GVCF格式交付。<sup>[1](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)</sup> SNP检测是范围更广的变异检测任务中的单核苷酸子集，后者还涵盖插入、缺失和复杂多态性。<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 变异位点上的基因型判定，VCF或GVCF格式<sup>[1](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)</sup> |
| 核心模型 | 贝叶斯基因型似然：\( P(G\mid D) = \frac{P(G)P(D\mid G)}{\sum_{i} P(G_{i})P(D\mid G_{i})} \)<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035890511-Assigning-per-sample-genotypes-HaplotypeCaller)</sup> |
| 关键概念 | 比对质量，即一条读段确实来自其所比对位置的置信度，随MAQ软件引入<sup>[4](https://doi.org/10.1101/gr.078212.108)</sup> |
| 与Sanger法相比的准确性 | NGS变异检测的记录准确性为>99%<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> |
| 检测工具间一致性 | 通常为80–90%或更高，差异集中在低覆盖度位点<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> |
| 短读段最佳F1 | DeepVariant 96.07%，BCFTools为95.67%<sup>[5](https://link.springer.com/article/10.1186/s12859-023-05596-3)</sup> |
| 长读段SNP最佳F1 | DeepVariant在PacBio Revio上为0.9993，在ONT双链数据上为0.999<sup>[6](https://www.nature.com/articles/s41467-024-50079-5)</sup> |

## 工作原理

SNP检测的核心是基因型似然模型。在每个候选位点上，检测工具会追问：哪种基因型——例如纯合参考、杂合或纯合变异——最能解释观测到的读段，同时将碱基质量错误概率纳入考量。HaplotypeCaller运用[贝叶斯定理](https://www.edgepedia.org/zh/bayes-theorem)计算每种可能基因型的似然并选出最可能者，对SNP、插入和缺失均使用 \( P(G\mid D) = \frac{P(G)P(D\mid G)}{\sum_{i} P(G_{i})P(D\mid G_{i})} \)。<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035890511-Assigning-per-sample-genotypes-HaplotypeCaller)</sup>

比对质量与碱基质量同等重要。MAQ软件引入了比对质量，即一条读段确实来自其所比对位置的置信度度量，并在一个综合了比对质量、碱基质量、两条单倍型的采样以及相关误差经验模型的框架下，判定使后验概率最大化的二倍体基因型。<sup>[4](https://doi.org/10.1101/gr.078212.108)</sup>

不同检测工具推导证据的方式各有不同。基于堆叠（pileup）的工具，如Samtools/BCFtools和FreeBayes，直接基于比对后的读段位置工作；FreeBayes则从检测窗口两端由参考匹配序列锚定的读段中推导单倍型观测，这些窗口包含多个分离等位基因。<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup><sup> • </sup><sup>[7](https://doi.org/10.48550/arxiv.1207.3907)</sup> GATK HaplotypeCaller在基因型判定之前对读段进行局部重比对或组装，从而提升变异检测的准确性。<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> DeepVariant用卷积神经网络取代统计模型：它将基因组划分为25,000碱基对的窗口，在make_examples阶段构建张量堆叠，在call_variants阶段用CNN计算基因型似然，并在postprocess_variants中判定基因型。<sup>[6](https://www.nature.com/articles/s41467-024-50079-5)</sup>

## 操作流程

标准的胚系工作流程如下。原始FastQ读段用BWA比对到参考序列，并处理为可供分析的SAM/BAM比对，附带经验性的逐碱基误差模型。随后检测工具发现所有具有变异等位基因统计证据的位点，生成每个样本的GVCF。对于多样本项目，GVCF被整合到GenomicsDB数据存储中，进行联合基因型判定，再由变异质量分数重校准（VQSR）过滤原始检测集，为每个变异赋予VQSLOD分数，该分数比检测工具给出的QUAL分数更为可靠。<sup>[1](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup>

GATK框架将此描述为三个阶段：原始读段的校准、发现具有变异等位基因证据的位点，以及整合协变量、已知位点、基因型、连锁不平衡和群体结构，以将真正的多态性位点与机器伪影区分开来。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC3083463/)</sup> 这一设计有意先求敏感、再求特异：初始检测集偏向敏感性，随后过滤在敏感性与特异性之间取得平衡。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup> VQSR需要足够数量的变异来训练其机器学习模型，因此较小的数据集或大多数非人类数据集改用硬过滤。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup>

## 起源

SNP检测早于高通量测序。毛细管时代的色谱图工具包括：PolyPhred，由Matthew Stephens及其同事于2006年在《Nature Genetics》上描述；<sup>[10](https://doi.org/10.1038/ng1746)</sup> SNPdetector，由[Jinghui Zhang](https://www.edgepedia.org/zh/jinghui-zhang)及其同事于2005年在《PLoS Computational Biology》上描述；<sup>[11](https://doi.org/10.1371/journal.pcbi.0010053)</sup> novoSNP，由Stefan Weckx及其同事于2005年在《Genome Research》上描述；<sup>[12](https://doi.org/10.1101/gr.2754005)</sup> 以及PolyScan，由[Ken Chen](https://www.edgepedia.org/zh/ken-chen)及其同事于2007年在《Genome Research》上描述，后者被设计为单一程序，用以替代多程序联用的测序峰图处理流程——在那种流程中，phred误判的次要等位基因会传播为下游的基因型判定错误。<sup>[13](https://doi.org/10.1101/gr.6151507)</sup>

向短读段测序的过渡伴随着MAQ而来，由[Heng Li](https://www.edgepedia.org/zh/heng-li)、Jue Ruan和Richard Durbin于2008年在《Genome Research》上描述，它引入了比对质量和贝叶斯共识序列判定。<sup>[4](https://doi.org/10.1101/gr.078212.108)</sup> 用于变异发现和基因型判定的GATK框架由Mark A DePristo及其同事于2011年在《Nature Genetics》上描述。<sup>[14](https://doi.org/10.1038/ng.806)</sup> DeepVariant由Ryan Poplin及其同事于2018年在《Nature Biotechnology》上描述，将深度神经网络引入SNP和小插入缺失检测，被认为是最早取得成功的深度学习变异检测工具之一。<sup>[15](https://doi.org/10.1038/nbt.4235)</sup><sup> • </sup><sup>[16](https://genomebiology.biomedcentral.com/counter/pdf/10.1186/s13059-021-02472-2.pdf)</sup>

## 变体

若干检测工具家族仍在使用。Samtools/BCFtools和FreeBayes从比对读段出发，用[贝叶斯统计](https://www.edgepedia.org/zh/bayesian-statistics)推断最可能的基因型；FreeBayes是一种基于单倍型的检测工具，通过从读段的实际序列进行判定，发现短于短读段比对范围的SNP、插入缺失、多核苷酸多态性和复杂事件，其模型推广了早期基于比对的检测工具所用的模型。在其最简单的操作中，它仅需一个FASTA参考和一个排序后的BAM，接受任意数量的个体，并可接受BED拷贝数图谱以处理非均匀倍性。<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup><sup> • </sup><sup>[17](https://github.com/freebayes/freebayes)</sup>

GATK提供HaplotypeCaller，它对读段进行局部组装，同时保留旧版UnifiedGenotyper——后者已被弃用，让位于HaplotypeCaller。自GATK 3.3版起，所有情况下均推荐使用HaplotypeCaller，无一例外；不过在较旧版本中，对于非二倍体生物、混合样本或极大队列，仍偏好UnifiedGenotyper，原因是HaplotypeCaller存在倍性限制。<sup>[30](https://github.com/broadinstitute/gatk-docs/blob/master/gatk3-tooldocs/3.5-0/org_broadinstitute_gatk_tools_walkers_genotyper_UnifiedGenotyper.html)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup> 两者默认均假定二倍体；倍性通过-ploidy参数设定，但混合实验受限于倍性与变异等位基因的组合爆炸。<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035890511-Assigning-per-sample-genotypes-HaplotypeCaller)</sup>

基于AI的检测工具包括DeepVariant和DNAscope。对于长读段，Clair3将基于堆叠表示的计算效率与全比对检测的准确性结合起来：高置信度的杂合堆叠判定用LongPhase进行定相，而低置信度的判定则进行单倍型感知的全比对检测。<sup>[18](https://www.ovid.com/journals/bioinf/fulltext/10.1093/bioinformatics/btag181~accelerated-long-read-variant-calling-with-clair3-for)</sup> 对于限制性酶切GBS和RAD-seq数据，Stacks流程对读段进行解复用和清理，将读段分组为基因座，跨个体构建目录，将个体与目录匹配，并导出基因型；它可以在无参考或基于参考的模式下工作。<sup>[19](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0161333)</sup> TASSEL-GBS是一种高通量GBS流程，<sup>[20](https://doi.org/10.1371/journal.pone.0090346)</sup> polyRAD则是一个R包，包含贝叶斯算法，可从多倍体和二倍体的读段深度估计基因型后验概率，并从TASSEL、Stacks或TagDigger等流程导入读段深度。<sup>[21](https://doi.org/10.1534/g3.118.200913)</sup>

## 应用

在临床测序中，检测工具在最佳实践流程中运行，配有伪影过滤，并在Integrative Genomics Viewer等查看器中对可报告变异进行人工审阅。<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> 在群体基因组学中，Stacks计算群体内的 \( F_{\mathrm{IS}} \) 和 \( \pi \) 以及群体间的 \( F_{\mathrm{ST}} \) 等度量用于基因组扫描，并导出VCF以及供STRUCTURE和GenePop使用的格式。<sup>[22](https://catchenlab.life.illinois.edu/stacks/)</sup> 在多倍体作物中，polyRAD针对GBS/RAD-seq读段深度低且不均匀的问题——否则会导致高缺失率、杂合子被误判为纯合子以及等位基因拷贝数不确定；它遵循的原则是：基因型无需以完全确定的方式判定，也能做出有用的推断。<sup>[21](https://doi.org/10.1534/g3.118.200913)</sup>

对照[Sanger测序](https://www.edgepedia.org/zh/sanger-sequencing)金标准，NGS变异检测的准确性记录为>99%。不同检测工具之间的一致性通常为80–90%或更高，多数差异位于低覆盖度或低置信度位点。<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> 在2023年一项涵盖Illumina、PacBio HiFi和ONT数据（来自Genome in a Bottle样本）的基准测试中，DeepVariant显示出最高的F1分数（96.07%），BCFTools紧随其后（95.67%）；该研究得出结论：在大多数方面，基于AI的检测工具在长读段和短读段的SNV及插入缺失检测上均优于传统工具。<sup>[5](https://link.springer.com/article/10.1186/s12859-023-05596-3)</sup> 一项针对14个WES和WGS金标准真值集、系统评估4种比对器和9种检测方法的基准测试发现，基于DeepVariant的流程始终优于所有其他方案，而Bowtie2与FreeBayes的组合因准确性损失较大而不被推荐，对WES数据尤其如此。<sup>[23](https://pubmed.ncbi.nlm.nih.gov/35193511/)</sup> 对于长读段，DeepVariant结合局部单倍型标记在PacBio Revio数据上达到SNP F1分数0.9993，在ONT单链数据上为0.9976，在ONT双链数据上为0.999。<sup>[6](https://www.nature.com/articles/s41467-024-50079-5)</sup>

自2023年以来，泛基因组方法改变了实践。vg Giraffe将读段比对到泛基因组图中个体基因组所观测到的参考单倍型路径，而非任意的图路径，<sup>[24](https://www.science.org/doi/10.1126/science.abg8871)</sup> 生产流程将Giraffe与泛基因组感知的DeepVariant配对，以提升复杂、高度变异区域的准确性。<sup>[25](https://docs.nvidia.com/clara/parabricks/tool-reference/tools/pangenome_germline)</sup> 长读段、深度学习、从头组装和泛基因组共同将变异检测扩展到了具有医学意义的重复序列区域。<sup>[26](https://www.nature.com/articles/s41576-023-00590-0)</sup>

## 局限与替代方案

低覆盖度会导致等位基因丢失：在采用平坦基因型先验和逐碱基测序错误概率的标准模型下，单条读段使纯合基因型的似然高于杂合基因型；每新增一条读段，若只观测到单一等位基因，杂合子的似然便下降一半，因此在低深度数据上做最大似然基因型判定会漏掉真正的杂合子，除非两个等位基因都被观测到。<sup>[27](https://eriqande.github.io/eca-bioinf-handbook/variant-calling.html)</sup> 伪影还来自链偏好性、低复杂度区域的错误比对，以及参考序列中代表性不足的读段旁系同源比对。<sup>[2](https://link.springer.com/article/10.1186/s13073-020-00791-w)</sup> 在基于参考的SNP发现中，若短读段比对器未能找到，读段可能无法比对到高度分化的区域。<sup>[28](https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2015.00235/full)</sup> 比对器的选择很重要：基于Burrows-Wheeler变换的比对器（如BWA）比基于哈希的比对器更快，但往往敏感性较低。<sup>[29](https://bmcgenomics.biomedcentral.com/articles/10.1186/s12864-016-3045-z)</sup> 只有通过比对质量和碱基质量阈值的读段与碱基才被使用，因为低覆盖度和低质量都会降低判定置信度。<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035890511-Assigning-per-sample-genotypes-HaplotypeCaller)</sup> 混合样本和非二倍体生物给默认二倍体的检测工具带来压力，而倍性推广受限于基因型的组合增长。<sup>[3](https://gatk.broadinstitute.org/hc/en-us/articles/360035890511-Assigning-per-sample-genotypes-HaplotypeCaller)</sup>

已发表的研究对SNP检测与基于k-mer或基于芯片的基因型判定方法进行了定量比较，也已开发出测量和量化参考偏倚的已发表方法。<sup>[31](https://pmc.ncbi.nlm.nih.gov/articles/PMC11027314/)</sup><sup> • </sup><sup>[32](https://pmc.ncbi.nlm.nih.gov/articles/PMC4129436/)</sup>

## References

1. [Germline short variant discovery (SNPs + Indels) – GATK documentation](https://gatk.broadinstitute.org/hc/en-us/articles/360035535932-Germline-short-variant-discovery-SNPs-Indels)
2. [Best practices for variant calling in clinical sequencing (Genome Medicine, 2020)](https://link.springer.com/article/10.1186/s13073-020-00791-w)
3. [Assigning per-sample genotypes (HaplotypeCaller) – GATK documentation](https://gatk.broadinstitute.org/hc/en-us/articles/360035890511-Assigning-per-sample-genotypes-HaplotypeCaller)
4. [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)
5. [Performance analysis of conventional and AI-based variant callers using short and long reads (BMC Bioinformatics, 2023)](https://link.springer.com/article/10.1186/s12859-023-05596-3)
6. [Local read haplotagging enables accurate long-read small variant calling (Nature Communications, 2024)](https://www.nature.com/articles/s41467-024-50079-5)
7. [Garrison, Erik, Marth, Gabor (2012). Haplotype-based variant detection from short-read sequencing. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1207.3907)
8. [From FastQ data to high confidence variant calls: the Genome Analysis Toolkit best practices pipeline (Current Protocols)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)
9. [A framework for variation discovery and genotyping using next-generation DNA sequencing data (GATK framework, DePristo et al. 2011)](https://pmc.ncbi.nlm.nih.gov/articles/PMC3083463/)
10. [Matthew Stephens and colleagues (2006). Automating sequence-based detection and genotyping of SNPs from diploid samples. Nature Genetics.](https://doi.org/10.1038/ng1746)
11. [Jinghui Zhang and colleagues (2005). SNPdetector: A Software Tool for Sensitive and Accurate SNP Detection. PLoS Computational Biology.](https://doi.org/10.1371/journal.pcbi.0010053)
12. [Stefan Weckx and colleagues (2005). novoSNP, a novel computational tool for sequence variation discovery. Genome Research.](https://doi.org/10.1101/gr.2754005)
13. [Ken Chen and colleagues (2007). PolyScan: An automatic indel and SNP detection approach to the analysis of human resequencing data. Genome Research.](https://doi.org/10.1101/gr.6151507)
14. [Mark A DePristo and colleagues (2011). A framework for variation discovery and genotyping using next-generation DNA sequencing data. Nature Genetics.](https://doi.org/10.1038/ng.806)
15. [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)
16. [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, 2021)](https://genomebiology.biomedcentral.com/counter/pdf/10.1186/s13059-021-02472-2.pdf)
17. [freebayes/freebayes (official documentation)](https://github.com/freebayes/freebayes)
18. [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)
19. [Genome-Wide SNP Calling from Genotyping by Sequencing (GBS) Data: A Comparison of Seven Pipelines and Two Sequencing Technologies (PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0161333)
20. [Jeffrey C. Glaubitz and colleagues (2014). TASSEL-GBS: A High Capacity Genotyping by Sequencing Analysis Pipeline. PLoS ONE.](https://doi.org/10.1371/journal.pone.0090346)
21. [Lindsay V Clark, Alexander E Lipka, Erik J Sacks (2019). polyRAD: Genotype Calling with Uncertainty from Sequencing Data in Polyploids and Diploids. G3 Genes Genomes Genetics.](https://doi.org/10.1534/g3.118.200913)
22. [Stacks (official software site)](https://catchenlab.life.illinois.edu/stacks/)
23. [Systematic benchmark of state-of-the-art variant calling pipelines identifies major factors affecting accuracy of coding sequence variant discovery](https://pubmed.ncbi.nlm.nih.gov/35193511/)
24. [Pangenomics enables genotyping of known structural variants in 5202 diverse genomes (Science)](https://www.science.org/doi/10.1126/science.abg8871)
25. [pangenome_germline | Parabricks docs (NVIDIA)](https://docs.nvidia.com/clara/parabricks/tool-reference/tools/pangenome_germline)
26. [Variant calling and benchmarking in an era of complete human genome sequences (Nature Reviews Genetics, 2023)](https://www.nature.com/articles/s41576-023-00590-0)
27. [Chapter 20 Variant calling | Practical Computing and Bioinformatics for Conservation and Evolutionary Genomics](https://eriqande.github.io/eca-bioinf-handbook/variant-calling.html)
28. [Best practices for evaluating single nucleotide variant calling methods for microbial genomics (Frontiers in Genetics)](https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2015.00235/full)
29. [An analytical workflow for accurate variant discovery in highly divergent regions (BMC Genomics)](https://bmcgenomics.biomedcentral.com/articles/10.1186/s12864-016-3045-z)
30. [Org broadinstitute gatk tools walkers genotyper UnifiedGenotyper (github.com)](https://github.com/broadinstitute/gatk-docs/blob/master/gatk3-tooldocs/3.5-0/org_broadinstitute_gatk_tools_walkers_genotyper_UnifiedGenotyper.html)
31. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC11027314/)
32. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC4129436/)

---
*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/snp-detection

English original: https://www.edgepedia.org/snp-detection
