I've used the WGCNA packages (https://horvath.genetics.ucla.edu/html/CoexpressionNetwork/Rpackages/WGCNA/) to generate edge and node files for use in Cytoscape.
cyt = exportNetworkToCytoscape(modTOM,
edgeFile = file.path("./environment", paste(label, "_CytoscapeInput-edges-", paste(modules, collapse="-"), ".txt", sep="")),
nodeFile = file.path("./environment", paste(label, "_CytoscapeInput-nodes-", paste(modules, collapse="-"), ".txt", sep="")),
weighted = TRUE,
threshold = 0.02,
nodeNames = modProbes,
altNodeNames = modGenes,
nodeAttr = moduleColors[inModule])
I've read about importing these to Cytoscape here Importing Network From Wgcna Into Cytoscape
However, when I import, I can't get the node names to appear (see image linked below). Any help please!
For networks with lots of nodes and edges, cytoscape hide the node names to make the navigation smoother. If you zoom in, or export the network as image, the node names should appear again