Related Experiment Video
Updated: Oct 13, 2025

Divergence of Root Microbiota in Different Habitats based on Weighted Correlation Networks
Published on: September 25, 2021
Optimizing weighted gene co-expression network analysis with a multi-threaded calculation of the topological overlap
Min Shuai1,2, Dongmei He1,2,3, Xin Chen1,2
1State Key Laboratory of Characteristic Chinese Medicine Resources in Southwest China, Chengdu University of Traditional Chinese Medicine, Chengdu 611137, People's Republic of China.
This study introduces a multi-threaded algorithm to accelerate the calculation of topological overlap matrices (TOM) in Weighted Gene Co-expression Network Analysis (WGCNA). This optimization significantly speeds up the identification of gene modules for large biological datasets.
Area of Science:
- Bioinformatics
- Computational Biology
- Systems Biology
Background:
- Biomolecular networks are often modeled as scale-free hierarchical networks.
- Weighted Gene Co-expression Network Analysis (WGCNA) is a method that treats gene co-expression networks as undirected scale-free hierarchical weighted networks.
- The WGCNA R package identifies biological functions by detecting modules (sub-networks) within these networks, with the calculation of the topological overlap matrix (TOM) from the adjacency matrix being a computationally intensive step.
Purpose of the Study:
- To optimize the computationally expensive calculation of the topological overlap matrix (TOM) in WGCNA.
- To develop a multi-threaded algorithm for faster TOM calculation.
- To enhance the applicability of WGCNA for analyzing large-scale biological datasets.
Main Methods:
- The study modified the single-threaded algorithm for TOM calculation into a multi-threaded version.
- Rcpp was utilized to enable R to call a C++ function.
- OpenMP was employed within the C++ function to execute parallel computations for TOM calculation from the adjacency matrix.
Main Results:
- The multi-threaded algorithm significantly reduces the time required for TOM calculation.
- Performance gains are observed on shared-memory multi-processor systems, with calculation time decreasing as the number of CPU cores increases.
- The optimized algorithm demonstrates the potential for WGCNA application on larger datasets.
Conclusions:
- The developed multi-threaded algorithm accelerates WGCNA by optimizing TOM computation.
- This advancement facilitates the analysis of larger gene co-expression networks.
- The approach is applicable to other research fields requiring sub-network identification in similar network structures.
Related Concept Videos
Parallel Processing
Improving Translational Accuracy
Gene Evolution - Fast or Slow?
In contrast, regions which code...
Weighted Mean
For example, consider the number of goals scored in the matches of a tournament. While computing the average number of goals scored in the tournament, it may be more important to...
Combinatorial Gene Control
The expression of more than 30,000 genes is controlled by approximately 2000-3000 transcription factors. This is possible because a single transcription factor can recognize more than one regulatory sequence. The specificity in gene...
Protein Networks
These interactions can be represented through maps depicting protein-protein interaction networks, represented as nodes and edges. Nodes are circles that are representative of a protein,...

