...
Code Block | ||||
---|---|---|---|---|
| ||||
package mypackage; import com.affymetrix.genometryImpl.util.FloatTransformer; public class MyTransformer implements FloatTransformer { final String paramPrompt; final String name; public MyTransformer() { super(); paramPrompt = null; name = "MyTransformer"; } public String getParamPrompt() { return null; } public String getName() { return name; } public String getDisplay() { return name; } public float transform(float x) { return x; // boring, put your own math function here, return 1.0/x; or return 3*x*x*x - 2*x*x +8*x - 6; } public float inverseTransform(float x) { return 0.0f; } public boolean isInvertible() { return false; } public boolean setParameter(String s) { return true; } } |
- Now, compile and jar these files into MyTransformer.jar (the jar command has a -m option for the manifest file).
- At this point, you want to put your jar into a web server using OBR (see above).
- To add the plugin to a web server without OBR, in the plugins directory, from the command line run
java -cp IGB_HOME/igb_server/lib/bindex.jar -jar bindex.jar -n IGB -q -r repository.xml .
- where IGB_HOME is your IGB directory.
To create plug-ins using eclipse - a Quick-Start Guide
...