Search
Question: WGCNA: overlapping colors in plotDendroAndColors?
2
gravatar for Keith Hughitt
3.2 years ago by
United States
Keith Hughitt90 wrote:

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

 

ADD COMMENTlink modified 3.2 years ago by Peter Langfelder1.3k • written 3.2 years ago by Keith Hughitt90
2
gravatar for Peter Langfelder
3.2 years ago by
United States
Peter Langfelder1.3k wrote:

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 COMMENTlink written 3.2 years ago by Peter Langfelder1.3k

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

Cheers,
Keith

ADD REPLYlink written 3.2 years ago by Keith Hughitt90
1
gravatar for James W. MacDonald
3.2 years ago by
United States
James W. MacDonald45k wrote:

Hi Keith,

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

Best,

Jim

ADD COMMENTlink written 3.2 years ago by James W. MacDonald45k

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 REPLYlink written 3.2 years ago by Keith Hughitt90
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 316 users visited in the last hour