WGCNA export to cytoscape
1
1
Entering edit mode
2323982403 ▴ 60
@2323982403-11356
Last seen 3.6 years ago
Ann Arbor

    I'm using the exportNetworkToCytoscape function to export the module of interest to cytoscape. The tutorial first calculate TOM, select node in the network, choosing a threshold of the edge and then export to cytoscape. An edge can exists when the weight between two nodes is above the threshold.

    In cytoscape, I map the degree of nodes to node size, which means that the more connection one node has, the bigger size it will be. The node with big size will be considered hub genes.But the hub genes I selected from the visualization step in cytoscape is completely different from hub genes chosen based on module membership. When I look into the source code of exportNetworkToCytoscape on github, I found it first calculate a dist measure on TOM, and then apply the threshold to the dist measure. I'm wondering if it is logic, because TOM seems to be a measurement of correlation between two nodes,and just filter the edges with low topological overlap is fine, why do we have to calculate the dist of TOM and filter edge on that measure? And why do the hub genes selected from cytoscape is completely different from module membership?

 

wgcna cytoscape • 9.3k views
ADD COMMENT
2
Entering edit mode
@peter-langfelder-4469
Last seen 21 days ago
United States

Your reading of the code is incorrect. The code applies as.dist(), not dist(), to the input adjacency matrix (which is usually TOM). as.dist turns a matrix into distance representation by flattening the lower triangle. The information (e.g., numbers) remain exactly the same. 

I'm not so sure about the rest of your question since I rarely use Cytoscape, but in WGCNA hub genes are selected either by calculating the intramodular connectivity from the adjacency (as opposed to TOM), or by ranking genes using their correlation with the module eigengene (kME). Either one should produce results similar to but likely somewhat different from ranking of connectivity calculated from TOM, possibly on a subset of genes.

ADD COMMENT
1
Entering edit mode

1. So the "weight" output of the edges file generated by exportNetworkToCytoscape is based on Topological Overlap Matrix (TOM), as oppesd to pearson correlation used to calculate distance from eigengene during modules generation which can be restricted by minKMEtoStay? Is it correct?

 

2. IS this weight (generated by exportNetworkToCytoscape) is the Topological Overlap Matrix values?

Is it in in direct proportion to high correlation between genes? i.e., high weight values means high correlation, and low values mean low correlation?

 

3. What is the recommended threshold for this weight when using exportNetworkToCytoscape?

Or what would be a good way to select this threshold?

ADD REPLY
1
Entering edit mode

The weight generated by exportNetworkToCytoscape is exactly the matrix you give it as input. In the tutorials we use TOM but you could also use Pearson correlation or the adjacency. KME is not a measure of edge weight since KME is not a pairwise measure and hence is not used in the exportNetwork... functions.

TOM and Pearson correlation tend to be highly (Spearman-)correlated, so "relatively" high TOM implies "relatively" high correlation (here "relative" is relative to other gene pairs) but they are obviously not linearly related.

ADD REPLY
0
Entering edit mode

Thank you very much!

ADD REPLY
0
Entering edit mode

Would be a good way to select the  "threshold", when using exportNetworkToCytoscape?

ADD REPLY
1
Entering edit mode

My operational answer is to select a threshold that keeps the file size manageable, then use filtering in Cytoscape to interactively choose a threshold that results in an informative plot. This assumes that Cytoscape is only used for visualization; if you're going to use Cytoscape for further analysis, you should probably set the threshold to zero.
 

ADD REPLY
0
Entering edit mode

Thank you very much!

ADD REPLY
0
Entering edit mode

What further analysis can be done in Cytoscape? Selecting 0 threshold will output all possible edges. Now if we use Cytoscape-Network Analyser, the degree will all be same (= n-1). I feel only visualisation can be done in Cytoscape for weighted networks. Applying threshold and then reanalysis will make it equivalent to using hard-threshold for network construction.

ADD REPLY

Login before adding your answer.

Traffic: 408 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