iterativeWGCNA
iterativeWGCNA copied to clipboard
example code
Dear, Could you add some example code to iterativeWGCNA github, especially on the graphic visualization ?
And, after runing iterativeWGCNA with the following code: iterativeWGCNA -i data.txt --wgcnaParameters maxBlockSize=50000,nthreads=20 --enableWGCNAThreads
I got 15 pass (pass1 to pass 15) and more than 1,00 modules in final-membership.txt in total. I wonder if all the modules in the 15 pass must be used or only the last pass (pass15) be used to assign the membership ?
Hi- apologies for taking so long to get back to you.
iterativeWGCNA has no built in visualizations at this time (although that is in the pipeline).
You can use WGCNA in R to get an approximate view of the results. Because iterativeWGCNA partitions the data for clustering (just likethe blockwise function of WGCNA) any clustering of the whole original dataset will still maintain some spurious correlations that were filtered out, so the dendrogram may not match exactly up to expectations, but it will be pretty good.
(the following are just suggested guidelines, you will have to make some adjustments)
- Load your expression data into R
- Filter out any genes are not in the final-membership.txt (ie..d, dropped by iterativeWGCNA)
- do the first steps standard wgcna analysis, making sure to adjust parameters to match any parameters you may have specified to iterativeWGCNA (in your case, you can go out of the box):
## where datExpr is your filtered expression data
simMatrix <- TOMsimilarityFromExpr(datExpr, networkType="signed")
dissMatrix <- 1 - simMatrix
## cluster
geneTree <- hclust(as.dist(dissMatrix))
- use labels2colors to map the module assignments (from final-membership.txt) to a color vector
- use the plotDendroAndColors to map your geneTree (dendrogram) to the module assignments