Hi Biostars,
I've a question about WGCNA for co-expression network analysis. When I try to merge the modules basis on their expression profile using the following code:
merge = mergeCloseModules(datExpr, dynamicColors, cutHeight = 0.2, verbose = 3)
I get the merged module with the number of genes inside each module using the code to display those modules:
merge$colors
I get the same modules like above, BUT with different number of genes in each module, when I calculate the gene-module membership using:
geneModuleMembership = as.data.frame(cor(datExpr, MEs, use = "p"));
listModule <- c() #new list of modules
for (i in 1: numberGenes){
listModule <- c(listModule, names(which.max(abs(geneModuleMembership[i,]))))
}
table(listModule)
Do you have an idea why I get different number of genes ?
Thanks in advance
Different by how much? Many programs produce non-deterministic output unless they allow for a way to produce deterministic output.
Thank you genomax2 for you response.
I post here the results for the two sets:
and