mzwiki Mass spectrometry
knowledge commons by UniMZ
Guides & terminologyAll Guides
Guide 36 · Computation

差异丰度分析

定义符合实验设计的对比,计算倍数变化及不确定性,并针对明确的假设集合进行多重检验校正。

先写清比较方向,再运行检验

差异丰度分析估计某个明确定义的定量信号在不同条件下如何变化,再评估不确定性并处理多重检验。它不能确立分子身份,也不自动意味着因果关系。可以先写:“估计独立供体中,归一化蛋白信号的处理组/对照组变化。”明确测量实体、样本分母、参照条件和目标群体。报告规范要求把设计、预处理和统计结果一起说明。[1]

本指南把实验设计中的原则转为分析核查步骤。下文所有数字均为虚构教学示例,并非生物学研究结果,也不是推荐样本量。

让数据表对应独立单位

把丰度与已核实的元数据连接起来:生物学来源、条件、配对关系、制备、批次和进样。技术重复是在已有单位上再次测量。应按有依据的规则汇总,或用模型表达其相关性;不能把三次重复进样算作三个独立供体。推断单位取决于抽样和处理分配方式。[2]

配对样本应保留供体标识,估计供体内变化。独立组则使用合适的非配对模型。额外批次或协变量可能需要线性或层级模型。如果对照全部在批次 A,处理样本全部在批次 B,数据就无法区分条件与批次:把两个标签都输入软件,也不会使比较变得可识别。

固定有依据的预处理方案

检验前先检查定量可用性、干扰,以及从特征到分子的汇总。记录每一行代表什么;同一分子的多个加合物不能视为独立的分子确认。根据测量证据选择归一化,而非根据显著结果的数量。明确过滤规则并保留被检验特征的总数。若用随后要检验的同一组间表观差异来过滤,可能使推断失效。

正强度常在 log2 尺度分析,但变换并不保证残差正态或方差恒定。应检查模型诊断。保留缺失信息,使用明确的缺失数据策略;任意添加伪计数会改变低信号的比值。不要通过给整组缺失数据填入相同的小常数,来生成生物学 p 值。

算例:估计配对效应

四个独立供体的假设归一化 log2 信号
供体对照处理处理 − 对照
A1010.50.5
B12131.0
C1415.51.5
D16171.0

四个差值的均值为 1,样本标准差为 sqrt((0.25 + 0 + 0.25 + 0) / 3) ≈ 0.408,标准误为 0.408 / sqrt(4) ≈ 0.204。假设供体差值相互独立且服从正态分布,对均值差为零进行普通配对 t 检验,得到 t ≈ 4.899、自由度为 3、双侧未校正 p ≈ 0.0163。

基于该模型的 95% 置信区间为 1 ± 3.182 × 0.204 ≈ [0.350, 1.650]。以 2 为底取指数后,处理/对照倍数变化估计为 2^1 = 2,区间约为 [1.275, 3.137]。这是几何均值之比,也等于配对比值的几何均值,通常不等于算术均值之比。反转比较方向,log2 倍数变化变为 −1,倍数比变为 0.5。

计算使用四个供体差值,不能当作八个独立样本,也不能把额外技术进样当成新的单位。该区间依赖所述模型,且没有校正从许多检验中筛选出这一特征的影响。多特征方法可以借用其他特征的信息来稳定方差估计;这会改变不确定性的计算,必须报告。limma 文档说明了配对设计、对比及适度化统计量;其表达数据示例并不是质谱性能保证。[3]

定义哪些检验属于同一集合

原始 p 值通过检验统计量,衡量数据与指定零假设模型的不相容程度。它不是零假设为真的概率。检验大量特征会产生许多出现假阳性的机会。错误发现率(FDR)针对一个程序的期望错误发现比例;没有拒绝任何假设时,该比例定义为零。[4]

筛选命中前先定义检验族。它是一个预设对比的所有合格蛋白,还是共同支持某项综合结论的全部“特征×对比”假设?对 1,000 个特征做两个对比,可能涉及 2,000 个假设。分别在各对比内部校正,不会自动控制综合结论的错误。不要只校正已显著的行,也不要看完结果再重新划分检验族。分别记录被排除、不可检验及成功检验的行。

算例:计算 BH 校正 p 值

在另一个假设的五检验集合中,将 p 值从小到大排序,名次 i 从 1 到 m = 5。先计算 m × p(i) / i,再从最大名次向前取累积最小值,并把结果上限设为 1。最后恢复原来的行顺序。R 可通过 p.adjust(p, method = "BH") 实现 Benjamini–Hochberg 校正。[5]

构造的 BH 计算,与前面的配对算例无关
名次 i原始 p5 × p / iBH 校正 p
10.0040.0200.020
20.0200.0500.0417
30.0250.04170.0417
40.2000.2500.250
50.8000.8000.800

第二个校正值降为 0.0417,是因为第三个排序值在缩放后更小。若事先设定阈值为 0.05,有三个检验通过。这并不表示每一项都有 5% 的错误概率。BH 需要有效的 p 值,以及独立性或合适的正依赖条件,例如真零假设子集上的正回归依赖(PRDS);任意相关结构并不能一概满足要求。更保守的 Benjamini–Yekutieli 修正可在其适用条件下覆盖一般依赖。[6]

不要只读阈值

报告效应方向、大小、置信区间、实际样本数、缺失情况、原始 p 值、校正 p 值、方法及检验族大小。不显著不能证明等效,小 p 值也未必对应重要效应。火山图无法揭示配对错误或混杂。

校正 p 值取决于具体方法。Storey 类型的 q 值估计的是相关的 FDR 尺度量,通常需要估计零假设比例,不能自动与 BH 校正 p 值互换。两者都不是单个结果为假的后验概率。[7]

检查理解

log2 倍数变化为 −2,是否表示丰度为负?

不是。若方向为处理/对照,它表示倍数比 2^(−2) = 0.25,即参照条件的四分之一。

BH 校正能否修复把伪重复当独立样本算出的 p 值?

不能。多重检验校正要求基础检验有效,无法修复错误的独立性假设或混杂设计。

References & further reading

  1. Goodacre et al. (2007). Proposed minimum reporting standards for data analysis in metabolomics. Metabolomics 3, 231–241.

    MSI reporting recommendations. Publisher text supports recording design, acquisition scheduling, preprocessing, algorithms, validation splits, and blind testing. The batch-confounding example and modern audit checklist are explicitly pedagogical reasoning built on those principles.

  2. Lazic, Clarke-Williams & Munafò (2018). What exactly is N in cell culture and animal experiments? PLOS Biology 16, e2005282.

    Original methodological study defining biological, experimental, and observational units and conditions for genuine replication. DOI: 10.1371/journal.pbio.2005282. Unit hierarchy is applied to independently constructed MS examples; study prevalence figures are not generalized.

  3. Smyth et al. limma: Linear Models for Microarray and RNA-Seq Data, User’s Guide.

    Official guide inspected, revision 19 May 2026, especially paired samples (section 9.4.1), moderated statistics and multiple contrasts (chapter 13). Supports design matrices, contrasts, geometric/log-scale interpretation, and empirical-Bayes variance moderation. Teaching calculations use an ordinary paired t-test, not limma output; gene-expression examples are not MS validation.

  4. Benjamini & Hochberg (1995). Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society, Series B 57, 289–300.

    Original definition of FDR as the expectation of the false-discovery proportion, with zero when there are no discoveries. Publisher metadata and abstract verified. The Guide illustrates the definition without prescribing the BH procedure or assuming arbitrary dependence is allowed.

  5. R stats package. p.adjust: Adjust P-values for Multiple Comparisons.

    Official documentation inspected 2026-10-07. Confirms BH/fdr, BY and family-wise error methods and family-size semantics. Both numerical BH examples are independently calculated, with backward cumulative minima and capping at one, not copied software output.

  6. Benjamini & Yekutieli (2001). The control of the false discovery rate in multiple testing under dependency. Annals of Statistics 29(4), 1165–1188.

    Authors’ Tel Aviv University record and full abstract inspected; official R documentation independently confirms BY general-dependence adjustment. Supports BH under suitable positive regression dependence and a distinct conservative modification for general dependence. Direct publisher page yielded no text and author PDF timed out; no claim that arbitrary feature correlation suffices for BH is made.

  7. Storey & Tibshirani (2003). Statistical significance for genomewide studies. Proceedings of the National Academy of Sciences 100(16), 9440–9445.

    Primary full text inspected at PMC170937, including the q-value construction and null-proportion estimation. Used to distinguish Storey-style estimated q-values from BH-adjusted p-values and from individual posterior error probabilities. No genomewide biological findings or performance claims are transferred to MS.

Help make this article clearer.Edit this article →Suggest a correction →