Many bioinformatics applications involving biological networks are only made available as a web service. How can Cytoscape be integrated into such a web application for custom visualization and analysis?

Java Webstart

Java webstart allows Java applications to be launched by clicking on a hyperlink on a web page. An example is http://cytoscape.org/tutorial.php. More information about creating a web start for Cytoscape is on Cytoscape_via_Java_Web_Start

Webstart requires that users have installed Java and Java Webstart from Sun. As of late 2005, Java webstart v1.4 is standard on most client machines. The developer must create a JNLP file (.jnlp) and make it the target of the hyperlink. When the user clicks on the link, the Java application will download and launch. Downloading only occurs on the first click and if the application is changed on the server.

Pros:

Cons:

Suggested implementation

  1. Package the core of Cytoscape as a webstart package and post it on a web site
  2. Dynamically generate a jnlp file in response to a user request containing parameters that instruct Cytoscape where to find data to display
  3. User clicks on the jnlp file, Cytoscape application is launched (quickly if they have clicked on the link before), Cytoscape loads, then loads external data e.g. from a jar:// described in an associated jnlp file (note: jnlp files can include other jnlp files, allowing you to be modular) or http:// URI. Cytoscape supports loading data from many URI types, though some bugs exist (reported in the bug tracker)

Webstart Version Note

In Java 1.4, each click on a jnlp hyperlink launches a new application instance.

In Java 1.5, only the first click on a jnlp file for a particular application launches a new application instance. Subsequent clicks on the same jnlp file pass the parameters to the running application (if it still exists) and the application is allowed to implement an event that catches the parameters and reacts accordingly. This seems to be the best option for integrating Cytoscape into a website, however, Java 1.5 is not yet widely used (as of 2005).

Java Applet

It may be possible to rewrite Cytoscape as a Java Applet, but this would likely be a large and complex project, since Applets function in a restrictive security sandbox that is difficult to get out of and also tend to run slower than a full application. Thus, this does not seem to be a viable option for Cytoscape.

Dynamically Drawn Network Images

It is possible to use the Cytoscape library to draw network images (e.g. GIFs) given data from a database and output the image to a website dynamically as the user requests this.

Pros:

Cons:

Static Network Images

As an extension of the dynamic network image option, it is possible to precompute all possible images a user may request, thus making the image display fast. Same pros and cons for the dynamic case.

Integrating_Cytoscape_into_a_Web_Page (last edited 2009-02-12 01:03:14 by localhost)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux