# 基因共表达分析

基因共表达分析是一种[生物信息学](https://www.edgepedia.org/zh/bioinformatics)方法，通过识别在不同样本间表达模式相关的基因，并将其组织成共表达网络，利用网络中的模块、枢纽基因以及模块—性状关联来推断基因的共享功能和候选调控关系。一种广泛使用的实现方式是加权基因共表达网络分析（weighted gene co-expression network analysis, WGCNA），它描述基因在不同样本间的相关模式，找出高度相关基因组成的模块，用模块特征基因或模块内枢纽基因对每个模块进行概括，将模块与外部性状关联起来，并计算模块成员度指标。<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup> 其生物学依据在于：在进化中保守地共表达的基因往往功能相关——一项对来自人类、果蝇、线虫和酵母的3182张微阵列数据的分析，识别出了22,163个在进化中保守的共表达关系，实验后续验证证实了部分关联所暗示的预测，并为若干基因赋予了细胞增殖功能。<sup>[2](https://doi.org/10.1126/science.1087447)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 共表达模块、模块特征基因、枢纽基因、模块—性状关联，以及可导出至Cytoscape或igraph的网络<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup><sup> • </sup><sup>[3](https://bioinformaticsworkbook.org/dataAnalysis/RNA-Seq/RNA-SeqIntro/wgcna.html)</sup> |
| 加权邻接矩阵 | 对相关性取幂：\( a_{ij} = s_{ij}^{\beta} \)，其中 \( \beta \geq 1 \)（软阈值化）<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup> |
| 阈值选择 | 使网络近似符合无标度拓扑的最低软阈值幂，通常要求拟合 \( R^2 \geq 0.85 \)<sup>[4](https://pages.stat.wisc.edu/~yandell/statgen/ucla/WGCNA/wgcna.pdf)</sup><sup> • </sup><sup>[5](https://docs.omicsbox.biobam.com/latest/Gene-Coexpression-WGCNA/)</sup> |
| 样本量 | 样本数量是共表达质量最重要的预测因素；推荐最少15至20个样本<sup>[6](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0263344)</sup><sup> • </sup><sup>[7](https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00146/full)</sup> |
| 奠基性论文 | 斯图尔特（Stuart）等（《科学》（Science），2003）；张（Zhang）和霍瓦斯（Horvath）（2005）；朗费尔德（Langfelder）和霍瓦斯（Horvath）（《BMC生物信息学》（BMC Bioinformatics），2008）<sup>[2](https://doi.org/10.1126/science.1087447)</sup><sup> • </sup><sup>[8](https://doi.org/10.2202/1544-6115.1128)</sup><sup> • </sup><sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup> |
| 采用情况 | 截至2023年8月，WGCNA已被引用超过15,000次<sup>[9](https://academic.oup.com/bib/article/24/6/bbad413/7434448)</sup> |

## 工作原理

输入是一个基因×样本的表达矩阵。基因 \( i \) 和 \( j \) 之间默认的共表达相似度取它们相关系数的绝对值，即 \( s_{ij} = |\mathrm{cor}(x_i, x_j)| \)。<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup> WGCNA与简单相关聚类的不同之处在于它保持网络的加权性质：邻接矩阵通过对相似度取幂来定义，\( a_{ij} = s_{ij}^{\beta} \)，其中 \( \beta \geq 1 \)，因此 \( \log(a_{ij}) = \beta \cdot \log(s_{ij}) \)。这种软阈值化保留了连续的连接强度，而不是强行做二值化切割。<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup>

幂次 \( \beta \) 依据无标度拓扑准则来选择：即无标度拟合指数 \( R^2 \) 达到较高水平（通常至少0.85）或开始趋于平稳时的最低幂次，从而在拟合优度与平均连通度之间取得平衡。<sup>[4](https://pages.stat.wisc.edu/~yandell/statgen/ucla/WGCNA/wgcna.pdf)</sup><sup> • </sup><sup>[5](https://docs.omicsbox.biobam.com/latest/Gene-Coexpression-WGCNA/)</sup>

每个模块由其模块特征基因来概括，定义为该模块表达矩阵的第一主成分。<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup> 模块成员度是基因与特征基因的相关性，\( kME(i) = \mathrm{cor}(x_i, E) \)，该定义可推广到所有基因而不要求其属于该模块。<sup>[10](https://gds-yazarlab.bilkent.edu.tr/wp-content/uploads/GBMTutorialHorvath.pdf)</sup> 基因显著性是该基因与某一性状的相关系数绝对值。<sup>[4](https://pages.stat.wisc.edu/~yandell/statgen/ucla/WGCNA/wgcna.pdf)</sup> 枢纽基因通过模块内连通度来识别；一种常用的操作规则是：当模块成员度至少为0.8且 \( p < 0.05 \) 时，称该基因为枢纽基因。<sup>[10](https://gds-yazarlab.bilkent.edu.tr/wp-content/uploads/GBMTutorialHorvath.pdf)</sup><sup> • </sup><sup>[5](https://docs.omicsbox.biobam.com/latest/Gene-Coexpression-WGCNA/)</sup>

## 操作流程

典型的WGCNA工作流程如下<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC9312353/)</sup>：

1. 准备表达矩阵。RNA-seq计数在分析前需进行标准化，例如使用voom，因为原始计数服从负二项分布。<sup>[12](https://cran.asia/packages/3.7/bioc/vignettes/CVE/inst/doc/WGCNA_from_TCGA_RNAseq.html)</sup> 基因经过过滤保留变异最大的那些，一种启发式截断标准是按中位数绝对偏差取前5000个。<sup>[12](https://cran.asia/packages/3.7/bioc/vignettes/CVE/inst/doc/WGCNA_from_TCGA_RNAseq.html)</sup> WGCNA要求行是样本、列是基因探针，因此矩阵通常需要转置。<sup>[3](https://bioinformaticsworkbook.org/dataAnalysis/RNA-Seq/RNA-SeqIntro/wgcna.html)</sup>
2. 通过层次聚类对样本进行聚类，并剔除离群样本。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC9312353/)</sup>
3. 计算两两相关性（Pearson为标准方法；双权中位数相关对离群值更稳健），并用pickSoftThreshold选择软阈值幂。<sup>[5](https://docs.omicsbox.biobam.com/latest/Gene-Coexpression-WGCNA/)</sup><sup> • </sup><sup>[3](https://bioinformaticsworkbook.org/dataAnalysis/RNA-Seq/RNA-SeqIntro/wgcna.html)</sup>
4. 构建加权网络，计算拓扑重叠度量（topological overlap measure, TOM），形成相异度 \( 1 - \mathrm{TOM} \)，并通过平均连接层次聚类结合动态树切割来检测模块。<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup><sup> • </sup><sup>[4](https://pages.stat.wisc.edu/~yandell/statgen/ucla/WGCNA/wgcna.pdf)</sup> blockwiseModules函数可自动完成这些步骤，并预先将基因分块以减少内存占用。<sup>[4](https://pages.stat.wisc.edu/~yandell/statgen/ucla/WGCNA/wgcna.pdf)</sup>
5. 合并相近的模块，在某教程中合并的是特征基因相关性大于0.75的模块。<sup>[4](https://pages.stat.wisc.edu/~yandell/statgen/ucla/WGCNA/wgcna.pdf)</sup>
6. 通过将特征基因与样本注释进行相关分析，把模块与性状关联起来，并导出边列表至Cytoscape或igraph以识别枢纽基因。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC9312353/)</sup><sup> • </sup><sup>[3](https://bioinformaticsworkbook.org/dataAnalysis/RNA-Seq/RNA-SeqIntro/wgcna.html)</sup>

## 起源

该框架建立在三篇论文之上。斯图尔特（Stuart）及其同事构建了一个跨四个物种、基于3182张微阵列的基因共表达网络，发现了22,163个进化保守的共表达关系，并通过实验证实了部分预测功能（《科学》（Science），2003）。<sup>[2](https://doi.org/10.1126/science.1087447)</sup> 随后张（Zhang）和霍瓦斯（Horvath）提出了加权基因共表达网络分析的通用框架，包含软阈值化和无标度拓扑准则，发表于《遗传学与分子生物学中的统计应用》（Statistical Applications in Genetics and Molecular Biology）（2005）。<sup>[8](https://doi.org/10.2202/1544-6115.1128)</sup> 朗费尔德（Langfelder）和霍瓦斯（Horvath）将其实现为WGCNA R包（《BMC生物信息学》（BMC Bioinformatics），2008）。<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup> 一篇2025年的综述将这三篇列为该领域的基础参考文献<sup>[13](https://link.springer.com/article/10.1007/s13721-025-00612-3)</sup>，截至2023年8月WGCNA已被引用超过15,000次。<sup>[9](https://academic.oup.com/bib/article/24/6/bbad413/7434448)</sup>

## 变体

WGCNA本身具有灵活性，但假设用户需要做出许多选择。CEMiTool是一个R/[Bioconductor](https://www.edgepedia.org/zh/bioconductor)包，可自动化整个流程，仅需一个基因表达文件：它依据逆伽马分布过滤基因，使用基于柯西序列的算法以 \( R^2 \) 阈值0.8选择软阈值幂，并加入GSEA和过表征分析。<sup>[14](https://doi.org/10.1186/s12859-018-2053-1)</sup> 在缺血性心肌病和COPD RNA-seq数据集上的头对头比较中，CEMiTool在默认参数下优于WGCNA和coseq，该比较推荐使用带符号的相关性，即将正相关和负相关的基因分别聚类。<sup>[15](https://eprints.whiterose.ac.uk/id/eprint/165025/7/Cheng_et_al_CBM_2020.pdf)</sup> 其网页版本webCEMiTool无需编程，已在超过1,000个公开RNA-seq和微阵列数据集上得到验证。<sup>[7](https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00146/full)</sup>

其他包包括PyWGCNA（Python实现）<sup>[16](https://doi.org/10.1101/2022.08.22.504852)</sup>和用于发现差异共表达模块的DiffCoEx<sup>[17](https://doi.org/10.1186/1471-2105-11-497)</sup>；一篇综述还列出了gwena和CSUWGCNA，后者可处理负相关。<sup>[13](https://link.springer.com/article/10.1007/s13721-025-00612-3)</sup> 对于单细胞数据，GENIX使用[高斯图模型](https://www.edgepedia.org/zh/gaussian-graphical-model)（glasso，\( O(n^3) \)）构建稀疏网络，而非WGCNA全连接的 \( O(n^2) \) 相关矩阵<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC11228368/)</sup>；hdWGCNA则将WGCNA扩展到高维单细胞转录组数据。<sup>[19](https://doi.org/10.1016/j.crmeth.2023.100498)</sup> CS-CORE（2023）将未观测到的真实表达建模为潜变量，通过测序深度和测量误差的测量模型与UMI计数相连，使用迭代重加权最小二乘法，无需分布假设或参数调优。<sup>[20](https://www.nature.com/articles/s41467-023-40503-7)</sup> NeighbourNet通过PCA嵌入后在每个细胞的k近邻范围内进行局部回归，构建细胞特异性共表达网络，并可按照NicheNet框架整合先验知识网络以赋予调控方向性。<sup>[21](https://genome.cshlp.org/content/36/4/785)</sup><sup> • </sup><sup>[22](https://doi.org/10.1038/s41592-019-0667-5)</sup>

## 应用

WGCNA已应用于脑癌、酵母细胞周期、小鼠遗传学、灵长类脑组织、糖尿病、慢性疲劳患者以及植物等研究。<sup>[1](https://doi.org/10.1186/1471-2105-9-559)</sup> webCEMiTool被应用于感染登革热或[寨卡病毒](https://www.edgepedia.org/zh/zika-virus)的人体细胞单细胞RNA-seq，登革热每个时间点平均生成六个模块，寨卡超过八个。<sup>[7](https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00146/full)</sup> CS-CORE应用于阿尔茨海默病死后脑组织和COVID-19血液样本，发现了可重复性更高、通路富集的细胞类型特异性共表达；对于小胶质细胞，它找到四个GO富集模块，而竞争方法只找到两个。<sup>[20](https://www.nature.com/articles/s41467-023-40503-7)</sup>

## 局限与替代方案

样本量主导可靠性。在由8,796个人类和12,114个小鼠RNA-seq样本构建的7,200个共表达网络中，样本数量是共表达质量最显著的预测因素，共表达质量大致随样本数的对数呈线性趋势。<sup>[6](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0263344)</sup> 选择合适的标准化方法和应用批次效应校正所提升的质量，分别相当于样本量增加80%以上和40%以上。<sup>[6](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0263344)</sup> 推荐的最低样本量因来源而异：一篇综述建议至少20个样本，因为小样本会增加虚假相关<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC9312353/)</sup>；CEMiTool的拓扑稳定性参数 \( \phi \) 在约20个样本时趋于稳定<sup>[14](https://doi.org/10.1186/s12859-018-2053-1)</sup>；webCEMiTool论文建议每个数据集最少15个样本。<sup>[7](https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00146/full)</sup> 在一项针对42种模块检测方法、以已知调控网络为基准的评测中，分解方法优于所有其他策略，双聚类或网络推断方法没有明显优势，而WGCNA、FLAME和MERLIN对参数调优相对不敏感。<sup>[23](https://www.nature.com/articles/s41467-018-03424-4)</sup>

推断的共表达网络存在若干失效模式。基于聚合癌症数据构建的网络在人口学群体（年龄、种族、性别）之间存在显著差异，因此不考虑混杂因素的网络可能无法恰当代表任何单个群体。<sup>[9](https://academic.oup.com/bib/article/24/6/bbad413/7434448)</sup> 所有四种测试方法（WGCNA、CEMiTool、ARACNe-AP、GRNBoost2）都对随机偏倚非常敏感：从同一队列等量独立同分布样本中推断的网络，其平均Jaccard指数大多低于0.5，提示工作流程中应采用集成推断或自助法。<sup>[9](https://academic.oup.com/bib/article/24/6/bbad413/7434448)</sup> 对于单细胞数据，UMI计数的相关性可能受到测序深度变化的严重混杂，导致假阳性增多；鉴于单细胞表达值的高度异质性和噪声，相关系数也可能失效。<sup>[20](https://www.nature.com/articles/s41467-023-40503-7)</sup><sup> • </sup><sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC9312353/)</sup>

聚类方法有三个缺点，网络框架只能部分解决：它们检测的是跨所有样本的共表达，大多数无法将基因分配到多个模块，且忽略了基因间的调控关系。<sup>[23](https://www.nature.com/articles/s41467-018-03424-4)</sup> 调控网络推断方法则针对方向和调控：GRNBoost2与GENIE3类似，以候选调控因子为设计变量为每个基因拟合随机森林，但使用浅树的梯度提升以减少运行时间。<sup>[9](https://academic.oup.com/bib/article/24/6/bbad413/7434448)</sup>

## References

1. [Peter Langfelder, Steve Horvath (2008). WGCNA: an R package for weighted correlation network analysis. BMC Bioinformatics.](https://doi.org/10.1186/1471-2105-9-559)
2. [Joshua M. Stuart and colleagues (2003). A Gene-Coexpression Network for Global Discovery of Conserved Genetic Modules. Science.](https://doi.org/10.1126/science.1087447)
3. [WGCNA Gene Correlation Network Analysis - Bioinformatics Workbook](https://bioinformaticsworkbook.org/dataAnalysis/RNA-Seq/RNA-SeqIntro/wgcna.html)
4. [Integrated weighted correlation network analysis of mouse liver gene expression (book chapter 12 R tutorial)](https://pages.stat.wisc.edu/~yandell/statgen/ucla/WGCNA/wgcna.pdf)
5. [Gene Co-Expression Analysis - OmicsBox User Manual](https://docs.omicsbox.biobam.com/latest/Gene-Coexpression-WGCNA/)
6. [Evaluation of critical data processing steps for reliable prediction of gene co-expression from large collections of RNA-seq data](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0263344)
7. [webCEMiTool: Co-expression Modular Analysis Made Easy](https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00146/full)
8. [Bin Zhang, Steve Horvath (2005). A General Framework for Weighted Gene Co-Expression Network Analysis. Statistical Applications in Genetics and Molecular Biology.](https://doi.org/10.2202/1544-6115.1128)
9. [Demographic confounders distort inference of gene regulatory and gene co-expression networks in cancer](https://academic.oup.com/bib/article/24/6/bbad413/7434448)
10. [Brain Cancer Microarray Data Weighted Gene Co-expression Network Analysis R Tutorial (Horvath)](https://gds-yazarlab.bilkent.edu.tr/wp-content/uploads/GBMTutorialHorvath.pdf)
11. [Approaches in Gene Coexpression Analysis in Eukaryotes](https://pmc.ncbi.nlm.nih.gov/articles/PMC9312353/)
12. [Weighted gene co-expression network analysis with TCGA RNAseq data (CVE vignette)](https://cran.asia/packages/3.7/bioc/vignettes/CVE/inst/doc/WGCNA_from_TCGA_RNAseq.html)
13. [A comprehensive survey of gene co-expression network analysis: methods, tools, challenges, and future directions](https://link.springer.com/article/10.1007/s13721-025-00612-3)
14. [Pedro S. T. Russo and colleagues (2018). CEMiTool: a Bioconductor package for performing comprehensive modular co-expression analyses. BMC Bioinformatics.](https://doi.org/10.1186/s12859-018-2053-1)
15. [Advantages of CEMiTool for gene co-expression analysis of RNA-seq data](https://eprints.whiterose.ac.uk/id/eprint/165025/7/Cheng_et_al_CBM_2020.pdf)
16. [Narges Rezaie, Fairlie Reese, Ali Mortazavi (2022). PyWGCNA: A Python package for weighted gene co-expression network analysis. bioRxiv (Cold Spring Harbor Laboratory).](https://doi.org/10.1101/2022.08.22.504852)
17. [Bruno M Tesson, Rainer Breitling, Ritsert C Jansen (2010). DiffCoEx: a simple and sensitive method to find differentially coexpressed gene modules. BMC Bioinformatics.](https://doi.org/10.1186/1471-2105-11-497)
18. [GENIX enables comparative network analysis of single-cell RNA sequencing to reveal signatures of therapeutic interventions](https://pmc.ncbi.nlm.nih.gov/articles/PMC11228368/)
19. [Samuel Morabito and colleagues (2023). hdWGCNA identifies co-expression networks in high-dimensional transcriptomics data. Cell Reports Methods.](https://doi.org/10.1016/j.crmeth.2023.100498)
20. [Cell-type-specific co-expression inference from single cell RNA-sequencing data (CS-CORE)](https://www.nature.com/articles/s41467-023-40503-7)
21. [Scalable cell-specific coexpression networks for granular regulatory pattern discovery with NeighbourNet](https://genome.cshlp.org/content/36/4/785)
22. [Robin Browaeys, Wouter Saelens, Yvan Saeys (2019). NicheNet: modeling intercellular communication by linking ligands to target genes. Nature Methods.](https://doi.org/10.1038/s41592-019-0667-5)
23. [A comprehensive evaluation of module detection methods for gene expression data](https://www.nature.com/articles/s41467-018-03424-4)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/gene-co-expression-analysis

English original: https://www.edgepedia.org/gene-co-expression-analysis
