I tried using the RCytoscape package to export networks from R to cytoscape. I tried to follow the documentation butfailed. The following are the commands Iused:
data(liver.toxicity)
X <- liver.toxicity$gene
Y <- liver.toxicity$clinic
toxicity.spls <- spls(X, Y, ncomp = 3, keepX = c(50, 50, 50), keepY = c(10, 10, 10))
result<-network(toxicity.spls, comp = 1:3, threshold = 0.8,
X.names = NULL, Y.names = NULL, keep.var = TRUE,
color.node = c("mistyrose", "lightcyan"),
shape.node = c("rectangle", "circle"),
color.edge = c("red", "blue"),
lty.edge = c("solid", "solid"), lwd.edge = c(1, 1),
show.edge.labels = FALSE, interactive = FALSE)
library(RCytoscape)
cw <- CytoscapeWindow ("result", graph=makeSimpleGraph())
displayGraph (cw)
Instead of importing the 42 vertices and 78 edges it just imports those three edges and nodes that are shown in the documentation. I do not realise whee am making the mistake.