This repository demonstrates a complete Weighted Gene-Co-expression Network Analysis (WGCNA) pipeline, including module preservation across datasets.
- Download
GeneExpression.zip. - Unzip it in the project root – you should end up with:
GeneExpression/
├── OSCC_TCGA_gene_expression_337.csv
├── OSCC_TCGA_gene_expression_32.csv
- Pre-processes the expression matrix
- Builds the WGCNA network
- Calculates module eigengenes
- Performs module-preservation analysis
- Place
wgcna.Rin the same directory alongside theGeneExpression/folder. - Open the script in RStudio to run the code
If you use this repository or the pipeline in your research, please cite:
Nguyen, P. and Zeng, E. (2025). A Protocol for Weighted Gene Co-expression Network Analysis With Module Preservation and Functional Enrichment Analysis for Tumor and Normal Transcriptomic Data. Bio-protocol, 15(18): e5447. https://doi.org/10.21769/BioProtoc.5447