Hi all,
I am very new in the R world. I followed the UCLA "Step-by-step network construction and module detection" WGCNA tutorial, and found 24 modules in my RNA-seq data. The issue I have right now is that my modules are all assigned with some weird colors (e.g. mistyrose, antiquewhite1,paleturquoise, etc.), not like in most publications (e.g. black, magenta, blue, red, etc.). I used the labels2color function.
My questions are:
1/ Does the module color have special meaning to genes in the module, or just a color label?
2/ Any way I can make my modules labeled with more "normal" colors? Or any way I can change the module colors manually?
Many thanks!
YS
Part of the code:
dynamicMods = cutreeDynamic(dendro= geneTree, distM= dissTOM, deepSplit=2, pamRespectsDendro= FALSE, minClusterSize = minModuleSize) dynamicColors= labels2colors(dynamicMods) MEList= moduleEigengenes(datExpr, colors= dynamicColors,softPower = 18) MEs= MEList$eigengenes MEDiss= 1-cor(MEs) METree= flashClust(as.dist(MEDiss), method= "average") MEDissThres = 0.3 merge = mergeCloseModules(datExpr, dynamicColors, cutHeight= MEDissThres, verbose =3) mergedColors = merge$colors mergedMEs = merge$newMEs plotDendroAndColors(geneTree, cbind(dynamicColors, mergedColors), c("Dynamic Tree Cut", "Merged dynamic"), dendroLabels= FALSE, hang=0.03, addGuide= TRUE, guideHang=0.05) moduleColors = mergedColors colorOrder = c("grey", standardColors(50)) moduleLabels = match(moduleColors, colorOrder)-1 MEs = mergedMEs
Thank you very much!
YS