# 变异过滤

变异过滤是基因组学中的生物信息学步骤，用于将真实的变异检出与测序伪影区分开来，主要有两种形式：对单个注释施加固定阈值的硬过滤，以及机器学习重校准，例如 GATK 的变异质量分数重校准（VQSR），GATK 最佳实践方案默认推荐后者，因为它比硬过滤“更强大且更不易产生偏差”。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup> 在这些方法中，记录是被标记而非删除：VQSR 将标签写入 VCF 的 FILTER 列，并在 INFO 字段中添加 VQSLOD 分数，<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup> 而 FVC 在 INFO 中写入概率分数，当该概率低于 0.5 时将记录标记为“Filtered”。<sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup>

| 关键事实 | 详情 |
|---|---|
| 过滤改变了什么 | VCF FILTER 列中的标签（例如层级名称或“Filtered”）以及 INFO 中的分数注释如 VQSLOD；记录通常是被标记而非删除。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup><sup> • </sup><sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup> |
| VQSR 机制 | 在已知真值资源上训练的高斯混合模型将每个变异评为 VQSLOD，即真与假的对数几率，通常涵盖 5 到 8 个注释维度。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup> |
| 典型 SNP 硬阈值 | QD < 2.0、QUAL < 30.0、SOR > 3.0、FS > 60.0、MQ < 40.0、MQRankSum < -12.5、ReadPosRankSum < -8.0。<sup>[4](https://gatk.broadinstitute.org/hc/en-us/articles/360035531112--How-to-Filter-variants-either-with-VQSR-or-by-hard-filtering)</sup> |
| 典型 indel 硬阈值 | QD < 2.0、QUAL < 30.0、FS > 200.0、ReadPosRankSum < -20.0。<sup>[4](https://gatk.broadinstitute.org/hc/en-us/articles/360035531112--How-to-Filter-variants-either-with-VQSR-or-by-hard-filtering)</sup> |
| VQSR 数据要求 | 在人类中，至少一个全基因组或 30 个外显子组时效果良好；较小的队列、大多数非人类数据和 RNA-seq 检出应使用硬过滤。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup> |
| 准确性直接对比 | 在 30× 覆盖度的 GATK SNV 上，FVC 达到平均 AUC 0.998，而 VQSR 为 0.926，硬过滤为 0.870。<sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup> |

## 工作原理

硬过滤对每个注释施加单独的阈值，并标记任何违反其中之一的记录。

VQSR 的工作方式不同：尽管名称如此，它完全不重校准 QUAL，而是在已知的高度验证资源（HapMap 3、Omni 2.5M、1000 Genomes）上训练[高斯混合模型](https://www.edgepedia.org/zh/gaussian-mixture-model)，并计算一个新分数 VQSLOD，即在该模型下检出为真阳性相对于假阳性的对数几率比，通常整合 5 到 8 个注释维度。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup> 然后变异被切分为层级，即相对于真值集的灵敏度水平。第一层级（默认 90）具有最低的真值灵敏度但最高的新发现 Ti/Tv，因此极具特异性；ApplyVQSR 将低于所选层级 VQSLOD 截断值的记录在 FILTER 中标记为层级名称而非丢弃，因此用户可以选择放宽的程度。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup>

## 如何操作

对于生殖系检出集，GATK 最佳实践推荐 VQSR，当数据无法支持时以硬过滤作为后备方案，通常适用于少于三十个外显子组的队列；硬过滤还允许对 FORMAT（样本级）注释进行过滤，这是 VQSR 不覆盖的。<sup>[4](https://gatk.broadinstitute.org/hc/en-us/articles/360035531112--How-to-Filter-variants-either-with-VQSR-or-by-hard-filtering)</sup> 在 VQSR 运行中，SNP 和 indel 分别重校准。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup> 对于 SNP 重校准，标准资源为 hapmap（先验 15）、omni（先验 12）、1000G 高置信度（先验 10）和 dbSNP（先验 7），使用 --max-gaussians 6；对于 indel，使用 Mills（先验 12）和 Axiom Poly（先验 10），--max-gaussians 4，注释为 FS、ReadPosRankSum、MQRankSum、QD、SOR 和 DP。<sup>[4](https://gatk.broadinstitute.org/hc/en-us/articles/360035531112--How-to-Filter-variants-either-with-VQSR-or-by-hard-filtering)</sup> Broad 的生产生殖系流程在 VQSR 之前对 ExcessHet 进行硬过滤，移除 ExcessHet 大于 54.69 的记录，该 phred 标度值对应 z 分数 -4.5。<sup>[4](https://gatk.broadinstitute.org/hc/en-us/articles/360035531112--How-to-Filter-variants-either-with-VQSR-or-by-hard-filtering)</sup>

文档中的两个实用注意事项：DP 注释不应在外显子组数据集中使用，因为捕获深度变化极大；InbreedingCoeff 需要至少 10 个样本；比对质量具有非高斯分布，可能使模型不稳定。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup> GATK 也不推荐使用逻辑或的复合过滤表达式，因为缺失的注释会导致整个表达式通过。<sup>[4](https://gatk.broadinstitute.org/hc/en-us/articles/360035531112--How-to-Filter-variants-either-with-VQSR-or-by-hard-filtering)</sup>

## 起源

GATK 框架内的变异过滤源自基因组分析工具包，这是一个用于分析下一代 DNA 测序数据的 [MapReduce](https://www.edgepedia.org/zh/mapreduce) 框架，由[亚伦·麦肯纳](https://www.edgepedia.org/zh/aaron-mckenna)（Aaron McKenna）及其同事于 2010 年在 Genome Research 上报道。<sup>[5](https://doi.org/10.1101/gr.107524.110)</sup> VQSR 方法由马克·A·德普里斯托（Mark A DePristo）及其同事于 2011 年在 Nature Genetics 上提出，作为五步工作流程的第 (v) 步：机器学习将真实分离变异与下一代测序技术中常见的机器伪影区分开来。<sup>[6](https://doi.org/10.1038/ng.806)</sup> 该框架应用于深度全基因组、全外显子组捕获和多样本低覆盖度（约 4×）1000 Genomes 计划数据集，在五种测序技术和三种实验设计中展示了该方法。<sup>[6](https://doi.org/10.1038/ng.806)</sup> 固定阈值的硬过滤是 VQSR 出现之前使用的方法，并且仍然是小型数据集的后备方案。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)</sup>

## 变体

后来的监督过滤器包括 GARFIELD，被描述为在 NA12878 交叉验证数据上使用深度学习；VEF，使用监督学习；ForestQC，结合传统和机器学习方法；以及 FVC，应用 XGBoost 对真实和虚假变异的技术特征进行建模。<sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup> 深度学习和 transformer 过滤器已进入生产级使用。VariantTransformer 将每个变异记录视为一个标记化句子进行二元 PASS/FAIL 分类，并将预测直接写入 VCF FILTER 列，与 BCFtools 和 GATK4 流程集成。<sup>[7](https://www.frontiersin.org/journals/bioinformatics/articles/10.3389/fbinf.2025.1694924/full)</sup> 长读长感知过滤已出现在 indel 领域：一个仅使用公开可用注释（RepeatMasker、GERP 分数）而不使用读深特征的梯度提升 XGBoost 过滤器，将长读长数据的精确率提高了约 26%，短读长数据提高了 24%，同时保持约 90% 的召回率；过滤后，PacBio DeepVariant 的 indel 精确率从 64.33% 升至 93.06%，召回率 89.30%，Illumina 双端 FreeBayes 达到 94.36% 的精确率和 91.24% 的召回率。<sup>[8](https://doi.org/10.1186/s13104-025-07445-3)</sup> 对于体细胞结构变异，秦倩（Qian Qin）、雅各布·M·海因茨（Jakob M. Heinz）和[李恒](https://www.edgepedia.org/zh/heng-li)（Heng Li）于 2026 年在 Cancer Research Communications 上报道的一种方法联合考虑了对泛基因组的比对和生殖系基因组的从头组装，在癌细胞系中大幅减少了假阳性嵌合和体细胞 SV，而对现有长读长 SV 检出器的灵敏度损失很小。<sup>[9](https://doi.org/10.1158/2767-9764.crc-25-0769)</sup> DeepVariant 是由瑞安·波普林（Ryan Poplin）及其同事于 2018 年在 [Nature Biotechnology](https://www.edgepedia.org/zh/nature-biotechnology) 上报道的深度神经网络变异检出器，其将质量模型嵌入检出器本身；在来自 GIAB 样本的 Illumina、PacBio HiFi 和 ONT 数据上，它给出了最均衡的检出结果，在 SNV 和 indel 上均具有最佳的 F1 分数，其原始论文报告每个基因组的错误比包括 GATK 和 SAMtools 在内的传统工具少 50% 以上。<sup>[10](https://doi.org/10.1038/nbt.4235)</sup><sup> • </sup><sup>[11](https://link.springer.com/article/10.1186/s12859-023-05596-3)</sup>

## 应用

针对不同真值集的两次评估给出了部分不同的图景。在一项对 130 名外显子组测序受试者以 Sanger 测序和芯片基因分型为基准的验证研究中，对 GWAS SNP 基因型的灵敏度在 VQSR 和硬过滤中均为 99.87%，VQSR 的特异性为 99.79%，硬过滤为 99.56%，GATK 优于 SAMtools（PPV 分别为 92.55% 和 80.35%）。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC4129436/)</sup> 在监督过滤器中，FVC 在 30× 覆盖度的 GATK SNV 上达到平均 AUC 0.998，而 VEF 为 0.989、GARFIELD 为 0.981、VQSR 为 0.926、硬过滤为 0.870、[频率](https://www.edgepedia.org/zh/frequency)法为 0.785；对于 indel，FVC 得分为 0.984，而 VQSR 为 0.836、硬过滤为 0.733。<sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup> FVC 还召回了其他方法已过滤掉的约 51–99% 的真实变异。<sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup> VariantTransformer 是一个在来自 GIAB 样本 HG003 的 200 万个变异上训练的 transformer 模型，达到 89.26% 的准确率和 ROC AUC 0.88；与 GATK4 默认过滤器（QD < 2.0、FS > 60.0、MQ < 40.0、SOR > 4.0、MQRankSum < -12.5、ReadPosRankSum < -8.0）相比，它在独立 GIAB 样本上将准确率从约 78–83% 提高到 86–87%，而 DeepVariant 达到约 88%。<sup>[7](https://www.frontiersin.org/journals/bioinformatics/articles/10.3389/fbinf.2025.1694924/full)</sup> 一项在 14 个 GIAB 金标准 WES/WGS 数据集上对 4 种比对器和 9 种检出/过滤方法的基准测试同样发现 DeepVariant 始终表现出最佳性能和最高稳健性，准确性主要取决于变异检出器而非比对器。<sup>[13](https://pubmed.ncbi.nlm.nih.gov/35193511/)</sup>

## 局限与替代方案

VQSR 的主要约束是数据规模：在人类中，经验上至少一个全基因组或 30 个外显子组时效果良好，任何更小的数据都可能遇到困难，尤其是 indel 重校准；较小的队列、没有经过整理审校的资源的非人类生物体和 RNA-seq 数据不应使用它。<sup>[2](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)</sup> VQSR 也未针对低覆盖度数据进行优化，在超出其预期参数范围应用时可能不稳定。<sup>[7](https://www.frontiersin.org/journals/bioinformatics/articles/10.3389/fbinf.2025.1694924/full)</sup> 在基于队列的过滤器中，VQSR 推荐至少 30 个样本，单样本可能表现不佳，GARFIELD 明确设计用于全外显子组数据，而 ForestQC 不能用于单样本数据。<sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup>

硬过滤会丢失真实变异：对于样本 HG001 的 GATK 检出 WGS 变异，硬过滤每移除一个假变异就消除了 24.06 个真实 indel 和 9.83 个真实 SNV，而 FVC 分别为 0.16 和 0.08。<sup>[3](https://www.nature.com/articles/s42003-022-03397-7)</sup> 区域依赖性偏差仍是一个未解决的问题：一项编码变异发现的基准测试强调需要更多样化的金标准基因组（非洲、西班牙裔、混合血统）以及在编码基因组重复区域进行更好的评估。<sup>[13](https://pubmed.ncbi.nlm.nih.gov/35193511/)</sup> 过滤如何与 VEP、ANNOVAR 和 SnpEff 等注释工具、与 gnomAD 等位基因频率等队列级频率过滤器、或与过滤相对于联合基因分型的时间安排相互作用，在已发表文献中尚无定论。

## References

1. [From FastQ data to high confidence variant calls: the Genome Analysis Toolkit best practices pipeline](https://pmc.ncbi.nlm.nih.gov/articles/PMC4243306/)
2. [Variant Quality Score Recalibration (VQSR) – GATK documentation](https://gatk.broadinstitute.org/hc/en-us/articles/360035531612-Variant-Quality-Score-Recalibration-VQSR)
3. [FVC as an adaptive and accurate method for filtering variants from popular NGS analysis pipelines](https://www.nature.com/articles/s42003-022-03397-7)
4. [(How to) Filter variants either with VQSR or by hard-filtering – GATK](https://gatk.broadinstitute.org/hc/en-us/articles/360035531112--How-to-Filter-variants-either-with-VQSR-or-by-hard-filtering)
5. [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)
6. [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)
7. [A Transformers-based framework for refinement of genetic variants (VariantTransformer)](https://www.frontiersin.org/journals/bioinformatics/articles/10.3389/fbinf.2025.1694924/full)
8. [Md. Shariful Islam Bhuyan, M. Sohel Rahman (2026). A universal indel filtering workflow for both long-read and short-read NGS data. BMC Research Notes.](https://doi.org/10.1186/s13104-025-07445-3)
9. [Qian Qin, Jakob M. Heinz, Heng Li (2026). Improving long-read somatic structural variant calling with pangenome and de novo personal genome assembly. Cancer Research Communications.](https://doi.org/10.1158/2767-9764.crc-25-0769)
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. [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)
12. [Validation and assessment of variant calling pipelines for next-generation sequencing](https://pmc.ncbi.nlm.nih.gov/articles/PMC4129436/)
13. [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/)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 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-filtering

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