Hi Can some one please point out where i am wrong. I am trying to position set of nodes column-wise in cytoscape using RCytoscape A----D B----E C----F ------------------- g <- new ('graphNEL', edgemode='undirected') cw <- CytoscapeWindow ('smallExample', graph=RCytoscape::makeSimpleGraph()) layout (cw, 'jgraph-spring') redraw(cw) nodesFr = c('A', 'B', 'C') nodesTo =c('D', 'E', 'F') nodesAll = union(nodesFr, nodesTo) nElemFr = length(nodesFr) nElemTo = length(nodesTo) g <- graph::addNode(nodesAll, g) setPosition(cw, nodesFr , c(400, 400, 400), c(100, 200, 300)) setPosition(cw, nodesTo , c(600, 600, 600), c(100, 200, 300)) Error in convertToR(xmlParse(node, asText = TRUE)) : faultCode: 0 faultString: Failed to invoke method setNodesPositions in class tudelft.CytoscapeRPC.CytoscapeRPCCallHandler: null setPosition(cw, nodesTo , c(600, 600, 600), c(100, 200, 300)) Error in convertToR(xmlParse(node, asText = TRUE)) : faultCode: 1001 faultString: Node with id: D could not be found. Thanks --Fahim [[alternative HTML version deleted]]
On 02/13/2011 11:28 AM, Fahim M wrote:> Hi > Can some one please point out where i am wrong. > > I am trying to position set of nodes column-wise in cytoscape using > RCytoscape > A----D > B----E > C----FHi Fahim -- please ask questions about Bioconductor packages on the Bioconductor mailing list bioconductor.org/help/mailing-list and include packageMaintainer('RCytoscape') in the post. Martin> > ------------------- > > g <- new ('graphNEL', edgemode='undirected') > cw <- CytoscapeWindow ('smallExample', graph=RCytoscape::makeSimpleGraph()) > layout (cw, 'jgraph-spring') > redraw(cw) > > nodesFr = c('A', 'B', 'C') > nodesTo =c('D', 'E', 'F') > nodesAll = union(nodesFr, nodesTo) > > nElemFr = length(nodesFr) > nElemTo = length(nodesTo) > > g <- graph::addNode(nodesAll, g) > > setPosition(cw, nodesFr , c(400, 400, 400), c(100, 200, 300)) > setPosition(cw, nodesTo , c(600, 600, 600), c(100, 200, 300)) > Error in convertToR(xmlParse(node, asText = TRUE)) : > faultCode: 0 faultString: Failed to invoke method setNodesPositions in > class tudelft.CytoscapeRPC.CytoscapeRPCCallHandler: null > > setPosition(cw, nodesTo , c(600, 600, 600), c(100, 200, 300)) > Error in convertToR(xmlParse(node, asText = TRUE)) : > faultCode: 1001 faultString: Node with id: D could not be found. > > Thanks > --Fahim > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: M1-B861 Telephone: 206 667-2793