pgx server -> Cytoscape automation -> Cytoscape js

23 views
Skip to first unread message

davidcod...@gmail.com

unread,
Aug 22, 2018, 4:32:23 PM8/22/18
to cytoscape-helpdesk
Hi, new to Cytoscape and had some questions.

Looking to set up a Oracle PGX server and use Cytoscape automation with its RestApi's to get Cytoscape js out from it for UI development.

I assume Cytoscape automation makes a call to the PGX server and then formats the data into a nice json?

What are the limitations of the Cytoscape automation such as how many requests can it process? Size of data being requested?

Thanks

David Otasek

unread,
Aug 22, 2018, 4:55:18 PM8/22/18
to cytoscape-helpdesk
Hi David,

Cytoscape is designed as a UI application; each instance is designed primarily to process requests one at a time. Requests and responses will be limited by memory and processing power made available to Cytoscape.

Interacting with a PGX server would require exchanging JSON data with a running instance of Cytoscape. This has been be done via R, Python or JavaScript, but can be done with any language that can communicate via REST. You can familiarize yourself with the data structures by  exploring Cytoscape's Swagger documentation via the instructions in the Cytoscape Automation wiki. The Cytoscape Automation wiki and its associated GitHub repository are also a good starting place for using automation.

Of particular interest to you if you're interested in getting Cytoscape JS data will be the GET /v1/networks/{networkId}/views/{viewId} endpoint, and other endpoints branching from the /v1/networks/ root of the REST API.

Once you have Cytoscape JS JSON, the Cytoscape JS documentation can provide you with a means to manipulate and display it: http://js.cytoscape.org/

I hope this helps get you started. If you have any other specific questions, please let us know.


--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/42f94b9c-e1e1-4a3f-aa5a-7fa416839e40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

davidcod...@gmail.com

unread,
Aug 22, 2018, 7:49:40 PM8/22/18
to cytoscape...@googlegroups.com
Thank you, I had a chance to play around with some of those samples.  I'm looking for something that scales more, do to the fact that Cytoscape processes requests one at a time I may have to use something else.  

Are there other API's which I could utilize which would give me back a Cytoscape JS or a usable Graph JSON to be displayed in a UI?

David Otasek

unread,
Sep 5, 2018, 5:29:51 PM9/5/18
to cytoscape-helpdesk
This concerns Cytoscape.JS more than it does Cytoscape. For better support, check out the existing questions and answers for Cytoscape.js at stackoverflow, or ask for what you need there. 
Reply all
Reply to author
Forward
0 new messages