This is a test version of Biostars. For the public version, visit https://www.biostars.org.
WGCNA export network into cytoscape : problem

The threshold (which corresponds to adjacency threshold for including edges in the output.) in the function “exportNetworkToCytoscape” (WGCNA) affects the results in which manner? I wanted to export the network of 461 module size into cutoscape network format and it gave me the 447 nodes in the resultant network when I used threshold =0.02 . Why this number was reduced from 461 to 447? What does this value does to the node numbers in module when exported ? I used the code:

cyt = exportNetworkToCytoscape(modTOM,
                               edgeFile = paste("CytoscapeInput-edges-", paste(modules, collapse="-"), ".txt", sep=""),
                               nodeFile = paste("CytoscapeInput-nodes-", paste(modules, collapse="-"), ".txt", sep=""),
                               weighted = TRUE,
                               threshold = 0.02,
                               nodeNames = modProbes,
                               nodeAttr = moduleColors[inModule]);
r wgcna cytoscape network export

I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:

101010 Button

It could be that the function discards singletons (i.e. unconnected nodes) after thresholding.

0 answers

No answers yet.

Log in to answer this question.