If you are unfamiliar with R refrence WGCNA, we suggest reading the original WGCNA publication:
WGCNA: an R package for weighted correlation network analysis
Describe various features of the WGCNA package for the R programming language