home

GOBUApplet

In this section, we describe some general information about GOBUApplet and give some technical guides for using GOBUApplet to browse your own data.

Contents

  1. Overview
  2. GOSlimMapper
  3. Using GOBUApplet
  4. Modifying GOBUApplet Plugins

Overview

GOBUApplet is a light-weight version of GOBU. A Java applet is a special kind of program which can be included in an HTML page and be executed via the user's web browser. With GOBUApplet, biologists can browse the target data simply by clicking a web link which invokes the corresponding GOBUApplet. However, an applet has some security restrictions. Here we list some major restrictions which affect the implementation of GOBUApplet in the following:

Due to applet's memory restriction, we don't not use whole GO to browse data since it requires huge memory space. Instead, we use GO slims to browse data. A GO slim is  a cut-down version of GO, giving you a broad overview of your data using only a set of general (i.e., lower-depth GO nodes in whole GO tree) GO terms. Therefore, the original GOBU format data (.tree format) needs to be transformed to a slimed version corresponding to the GO slim used. The GOSlimMapper allows you to generate slimed data corresponding to a specific GO slim. If you have any problem of generating GOBU tree format data, please refer to the Technical Section of GOBU.

Also, an applet is not allowed to open network connections to other Internet computers except the one at which the applet is located. So, to browse your own data by GOBUApplet, you need to put both the GOBUApplet and the data on a same web server.

GOSlimMapper


Using GOBUApplet

To browse your data using GOBU applet, follow the steps listed below:
  1. Install JRE (java run-time environment): the JRE is required to run an applet program. Version 1.4.2_10 or higher is recommended. You can download JRE from: http://java.sun.com/
  2. Uploading the main program: upload the gobuapplet.jar file to a web server (To run our demo sample, we advise you to upload the show.html file and the eFerret.tree.jar to the web server together with the gobuapplet.jar file). Note that the jar file encapsulating the GOBUApplet program and the HTML page used to invoke the corresponding GOBUApplet should be put in a same directory. Assume all the sample files are put at http://mysite.com/GOBUApplet, you can then invoke the demo GOBUApplet via URL: http://mysite.com/GOBUApplet/show.html.
  3. Loading your data into GOBUApplet: the content of our sample html file to invoke the applet looks like:
    <html>
    <APPLET code ="bio301.goutil.gobuapplet.GobuFrame.class" archive="gobuapplet.jar" height="768" width="1024">
    <param name = "gobuAppletJarName" VALUE = "gobuapplet.jar">
    <param name = "userdata" VALUE = "eFerret.tree.jar">
    <param name = "goslim" VALUE = "goslim_yeast.go.txt">
    </APPLET>
    </html>

The "gobuAppletJarName" attribute specifies the jar file name encapsulating the GOBUApplet program, and its VALUE should be same as the "archive" attribute within "APPLET code" tag (in this case, both of their names are "gobuapplet.jar"). For example, if you set the value of "archive" attribute to be "gobuapplet2.jar", the value of attribute "gobuAppletJarName" should also be"gobuapplet2.jar". Such an attribute is necessary when there are several versions of GOBUApplets which are encapsulated by jar files with different names (e.g., GOBUApplets with different plugins).

The "userdata" attribute specifies the file to be browsed. To reduce network transfer effort, the file is compressed and encapsulated in a jar file. Note that the name of the jar file must be same as the file encapsulated in jar. For example, the jar file encapsulating "eFerret.tree" must be named "eFerret.tree.jar".

The "goslim" attribute specifies the GO slim files. At present, there are four GO slim files you can specify, namely, "goslim_yeast.go.txt", "goslim_plant.go.txt", "goslim_generic.go.txt" and "goslim_GOA.go.txt" (Note that before browsing your data using a specific GO slim, you must apply GOSlimMapper to generate a slimed data corresponding to that GO slim).

To load your own data, what you have to do is to generate a html file by replacing the VALUE in the "param" attribute. For example, to load your data "myData1.tree.jar" in folder "data" with GO slim file "goslim_GOA.go.txt", you can generate a html like this (Note: the jar file encapsulating your data should be located at the same or sub directories of the folder where the html file is):
<html>
<APPLET code ="bio301.goutil.gobuapplet.GobuFrame.class" archive="gobuapplet.jar" height="768" width="1024">
<param name = "gobuAppletJarName" VALUE = "gobuapplet.jar">
<param name = "userdata" VALUE="data/myData1.tree.jar">
<param name = "goslim" VALUE="goslim_GOA.go.txt">
</APPLET>
</html>

Modifying GOBUApplet Plugins

By default, all available plugins will be shown in the plugin menu of GOBUApplet program. If you have implemented your own plugins which are acceptable by GOBU, you can also use these plugins in GOBUApplet as well. Note that you should move the plugin classes (source codes) to package bio301.goutil.gobuapplet.plugins and recompile GOBUApplet. Plugin classes compiled with GOBU cannot be directly reused by GOBUApplet. By compling GOBUApplet using Ant, the resulting JAR file will be placed in "applet" sub-folder and named by "gobuapplet.jar". If you don't want to show all plugins in the GOBUApplet plugin menu, just uncompress the GOBUApplet JAR file, remove plugin classes under bio301.goutil.gobuapplet.plugins folder, and compress the remaining files into JAR again.