# 位置权重矩阵

位置权重矩阵（position weight matrix，PWM）是一种生物信息学模型，它将序列基序表示为一张得分表，基序每个位置上每种可能的残基各对应一个得分，因此任何与基序等长的序列都可以通过将其对应的表项相加来得到一个得分。PWM 是转录因子（transcription factor，TF）结合特异性最常见的表示形式，在此语境下也被称为位置特异性评分矩阵（position-specific scoring matrix，PSSM）、位置特异性权重矩阵，或简称权重矩阵，文献中的命名并不统一。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup><sup> • </sup><sup>[2](https://fasta.bioch.virginia.edu/cshl/pdf/15/cpbi0215.pdf)</sup> 在其作为 DNA 和 RNA 结合蛋白特异性表示形式被引入后大约三十年里，它们成为了表示特异性以及预测基因组序列中结合位点的主要方法。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup>

| 关键事实 | 详情 |
|---|---|
| 编码内容 | 一个矩阵 \( W(b,i) \)，对于长度为 \( L \) 的位点的每个位置 \( i \)，每个碱基 \( b \) 对应一个表项；一个序列的得分就是对应表项之和。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup> |
| 标准评分 | 对数几率权重 \( W_{\mathrm{LO}}(b,i) = \log \frac{F(b,i)}{P(b)} \)，即观测到的碱基频率除以其背景概率的对数。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup><sup> • </sup><sup>[2](https://fasta.bioch.virginia.edu/cshl/pdf/15/cpbi0215.pdf)</sup> |
| 伪计数 | 用于避免零概率和无穷大的对数几率；对 122 个 JASPAR 基序的模拟给出的平均最优值在 0.8 到 1.3 之间，实践中建议统一取 0.8。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2647310/)</sup> |
| 信息量 | 对 DNA 而言，每个位置的信息量范围为 0 到 2 比特；整个矩阵的信息量等于用于构建它的位点的平均对数几率得分。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup> |
| 核心假设 | 每个位置对结合的贡献是独立的；位置之间的相关性未被建模。<sup>[4](https://doi.org/10.1093/nar/gkw521)</sup> |
| 性能 | 在 DREAM5 基准测试中，用最佳方法训练的简单单核苷酸 PWM 对大多数 TF 的表现与更复杂的模型相似，仅在不到 10% 的受检 TF 中有所不及。<sup>[5](https://www.nature.com/articles/nbt.2486)</sup> |
| 使用规模 | 仅 JASPAR 2024 版本就收录了 2346 个 CORE TF 结合谱，全部基于矩阵。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC10767809/)</sup> |

## 工作原理

PWM 通过一个包含三种表示的简短流程构建。首先，从一组对齐的结合位点样本中，统计每个位置上每种核苷酸出现的次数，构建位置频率矩阵（position frequency matrix，PFM）。其次，位置概率矩阵（position probability matrix，PPM）是 PFM 的归一化形式，每列之和为 1。第三，将 PPM 除以背景核苷酸概率后作[对数变换](https://www.edgepedia.org/zh/logarithmic-transformation)，得到 PWM，因此 PWM 得分是对数似然比。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2647310/)</sup> 在标准对数几率形式中，每个元素为 \( W_{\mathrm{LO}}(b,i) = \log \frac{F(b,i)}{P(b)} \)，其中 \( F(b,i) \) 是碱基 \( b \) 在位置 \( i \) 的频率，\( P(b) \) 是该碱基的背景概率；这大概是从已知位点设定 PWM 参数最常用的方法。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup><sup> • </sup><sup>[2](https://fasta.bioch.virginia.edu/cshl/pdf/15/cpbi0215.pdf)</sup>

由于得分是可加的，PWM 将每个位置视为独立。PWM 作为位置频率矩阵的对数似然衍生物，后来被证明在与 DNA 序列比较时，其得分与 TF 和 DNA 之间的结合能成正比；缩放参数 \( \lambda \) 类似于统计物理中的逆温度，将 PWM 得分与结合自由能联系起来，没有它，不同转录因子之间的得分无法直接比较。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC4545934/)</sup>

[信息论](https://www.edgepedia.org/zh/information-theory)提供了常用的汇总统计量。位置 \( i \) 的信息量定义为 \( \mathrm{IC}(i) = 2 + \sum_{b} F(b,i) \log_{2} F(b,i) = \sum_{b} F(b,i) \log_{2} \frac{F(b,i)}{0.25} \)，以比特为单位，每个 DNA 位置的取值范围为 0 到 2 比特。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup> 序列标识图（sequence logo）将 PWM 可视化，柱高等于每个位置的信息量。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup>

## 如何构建

构建 PWM 始于一组已知能结合目标因子的序列，经过对齐使基序位置相互对应。当位点需要被发现而非已知时，基序发现算法会同时学习矩阵和对齐：最早的方法是贪心渐进对齐法，随后是期望最大化算法（MEME 所采用），再到[吉布斯采样](https://www.edgepedia.org/zh/gibbs-sampling)算法，后者最大化包含伪计数的对数几率矩阵的信息量，并以 PSSM 形式作为其基本数据结构。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup><sup> • </sup><sup>[8](https://bmcbioinformatics.biomedcentral.com/counter/pdf/10.1186/s12859-016-1298-9.pdf)</sup><sup> • </sup><sup>[9](http://www.cs.cmu.edu/~mstolzer/03-711/2019/Lectures/ModelingMotifs.pdf)</sup>

在归一化之前，将伪计数加到观测计数上。没有伪计数时，某个位置上未出现的碱基概率为零，该碱基的对数几率得分变为负无穷；零概率还会永久排除任何携带该残基的序列，阻碍未来发现该基序变体。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2647310/)</sup><sup> • </sup><sup>[9](http://www.cs.cmu.edu/~mstolzer/03-711/2019/Lectures/ModelingMotifs.pdf)</sup> 已发表的取值差异很大，包括 0.01、1、1.5、2、4 以及样本量的平方根，但对 122 个 [JASPAR](https://www.edgepedia.org/zh/jaspar) 基序的模拟发现，平均最优伪计数在 0.8 到 1.3 之间，对样本量依赖较弱，与原始矩阵的熵紧密相关（保守性较低的位点受益于较大的伪计数），并且不支持远大于 1 的取值。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2647310/)</sup>

扫描随后成为一个阈值问题。如果一个 \( w \) 聚体的对数几率得分总和超过某个截断值，则被预测为结合位点。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2647310/)</sup> 由于原始权重随基序长度缩放，JASPAR 归一化为相对得分 \( S_{\mathrm{rel}} = \frac{W - \min}{\max - \min} \)；相对得分 800 对于 11 个核苷酸的 SOX2 基序对应权重 5，而对于 21 个核苷酸的 REST 基序则对应权重 12，JASPAR 的全基因组预测保留相对得分 ≥ 0.8 且 p 值 < 0.05 的位点。<sup>[10](https://jaspar2026.elixir.no/faq/)</sup>

## 起源

PWM 本身远早于围绕它建立的专门数据库和工具，已发表的综述将它的引入归功于不同的论文，因此这里没有单一的归属定论。周边基础设施则有据可查的传承脉络。TFBS Perl 框架是一个用于基于矩阵的 TF 结合位点分析的应用程序编程接口，由鲍里斯·伦哈德（Boris Lenhard）和怀斯·W·沃瑟曼（Wyeth W. Wasserman）于 2002 年发表。<sup>[11](https://doi.org/10.1093/bioinformatics/18.8.1135)</sup> JASPAR 是真核生物 TF 结合谱的开放获取数据库，由 A·桑德林（A. Sandelin）于 2003 年在《核酸研究》（Nucleic Acids Research）上描述。<sup>[12](https://doi.org/10.1093/nar/gkh012)</sup> 后来的方法论文扩展了该流程：巴雷特·C·福特（Barrett C. Foat）、亚历山大·V·莫罗佐夫（Alexandre V. Morozov）和哈门·J·布塞马克（Harmen J. Bussemaker）于 2006 年发表的 MatrixREDUCE 从类 PWM 得分出发，以统计力学方式建模全基因组 TF 占据；<sup>[13](https://doi.org/10.1093/bioinformatics/btl223)</sup> 迈克尔·F·伯格（Michael F. Berger）及其同事于 2006 年发表了用于 TF 特异性的紧凑通用 DNA 微阵列；<sup>[14](https://doi.org/10.1038/nbt1246)</sup> 拉胡尔·西达坦（Rahul Siddharthan）于 2010 年发表了推广 PWM 的二核苷酸权重矩阵；<sup>[15](https://doi.org/10.1371/journal.pone.0009722)</sup> 菲利普·马查尼克（Philip Machanick）和[蒂莫西·L·贝利](https://www.edgepedia.org/zh/timothy-l-bailey)（Timothy L. Bailey）于 2011 年发表了用于大型 DNA 数据集基序分析的 MEME-ChIP；<sup>[16](https://doi.org/10.1093/bioinformatics/btr189)</sup> 马蒂亚斯·西伯特（Matthias Siebert）和[约翰内斯·索丁](https://www.edgepedia.org/zh/johannes-soding)（Johannes Söding）的贝叶斯马尔可夫模型（BaMM）以及拉尔夫·埃格灵（Ralf Eggeling）、伊沃·格罗斯（Ivo Grosse）和扬·格劳（Jan Grau）的 InMoDe [马尔可夫链](https://www.edgepedia.org/zh/markov-chain)工具于 2016 年问世；<sup>[4](https://doi.org/10.1093/nar/gkw521)</sup><sup> • </sup><sup>[17](https://doi.org/10.1093/bioinformatics/btw689)</sup> 随后，乔万娜·安布罗西尼（Giovanna Ambrosini）、罗曼·格鲁（Romain Groux）和菲利普·布赫（Philipp Bucher）于 2018 年推出了快速基因组扫描器 PWMScan。<sup>[18](https://doi.org/10.1093/bioinformatics/bty127)</sup>

## 变体

主要变体放宽了位置独立性假设。二核苷酸权重矩阵对相邻位置对而非单个核苷酸评分，推广了 PWM。<sup>[15](https://doi.org/10.1371/journal.pone.0009722)</sup> 一阶非齐次马尔可夫模型（二核苷酸 PWM）已被加入 HOCOMOCO 和 JASPAR，在 96 个测试数据集中的 21% 上给出了显著优于 PWM 的结果。<sup>[4](https://doi.org/10.1093/nar/gkw521)</sup> BaMM 通过对马尔可夫依赖性的贝叶斯处理对此进行了扩展。<sup>[4](https://doi.org/10.1093/nar/gkw521)</sup> InMoDe 用马尔可夫链模型学习并可视化基序内依赖性，其参数数量 \( W \times 3 \times 4^{k} \) 随模型阶数 \( k \) 指数增长。<sup>[17](https://doi.org/10.1093/bioinformatics/btw689)</sup><sup> • </sup><sup>[4](https://doi.org/10.1093/nar/gkw521)</sup> 在深度学习时代，JASPAR 的 DL 集合在 PFM 之外还提供了贡献权重矩阵（contribution weight matrix，CWM）；CWM 与 PFM 相似，但捕获的是跨序列聚合的、对模型预测的贡献得分。<sup>[19](https://doi.org/10.1093/nar/gkaf1209)</sup>

## 应用

最主要的应用是预测 DNA 中的转录因子结合位点。TF 识别短基序，通常长 10 到 20 bp，由位置特异性权重矩阵描述。<sup>[20](https://link.springer.com/article/10.1186/s13059-020-01996-3)</sup> 专用扫描器包括 MEME 套件中的 FIMO 和 MCAST，在一项独立评估中分别对单个位点和成簇位点表现最佳；<sup>[8](https://bmcbioinformatics.biomedcentral.com/counter/pdf/10.1186/s12859-016-1298-9.pdf)</sup> PWMScan 使用 Bowtie 或一个 C 程序作为搜索引擎扫描 20 多种模式生物的基因组；<sup>[21](https://epd.expasy.org/pwmtools/pwmscan.php)</sup><sup> • </sup><sup>[18](https://doi.org/10.1093/bioinformatics/bty127)</sup> 以及用 TF 结合位点矩阵扫描基因组的 RSAT 工具。<sup>[22](https://doi.org/10.1038/nprot.2008.97)</sup> 将搜索限制在染色质可及区域（如 DNase 超敏感位点）比全基因组扫描有效得多，后者在真核生物中会返回大量假阳性。<sup>[2](https://fasta.bioch.virginia.edu/cshl/pdf/15/cpbi0215.pdf)</sup>

PWM 是各基序集合中社区标准的表示形式：JASPAR（开放获取，存储可转换为 PWM/PSSM 用于扫描的 PFM）、<sup>[23](https://pmc.ncbi.nlm.nih.gov/articles/PMC308747/)</sup><sup> • </sup><sup>[24](https://jaspar.elixir.no/docs/)</sup> 商业化的 [TRANSFAC](https://www.edgepedia.org/zh/transfac)、<sup>[23](https://pmc.ncbi.nlm.nih.gov/articles/PMC308747/)</sup><sup> • </sup><sup>[25](https://rsat.eead.csic.es/plants/tutorials/tut_PSSM.html)</sup> HOCOMOCO v12 包含 1443 个经验证的位置权重矩阵，覆盖 949 个人类和 720 个小鼠 TF，<sup>[26](https://epd.expasy.org/pwmtools/pwmlib.html)</sup> SwissRegulon 包含 190 个经整理的哺乳动物 PWM，代表约 340 个 TF，以及 CIS-BP、HOMER、UniPROBE、FlyFactorSurvey、YeTFaSCo 和 Plant Cistrome Database，它们都以某种形式的 PWM 作为主要基序表示。<sup>[20](https://link.springer.com/article/10.1186/s13059-020-01996-3)</sup> PWM 也服务于定量变异解读：对 SNP-SELEX 数据的再分析发现，从 CIS-BP 中精心选择的 PWM 能够定量解释 TF 对等位基因变体的差异结合，可靠性可与 deltaSVM 相媲美。<sup>[27](https://pmc.ncbi.nlm.nih.gov/articles/PMC9237556/)</sup>

## 局限性与替代方案

核心局限是独立性假设。PWM 无法建模核苷酸之间的相关性：如果 50% 的结合位点序列是 GATC，另外 50% 是 GTAC，PWM 会给 GTTC 和 GAAC 与真实结合序列相同的高分。<sup>[4](https://doi.org/10.1093/nar/gkw521)</sup> PWM 是对 TF 真实特异性的近似，对某些因子而言并不充分。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)</sup> 许多 TF，尤其是那些具有多个锌指或多个 DNA 结合结构域的 TF，识别单个 PWM 无法捕获的替代基序亚型。<sup>[28](https://link.springer.com/article/10.1038/s42003-025-08909-9)</sup> PFM 还具有固定长度，忽略了基因组背景，如协同性和核小体定位。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC10767809/)</sup><sup> • </sup><sup>[19](https://doi.org/10.1093/nar/gkaf1209)</sup>

信息量是质量的糟糕指标：以信息量作为得分阈值会使约一半的已知位点低于截断值，<sup>[2](https://fasta.bioch.virginia.edu/cshl/pdf/15/cpbi0215.pdf)</sup> 表现最佳的 DREAM5 基序通常信息量相对较低，<sup>[5](https://www.nature.com/articles/nbt.2486)</sup> 而在 2025 年的一项跨平台基准测试中，信息量与基序性能无关，而是反映了来源实验和发现算法。<sup>[28](https://link.springer.com/article/10.1038/s42003-025-08909-9)</sup>

与更丰富的模型相比，情况取决于数据和任务。BaMM 在 446 个 ChIP-seq ENCODE 数据集中的 97% 上取得了显著高于 PWM 的交叉验证部分 AUC，平均性能提升 36%，并在转录起始位点、多腺苷酸化位点、细菌暂停位点和 RNA 结合位点的预测上提升了 26% 到 101%，且从未表现更差。<sup>[4](https://doi.org/10.1093/nar/gkw521)</sup> 然而，赵岳（Yue Zhao）和[加里·D·斯托莫](https://www.edgepedia.org/zh/gary-d-stormo)（Gary D. Stormo）的定量分析得出结论，大多数 TF 只需要简单的特异性模型。<sup>[29](https://doi.org/10.1038/nbt.1893)</sup> 复杂模型在某些应用中也可能落后于精心选择的 PWM，而且目前没有一套被普遍接受的 PWM 可作为公平比较的可靠基线。<sup>[28](https://link.springer.com/article/10.1038/s42003-025-08909-9)</sup>

## References

1. [Modeling the specificity of protein-DNA interactions (Stormo, 2013)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4101922/)
2. [DNA Motif Databases and Their Uses (Current Protocols in Bioinformatics)](https://fasta.bioch.virginia.edu/cshl/pdf/15/cpbi0215.pdf)
3. [Pseudocounts for transcription factor binding sites (Nucleic Acids Research, 2009)](https://pmc.ncbi.nlm.nih.gov/articles/PMC2647310/)
4. [Matthias Siebert, Johannes Söding (2016). Bayesian Markov models consistently outperform PWMs at predicting motifs in nucleotide sequences. Nucleic Acids Research.](https://doi.org/10.1093/nar/gkw521)
5. [Evaluation of methods for modeling transcription factor sequence specificity (Nature Biotechnology, 2013, Weirauch et al., DREAM5)](https://www.nature.com/articles/nbt.2486)
6. [JASPAR 2024: 20th anniversary of the open-access database of transcription factor binding profiles](https://pmc.ncbi.nlm.nih.gov/articles/PMC10767809/)
7. [Reliable scaling of position weight matrices for binding strength comparisons between transcription factors (BMC Genomics, 2015)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4545934/)
8. [Evaluating tools for transcription factor binding site prediction (BMC Bioinformatics)](https://bmcbioinformatics.biomedcentral.com/counter/pdf/10.1186/s12859-016-1298-9.pdf)
9. [Modeling motifs: Position Specific Scoring Matrices and the Gibbs Sampler (CMU 03-711 lecture notes)](http://www.cs.cmu.edu/~mstolzer/03-711/2019/Lectures/ModelingMotifs.pdf)
10. [JASPAR FAQ](https://jaspar2026.elixir.no/faq/)
11. [Boris Lenhard, Wyeth W. Wasserman (2002). TFBS: Computational framework for transcription factor binding site analysis. Bioinformatics.](https://doi.org/10.1093/bioinformatics/18.8.1135)
12. [A. Sandelin (2003). JASPAR: an open-access database for eukaryotic transcription factor binding profiles. Nucleic Acids Research.](https://doi.org/10.1093/nar/gkh012)
13. [Barrett C. Foat, Alexandre V. Morozov, Harmen J. Bussemaker (2006). Statistical mechanical modeling of genome-wide transcription factor occupancy data by MatrixREDUCE. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btl223)
14. [Michael F Berger and colleagues (2006). Compact, universal DNA microarrays to comprehensively determine transcription-factor binding site specificities. Nature Biotechnology.](https://doi.org/10.1038/nbt1246)
15. [Rahul Siddharthan (2010). Dinucleotide Weight Matrices for Predicting Transcription Factor Binding Sites: Generalizing the Position Weight Matrix. PLoS ONE.](https://doi.org/10.1371/journal.pone.0009722)
16. [Philip Machanick, Timothy L. Bailey (2011). MEME-ChIP: motif analysis of large DNA datasets. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btr189)
17. [Ralf Eggeling, Ivo Grosse, Jan Grau (2016). InMoDe: tools for learning and visualizing intra-motif dependencies of DNA binding sites. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btw689)
18. [Giovanna Ambrosini, Romain Groux, Philipp Bucher (2018). PWMScan: a fast tool for scanning entire genomes with a position-specific weight matrix. Bioinformatics.](https://doi.org/10.1093/bioinformatics/bty127)
19. [Damla Ovek Baydar and colleagues (2025). JASPAR 2026: expansion of transcription factor binding profiles and integration of deep learning models. Nucleic Acids Research.](https://doi.org/10.1093/nar/gkaf1209)
20. [Insights gained from a comprehensive all-against-all transcription factor binding motif benchmarking study (Genome Biology, 2020)](https://link.springer.com/article/10.1186/s13059-020-01996-3)
21. [PWMTools / PWMScan documentation (EPD, SIB)](https://epd.expasy.org/pwmtools/pwmscan.php)
22. [Jean-Valery Turatsinze and colleagues (2008). Using RSAT to scan genome sequences for transcription factor binding sites and cis-regulatory modules. Nature Protocols.](https://doi.org/10.1038/nprot.2008.97)
23. [JASPAR: an open-access database for eukaryotic transcription factor binding profiles (Sandelin et al., 2004)](https://pmc.ncbi.nlm.nih.gov/articles/PMC308747/)
24. [JASPAR documentation](https://jaspar.elixir.no/docs/)
25. [RSA-tools tutorial: Position-specific scoring matrices](https://rsat.eead.csic.es/plants/tutorials/tut_PSSM.html)
26. [PWMTools motif library documentation (EPD, SIB)](https://epd.expasy.org/pwmtools/pwmlib.html)
27. [Positional weight matrices have sufficient prediction power for analysis of noncoding variants (BMC Biology, 2022)](https://pmc.ncbi.nlm.nih.gov/articles/PMC9237556/)
28. [Cross-platform motif discovery and benchmarking to explore binding specificities of poorly studied human transcription factors (Communications Biology, 2025)](https://link.springer.com/article/10.1038/s42003-025-08909-9)
29. [Yue Zhao, Gary D Stormo (2011). Quantitative analysis demonstrates most transcription factors require only simple models of specificity. Nature Biotechnology.](https://doi.org/10.1038/nbt.1893)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/position-weight-matrix

English original: https://www.edgepedia.org/position-weight-matrix
