|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
de.unibi.techfak.jpredictor.jPREdictor
public class jPREdictor
The main pogram. It is designed to work either as command line tool (type '-h' as parameter to get help), as well as GUI (if no parameters are given), as well as an applet in a browser window.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JApplet |
|---|
javax.swing.JApplet.AccessibleJApplet |
| Nested classes/interfaces inherited from class java.applet.Applet |
|---|
java.applet.Applet.AccessibleApplet |
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
java.awt.Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) static ICommunicator |
comm
The global communicator, used to 'talk' to the operator, what means, doing all settings and gettings through. |
private static int |
FLAG_BS
Flag, if the background file is a sequence rather than a table file. |
private static int |
FLAG_DONTUSEPREDEFINED
Flag for using the predefined motifs in no case. |
private static int |
FLAG_FORCE
Flag for marking a general force. |
private static int |
FLAG_FORCE_CCC
Flag for forcing the jPREdictor into performing a cutoff calculation. |
private static int |
FLAG_FORCE_CLUSTERING
Flag for forcing the jPREdictor into performing a motif clustering. |
private static int |
FLAG_FORCE_EVOLUTION
Flag for forcing the jPREdictor into performing a motif evolution. |
private static int |
FLAG_FORCE_GUI
Flag for forcing the jPREdictor to read all options and set all commnunicators fields and then starts the GUI. |
private static int |
FLAG_FORCE_SCORING
Flag for forcing the jPREdictor to perform a score sequence operation, and nothing else. |
private static int |
FLAG_FORCE_SEARCHING
Flag for forcing the jPREdictor to perform a search motifs operation. |
private static int |
FLAG_FORCE_WEIGHTING
Flag for forcing the jPREdictor to perform a weight motifs operation. |
private static int |
FLAG_MS
Flag, if the model file is a sequence rather than a table file. |
private static int |
FLAG_T
Flag for single occurrence output, when searching motifs. |
private static int |
FLAG_U
Flag for printing only the best score, when scoring sequences. |
private static int |
FLAG_USEPREDEFINED
Flag for using the predefined motifs in any case. |
(package private) static int |
flags
The local bit array for flags. |
(package private) static Operator |
op
The global operator, which performs all tasks on the sequences by using the motifs. |
private static java.lang.String |
progInfo
Informations on and description of the program. |
private static java.lang.String |
serialVersionDate
Version date. |
private static long |
serialVersionUID
Version number. |
private static java.lang.String |
version
Version string. |
| Fields inherited from class javax.swing.JApplet |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
jPREdictor()
|
|
| Method Summary | |
|---|---|
static boolean |
commandLineInterpreter(java.lang.String[] args)
The command line interpreter tool. |
static java.util.Vector |
cutoffCalc(ICommunicator comm,
boolean out)
Performs a cutoff calculation on scores received through the given communicator. |
void |
destroy()
Called, short before the applet is about to be destroyed. |
(package private) static void |
errorExit(int exitCode)
Writes a user message to the error stream of the communicator and exits. |
java.lang.String |
getAppletInfo()
Returns the version info of this program. |
(package private) static int |
getOccurrencesFromFile(java.lang.String filename,
MotifList ml,
java.util.Vector[] occ,
boolean norm,
boolean out)
Reads a file and stores the occurrences of the motifs named in the file to the vector array. |
static java.lang.String |
getProgramInfo()
Returns a description of the program. |
static java.lang.String |
getVersionInfo()
Returns the version info of this program. |
static java.lang.String |
History()
Prints the help for specialized tasks the jPREdictor can perform. |
void |
init()
Inits the communicator and the operator. |
static void |
main(java.lang.String[] args)
The main program |
(package private) static void |
print(boolean verify,
java.lang.String s)
Prints the string via comm.out().print() |
(package private) static void |
processScores()
Takes the file given by option '-f' and comprises the scores in it to bands for many cutoffs. |
void |
stop()
Does nothing, because the user might want the applet to work if he is gone. |
(package private) static void |
taskCutoffCalc(boolean out)
Starts the cutoff-calculation task. |
(package private) static void |
taskScoreSequence()
Starts the score-sequence task. |
(package private) static void |
taskSearchSequence()
Starts the search-motifs-on-sequence task. |
(package private) static void |
taskWeightMotifs(boolean output)
Starts the weight-motifs task. |
private static void |
test(java.lang.String[] args)
A method for testing purposed. |
static java.lang.String |
Usage()
|
static java.lang.String |
UsageHidden()
|
static java.lang.String |
UsageOptionFile()
Prints the help for writing an option file. |
static java.lang.String |
UsageSpec()
|
(package private) static void |
weightMotifs(MotifList ml,
ICommunicator comm)
This method calculates the motifs weights from two table files. |
| Methods inherited from class javax.swing.JApplet |
|---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.applet.Applet |
|---|
getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private static final java.lang.String serialVersionDate
static ICommunicator comm
static Operator op
private static java.lang.String version
private static java.lang.String progInfo
static int flags
private static final int FLAG_BS
private static final int FLAG_MS
private static final int FLAG_USEPREDEFINED
FLAG_USEPREDEFINED is set in flags
the program decides from whether motifs are given whether it adds the
predefined ones or not.
private static final int FLAG_DONTUSEPREDEFINED
FLAG_USEPREDEFINED is set in flags
the program decides from whether motifs are given whether it adds the
predefined ones or not.
private static final int FLAG_T
private static final int FLAG_U
private static final int FLAG_FORCE_SEARCHING
private static final int FLAG_FORCE_WEIGHTING
private static final int FLAG_FORCE_SCORING
private static final int FLAG_FORCE_CCC
private static final int FLAG_FORCE_GUI
private static final int FLAG_FORCE_CLUSTERING
private static final int FLAG_FORCE_EVOLUTION
private static final int FLAG_FORCE
| Constructor Detail |
|---|
public jPREdictor()
| Method Detail |
|---|
public static java.lang.String Usage()
public static java.lang.String UsageSpec()
public static java.lang.String UsageHidden()
public static java.lang.String UsageOptionFile()
public static java.lang.String History()
static void taskSearchSequence()
static void taskWeightMotifs(boolean output)
static void taskScoreSequence()
comm.err().
static void taskCutoffCalc(boolean out)
comm.err().
out - Whether progress informations are to be sent to stderrstatic void errorExit(int exitCode)
System.exit( exitCode ) is called.
exitCode - The program leaves with this code.
static void print(boolean verify,
java.lang.String s)
comm.out().print(), if verify is
true.
- Parameters:
verify - Decides whether to print the string or not.s - The String to get printed.
static void weightMotifs(MotifList ml,
ICommunicator comm)
This method calculates the motifs weights from two table files. Both files must contain the occurrences of the motifs in any given sequence, a previous call to the jPREdictor without '-b' or '-m' creates such a file. The table file given through parameter '-b' means the negative training set (background) searched, the one given through parameter '-m' means the positive training set (model) searched. Both corresponding filenames are taken from the communicator.
Prints first the motifs occurrences in the positive training set, second the ones of the negative training set. Note, that the calculated weights of the motifs are not output.
ml - The list of motifs to set the weigths for.comm - The communicator to get some settings.
static int getOccurrencesFromFile(java.lang.String filename,
MotifList ml,
java.util.Vector[] occ,
boolean norm,
boolean out)
filename - The name of the file.ml - The motif lsit the names found in the file are compared to.occ - The vector array to be filled. One vector for every motif,
thus must be in length of the size of ml.norm - Normalize the occurrences by sequence length or do it not.out - Output the occurrences or not.
static void processScores()
public static java.util.Vector cutoffCalc(ICommunicator comm,
boolean out)
ScoringFactory.getCutoffTable()-method.
comm - The communicator the results are received from.out - true, if the function should print some
progress notes to comm.err().
ScoringFactory.getCutoffTable().ScoringFactory.getCutoffTable()public static boolean commandLineInterpreter(java.lang.String[] args)
args - Runtime arguments, parameters.
true, in
all other cases (especially error cases), falsepublic static void main(java.lang.String[] args)
args - Runtime arguments, parameterspublic void init()
init in class java.applet.Appletpublic void stop()
stop in class java.applet.Appletpublic void destroy()
destroy in class java.applet.Appletpublic java.lang.String getAppletInfo()
getAppletInfo in class java.applet.Appletpublic static java.lang.String getVersionInfo()
public static java.lang.String getProgramInfo()
private static void test(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||