cyclient
cyclient(host="localhost", port=1234, version="V1")
A CyREST client.
hostCyREST host server address. default='localhost'portCyREST port number. default=1234-
versionCyREST version. default='v1' -
returns statusa cyclient object.
>>> from py2cytoscape import cyrest
>>> cytoscape=cyrest.cyclient()
cyclient.status
cyclient.status()
Checks the status of your CyREST server.
>>> from py2cytoscape import cyrest
>>> cytoscape=cyrest.cyclient()
>>> cytoscape.status()
CyREST online!
cyclient.version
cyclient.version()
Checks Cytoscape version.
>>> from py2cytoscape import cyrest
>>> cytoscape=cyrest.cyclient()
>>> cytoscape.version()
cytoscapeVersion 3.6.0
apiVersion v1
cyclient.copy
cyclient.copy()
Creates a copy of the cyclient object.
>>> from py2cytoscape import cyrest
>>> cytoscape=cyrest.cyclient()
>>> new=cytoscape.copy()
cyclient.result
cyclient.result(filetype="PNG", saveas=None, host=None, port=None)
Checks the current network.
filetypefile type eg.PDF, PNG, CYS, CYJS; default="PNG"saveas/path/to/non/tmp/file.prefixhostcytoscape host address, default=cytoscape_hostportcytoscape port, default=1234returnsan image
>>> from py2cytoscape import cyrest
>>> cytoscape=cyrest.cyclient()
>>> cytoscape.result()