|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstatalign.postprocess.Postprocess
statalign.postprocess.plugins.Structure
public class Structure
| Field Summary | |
|---|---|
static java.lang.String |
currentDotBracketStructure
|
static java.lang.String |
currentSequence
|
PPFold |
ppfold
|
static float[][] |
probMatrix
|
static float[] |
singleMatrix
|
java.lang.String |
title
Postprocess which handles the consensus structure generated by PPFold. |
| Fields inherited from class statalign.postprocess.Postprocess |
|---|
active, alignmentType, file, hasToolBar, mcmc, outputable, outputFile, postprocessable, postprocessWrite, rnaAssociated, sampling, screenable, selected, show |
| Constructor Summary | |
|---|---|
Structure()
|
|
| Method Summary | |
|---|---|
void |
afterLastSample()
This function is called after the MCMC runs. |
void |
beforeFirstSample(InputData input)
Called before MCMC start. |
java.lang.String[] |
getDependences()
Override this and return an array of full-qualified class names of the plugins this plugin depends on. |
javax.swing.Icon |
getIcon()
|
javax.swing.JPanel |
getJPanel()
|
java.lang.String |
getTabName()
|
double |
getTabOrder()
Specifies the order of the tab for this plugin in the GUI. |
java.lang.String |
getTip()
Returns with the tip information (shown when the mouse cursor is moved over the label of the tabulated panel) |
java.util.ArrayList<javax.swing.JComponent> |
getToolBarItems()
Returns the toolbar that this plugin uses. |
void |
init(ModelExtManager manager)
Called by PostprocessManager after setting the Postprocess.show field to allow initialisation,
possibly involving GUI (toolbar etc.) |
void |
newSample(State state,
int no,
int total)
This function is called when we sample from the Markov chain. |
void |
refToDependences(Postprocess[] plugins)
Override this to get access to instances of the plugins your plugin depends on. |
void |
reloadPanel()
Reinitializes panel to accommodate a new GUI |
void |
setSampling(boolean enabled)
This function switches on or off the sampling mode. |
static void |
updateBasePairMatrix(float[][] newMatrix)
|
void |
updateSequence()
|
static void |
updateSingleMatrix(float[] newMatrix)
|
static void |
updateStructure()
|
| Methods inherited from class statalign.postprocess.Postprocess |
|---|
addTrack, getFileExtension, getModExtPlugins, getTracks, newPeek, newSample, newStep, setSelected |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String title
public static float[][] probMatrix
public static float[] singleMatrix
public static java.lang.String currentSequence
public static java.lang.String currentDotBracketStructure
public PPFold ppfold
| Constructor Detail |
|---|
public Structure()
| Method Detail |
|---|
public void init(ModelExtManager manager)
PostprocessPostprocessManager after setting the Postprocess.show field to allow initialisation,
possibly involving GUI (toolbar etc.)
init in class Postprocesspublic java.lang.String getTabName()
getTabName in class Postprocesspublic javax.swing.Icon getIcon()
getIcon in class Postprocesspublic javax.swing.JPanel getJPanel()
getJPanel in class Postprocesspublic void reloadPanel()
Postprocess
reloadPanel in class Postprocesspublic java.lang.String getTip()
Postprocess
getTip in class Postprocesspublic double getTabOrder()
PostprocessE.g. we probably always want the "sequence input"-tab to appear first and therefore it returns a 1.0d here. The "current alignment"-tab returns 2.0d here and so if we want to make a tab get ordered between the "sequence input" and the "current alignment"-tabs we just make that plugin return 1.5d or something similar here. By default tabs get ordered last.
getTabOrder in class Postprocesspublic void setSampling(boolean enabled)
Postprocess
setSampling in class Postprocessenabled - Set it true if you need samples.public java.lang.String[] getDependences()
Postprocess
getDependences in class Postprocesspublic void refToDependences(Postprocess[] plugins)
Postprocess
refToDependences in class Postprocessplugins - reference to Postprocess objects in the order they are specified
in getDependences() or null if it returns nullpublic static void updateBasePairMatrix(float[][] newMatrix)
public static void updateSingleMatrix(float[] newMatrix)
public static void updateStructure()
public void updateSequence()
public java.util.ArrayList<javax.swing.JComponent> getToolBarItems()
Postprocess
getToolBarItems in class Postprocesspublic void beforeFirstSample(InputData input)
Postprocess
beforeFirstSample in class Postprocess
public void newSample(State state,
int no,
int total)
PostprocessPostprocess.newPeek(State state),
this method is only called after the burn-in period.
newSample in class Postprocessstate - A State object representing the current state of the chainno - The number of the current sampletotal - The number of the total samplespublic void afterLastSample()
Postprocess
afterLastSample in class Postprocess
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||