Entering edit mode
6.9 years ago
ASid
▴
40
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]);
It could be that the function discards singletons (i.e. unconnected nodes) after thresholding.
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: