WGCNA: overlapping colors in plotDendroAndColors?
2
3
Entering edit mode
Keith Hughitt ▴ 180
@keith-hughitt-6740
Last seen 9 months ago
United States

Hello,

I was wondering if someone might be able to explain why there are sometimes overlapping colors module color section of plots created by WGCNA plotDendroAndColors?

For example, in the manual network construction tutorial (2. Network construction and module detection -> b. Step-by-step network construction and module detection) on the WGCNA website, there is a lot of striation of the module color assignments, particularly on the left-side of the plot.

Intuitively, I would expect the color assignments (which correspond to branch cuts in the dendrogram above) to be sequential, and not mixed together in this manner -- e.g. all of the "magenta" module would be in one place, and so on.

Any ideas why the color assignments appear this way?

WGCNA Tutorial dendrogram example

 

wgcna plotDendroAndColors Network • 7.5k views
ADD COMMENT
4
Entering edit mode
@peter-langfelder-4469
Last seen 5 weeks ago
United States

First, remember that the order of the objects on a clustering tree is to some degree arbitrary. Each merge can be flipped, and the algorithm that R uses for choosing which of the two possible flips to use is designed to result in visually informative clustering trees, but does not order objects using any kind of dissimilarity information.

To understand why parts of clusters apparently overlap (at least according to the dendrogram), look at Figure 3 of the Supplement http://labs.genetics.ucla.edu/horvath/CoexpressionNetwork/BranchCutting/Supplement.pdf or at this plot:

 

Look at the Simulated turquoise and red branches. They merge at a relatively low height and there are extra singletons just above the merge that should be assigned to one of the two branches (clusters). But the dendrogram itself provides no information about which branch each singleton is closest to. That's why the "hybrid" dynamic tree cut contains the second Partitioning Around Medoids (PAM)-like stage in which each object is assigned to its nearest cluster. This can lead to alternating colors above the merge of two clusters and simply reflects the fact that when an object sits above the merge of two branches, the dendrogram provides no information about which of the two branches the object is closest to. In this sense, the alternating colors are a reflection of a limitation of the clustering tree as a measure of object proximity.

Hope this helps,

Peter

 

ADD COMMENT
0
Entering edit mode

Thanks for thorough explanation and example. This has helped to clear up a lot of questions for me!

Cheers,
Keith

ADD REPLY
1
Entering edit mode
@james-w-macdonald-5106
Last seen 1 hour ago
United States

Hi Keith,

See here  http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/BranchCutting for more information.

Best,

Jim

ADD COMMENT
0
Entering edit mode

Thanks for the link! I read the original Dynamic Tree Cut paper, but somehow never made it to the supplemental page. That page/document is significantly more useful than most of the supplements I come across!

ADD REPLY

Login before adding your answer.

Traffic: 925 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6