Weighted Gene Co-Expression Network Analysis (WGCNA) is an unsupervised systems biology method that constructs a weighted correlation network from high-throughput gene expression data, identifies clusters of highly interconnected genes called modules, and summarizes each module by its first principal component, known as the module eigengene. Unlike unweighted networks that apply a hard threshold, WGCNA uses a soft-thresholding power to emphasize strong correlations while preserving the continuous nature of the co-expression information, resulting in a scale-free topology that mirrors biological regulatory networks.
Glossary
Weighted Gene Co-Expression Network Analysis (WGCNA)

What is Weighted Gene Co-Expression Network Analysis (WGCNA)?
A systems biology method for constructing scale-free gene networks, identifying modules of highly correlated genes, and relating these modules to external clinical traits for biomarker discovery.
The method relates these co-expression modules to external clinical traits—such as disease status, survival time, or treatment response—by correlating module eigengenes with the traits of interest, enabling the identification of clinically relevant gene sets. Within significant modules, intramodular connectivity measures quantify how central each gene is to its module, allowing researchers to prioritize hub genes as robust biomarker candidates or potential therapeutic targets that drive the observed phenotype.
Key Features of WGCNA
Weighted Gene Co-Expression Network Analysis (WGCNA) is a systems biology method that identifies clusters of highly correlated genes, summarizes them by module eigengenes, and relates these modules to external clinical traits for biomarker discovery.
Soft Thresholding Power Selection
WGCNA transforms the absolute Pearson correlation matrix into an adjacency matrix using a power function (a_ij = |cor(i,j)|^β). The soft thresholding parameter β is chosen to satisfy scale-free topology criteria (R² > 0.8), preserving continuous connectivity information rather than applying a hard cutoff. This approach aligns with the observation that real biological networks exhibit scale-free topology, where a few hub genes connect to many others.
Topological Overlap Matrix (TOM)
The adjacency matrix is transformed into a Topological Overlap Matrix to measure network interconnectedness. TOM accounts for both direct correlation and shared neighborhood connectivity:
- TOM_ij = 1 if genes i and j are connected to exactly the same set of neighbors
- TOM_ij = 0 if they share no connections
- 1 - TOM is used as a dissimilarity measure for hierarchical clustering, producing more robust and biologically meaningful modules than correlation alone.
Module Eigengene Summarization
Each co-expression module is mathematically summarized by its module eigengene (ME), defined as the first principal component of the module's expression matrix. The ME explains the maximum variance of the module and serves as a representative expression profile. Key properties:
- Reduces thousands of genes to a single per-module summary variable
- Enables correlation with external clinical traits (e.g., survival time, tumor stage)
- Identifies hub genes via intramodular connectivity (kME), the correlation between a gene and its ME
Module-Trait Relationship Analysis
Module eigengenes are correlated with external clinical traits to identify biologically relevant modules. The framework produces:
- Module-Trait heatmaps showing Pearson correlations and p-values between each ME and trait
- Gene Significance (GS) measures the correlation of individual gene expression with a trait
- Module Membership (MM) quantifies how central a gene is to its module
- Genes with high GS and high MM are prioritized as candidate biomarkers or therapeutic targets, integrating network topology with clinical relevance.
Module Preservation Statistics
WGCNA provides a rigorous statistical framework to test whether modules identified in a reference dataset are preserved in an independent test dataset. Preservation statistics include:
- Zsummary score: Composite statistic combining density and connectivity preservation; Zsummary > 10 indicates strong preservation
- MedianRank: Rank-based measure robust to module size
- This enables cross-study validation of co-expression patterns and distinguishes reproducible biological modules from dataset-specific artifacts, critical for translational biomarker qualification.
Dynamic Tree Cut for Module Detection
WGCNA employs dynamic hybrid tree cutting rather than static height cutoffs for module identification from hierarchical clustering dendrograms. The algorithm:
- Adaptively identifies clusters based on branch shape and cluster density
- Recovers nested modules that static methods miss
- Sets a minimum module size (typically 30 genes) to avoid fragmentation
- Merges highly similar modules (ME correlation > 0.75) to reduce redundancy
- Produces biologically coherent modules that static cutoffs often fragment or merge incorrectly.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about Weighted Gene Co-Expression Network Analysis, from its core mechanism to its application in biomarker discovery.
Weighted Gene Co-Expression Network Analysis (WGCNA) is a systems biology method that identifies clusters (modules) of highly correlated genes, summarizes each module by its module eigengene (the first principal component), and relates these modules to external clinical traits for biomarker discovery. The method works by first constructing a gene co-expression similarity matrix, typically using the absolute value of the Pearson correlation coefficient between all gene pairs. This matrix is then raised to a soft-thresholding power β, chosen to approximate a scale-free network topology, which emphasizes strong correlations while penalizing weak ones. The resulting adjacency matrix is transformed into a Topological Overlap Matrix (TOM), which measures not just direct correlation but also shared network neighbors. Hierarchical clustering on a dissimilarity measure derived from the TOM identifies branches of the dendrogram, which are then cut into modules using a dynamic tree-cutting algorithm. Finally, module-trait associations are calculated by correlating module eigengenes with external sample traits like disease status or survival time, and gene significance and module membership measures are used to pinpoint the most biologically relevant hub genes within significant modules.
WGCNA vs. Other Feature Selection Methods
A comparison of Weighted Gene Co-Expression Network Analysis against common feature selection techniques for high-dimensional biomarker discovery.
| Feature | WGCNA | LASSO | mRMR |
|---|---|---|---|
Primary approach | Unsupervised network-based clustering | Supervised L1-penalized regression | Supervised filter-based mutual information |
Handles multicollinearity | |||
Preserves gene-gene relationships | |||
Output type | Co-expression modules and hub genes | Sparse coefficient vector | Ranked feature list |
Requires trait data for selection | |||
Computational complexity | O(n²) for adjacency matrix | O(np) via coordinate descent | O(p²) for pairwise MI |
Typical dimensionality handled | 5,000–20,000 genes | p >> n (hundreds of thousands) | 10,000–50,000 features |
Interpretability of results | High (module eigengenes, dendrograms) | Moderate (selected coefficients) | Low (ranked list only) |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Core concepts and complementary methods for understanding and applying Weighted Gene Co-Expression Network Analysis in biomarker discovery pipelines.
Module Eigengene
The first principal component of a gene module's expression matrix, representing the most representative expression profile for the entire cluster. It serves as a summary vector that can be correlated with external clinical traits to identify disease-associated modules. The eigengene is calculated using singular value decomposition (SVD) on the scaled expression data of all genes within a module.
Topological Overlap Matrix (TOM)
A pairwise similarity measure that quantifies not just direct correlation but also shared network neighbors between two genes. TOM transforms the raw adjacency matrix into a robust measure of interconnectedness, making it the foundation for hierarchical clustering in WGCNA. It is defined as: TOM_ij = (a_ij + sum_k a_ik * a_kj) / (min(k_i, k_j) + 1 - a_ij), where a_ij is the adjacency and k_i is the connectivity.
Soft Thresholding (Power β)
The process of raising the absolute correlation matrix to a power β to emphasize strong correlations and penalize weak ones, constructing a scale-free network. The optimal β is chosen using the scale-free topology model fit index (R² > 0.8) and mean connectivity analysis. This contrasts with hard thresholding, which arbitrarily cuts off connections and loses continuous biological information.
Module Membership (kME)
Also called eigengene-based connectivity, kME measures the correlation between a gene's expression profile and the module eigengene. It quantifies how representative a gene is of its assigned module. Hub genes—those with the highest kME values—are often biologically significant drivers. kME is used to refine module assignments and identify intramodular hub genes for downstream validation.
Gene Significance (GS)
The absolute correlation between a gene's expression profile and an external clinical trait of interest (e.g., survival time, tumor stage). Combining GS with Module Membership (kME) in a scatterplot identifies genes that are both module-central and trait-relevant, prioritizing the most promising biomarker candidates. High GS + high kME = high-confidence target.
Module Preservation Analysis
A statistical framework to assess whether a network module identified in a reference dataset is also present in an independent test dataset. It uses permutation-based statistics (Zsummary and medianRank) to quantify preservation of density and connectivity patterns. A Zsummary > 10 indicates strong evidence of module preservation, validating the biological reproducibility of the co-expression structure.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us