Hey it worked.Thanks for the info.
But the fact is i need to convert the file to csv everytime(the text files i hav are .dat/.sif)
So i was thinking of using the following code:
https://trac.nbic.nl/cytoscaperpc/browser/CytoscapeRPC/scripts
the file loadnetwork.py
I modified the code a little bit as i dont have any edge and node attribute files(attached code).The code ran and created only one node and terminated giving the following error:
sanjan@ubuntu:~/Documents/programs/cytoRPC$ python myload.py 9000 ip test_216
Working on sif-file: eco_links156_long.sif
Traceback (most recent call last):
File "myload.py", line 139, in <module>
run()
File "myload.py", line 109, in run
edge_ids = server.Cytoscape.createEdges(netid, nodes_from, nodes_to,[True]*len(nodes_to), True)
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 0: 'No method matching arguments: java.lang.String, [Ljava.lang.Object;, [Ljava.lang.Object;, [Ljava.lang.Object;, java.lang.Boolean'>
Also can the network analyser(the preinstalled one on cytoscape2.8.3) plug-in be used through RPC?
-
Sanjan