Expression pattern
Here are shown Java applets used by the
Knife
knowledge base. They have been written at INRIA Rhône-Alpes in the
Sherpa project by Sylvain
Chicois.
The expression pattern of a gene groups all the localisations of its expression
in the individual. This applet is developed in the aim to visualise the pattern
of all gene expressed in an individual, at a particular developement stage,
or in order to compare the expression of different allele of a same gene.
Class profile
The applet is made of four classes, which are in the file
ExpPatternApplet.java.
-
ExpPatternApplet extends Applet
-
It enables displaying the pattern directly into the HTML page loaded. It
creates an object from class ScalePanel and another one from class
PatPanel. A tokenizer analyses the applet parameter `data' and
allows creating, in the `PatPanel', objects from class
GenePattern.
-
-
-
ScalePanel extends Canvas
-
For the displaying of a scale witch represent the individual.
-
-
-
PatPanel extends Panel
-
it builds a panel witch contains :
-
a canvas where the pattern is displayed,
-
the horizontal and vertical scrollbars for moving in the canvas.
-
it also builts a Vector (class Java.lang.Vector) of objects from class
GenePattern, and display it in the canvas. The paint()
method contains a tokenizer wich analyse the attribute `pattern' of each
object from class GenePattern.
-
-
-
GenePattern extends Object
-
Each object from this class contains three attributes, parsed by the
ExpPatternApplet's tokenizer:
-
the name of the gene.
-
the pattern of the gene
-
the color wanted for the display.
-
-
Example
For instance, the HTML code:
<APPLET CODE="ExpPatternApplet.class"
CODEBASE="http://co4.inrialpes.fr/java/exppattern/"
NAME="Expression Pattern"
WIDTH=500 HEIGHT=300>
<PARAM NAME=data
VALUE="Bicoid-WT-CB-rna/r:30-45,60-100;Giant-WT-CB-rna/g:10-30,50-60;
Kruppel-WT-CB-rna/b:55-85;Antennapedia-WT-CB-rna/p:5-8,25-44,77-95;
Fushi-Tarazu-WT-CB-rna/b:37-64,84-92">
</APPLET>
generates the following pattern display:
Please report any problem here
Source
The source code can be found here (all the classes are in the same file):