Dear guys, I tried to replicate the WGCNA tutorial step by step (https://horvath.genetics.ucla.edu/html/CoexpressionNetwork/Rpackages/WGCNA/Tutorials/FemaleLiver-05-Visualization.pdf) Therefore I used the code exactly the same as the tutorial. However I got the TOM heatmap like this, with red background and golden modules. It's so wired that the colors are opposite to the figure in the tutorial. I googled a lot and found no similar phenomenon. How could I get this TOM heatmap like the tutorial? Thanks very much.
![the TOM plot with red background and golden modules][3]
restart R
reload data and redo TOMplot() still the red figure
In TOMplot() you can use additional arguments such as those of the heatmap() function. Use the 'col' argument to set the color palette of the heatmap
Thanks. I still don't know why I need to use 'col' argument while the others including the tutorial does not. Could you please give detailed code example that how to use 'col' argument in TOMplot()?
I have been encountered the same problem. But I guess the aforementioned solution, which just simplily revert the color mapping, may not be correct.
I did inspect the TOM matrix and TOMplot function. The former consists of a larger proportion for Bigger Number(such as 0.8+ 0.9+),and The latter.,I found , call the built-in function — heatmap to draw the results, which will map the higher value with dark color and lower one with light color.
Any advices welcomed ! I have been stucked for moren than one month.
Hi Derek,
In plotTOM() you are plotting a dissimilarity matrix
dissTOM = 1-TOM