|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.postprocess.Postprocess
statalign.postprocess.plugins.PPFold
public class PPFold
Field Summary | |
---|---|
com.ppfold.algo.AlignmentData |
al
|
double |
entropyExp
|
double |
entropyObs
|
double |
entropySample
|
java.lang.String |
outDir
|
float[][] |
probMatrix
|
java.lang.String |
refSeqGapped
|
java.lang.String |
title
|
Fields inherited from class statalign.postprocess.Postprocess |
---|
active, alignmentType, file, hasToolBar, mcmc, outputable, outputFile, postprocessable, postprocessWrite, rnaAssociated, sampling, screenable, selected, show |
Constructor Summary | |
---|---|
PPFold()
|
Method Summary | |
---|---|
void |
afterLastSample()
This function is called after the MCMC runs. |
static void |
appendAlignment(java.lang.String label,
java.lang.String[][] alignment,
java.io.File outFile,
boolean append)
|
static void |
appendFolds(java.io.File file,
java.lang.String name,
java.lang.String alignedSequence,
int[] pairedSites,
int[] projectedPairedSites,
boolean append)
|
void |
beforeFirstSample(InputData input)
Called before MCMC start. |
double |
calculateMPD(java.util.ArrayList<java.lang.String> mpdSequences,
java.util.ArrayList<java.lang.String> mpdNames)
|
void |
computeFuzzyAlignment()
|
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()
|
static com.ppfold.algo.Tree |
getPPfoldTree(Mcmc mcmc)
|
static double |
getProxySimilarityFromAvgPosterior(double avgPosterior)
|
static java.lang.String |
getRefName()
|
static java.lang.String |
getSequenceByName(java.lang.String[][] sequences,
java.lang.String name)
|
java.lang.String[][] |
getSequences()
|
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) |
static double[][] |
incrementCountMatrix(double[][] matrix,
java.util.List<java.lang.Integer> leftOutColumns)
|
static double[][] |
leaveOutColumns(double[][] matrix,
java.util.List<java.lang.Integer> leftOutColumns)
|
static java.util.ArrayList<java.lang.String> |
loadFolds(java.io.File file,
int line)
|
void |
newSample(State state,
int no,
int total)
This function is called when we sample from the Markov chain. |
com.ppfold.algo.ResultBundle |
performConsensusEvolutionPrediction()
|
static java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.String>>> |
readAllSamples(java.lang.String path)
|
static double[][] |
reconstituteMatrix(double[][] matrix,
java.util.List<java.lang.Integer> leftOutColumns)
|
void |
refToDependences(Postprocess[] plugins)
Override this to get access to instances of the plugins your plugin depends on. |
static void |
saveResult(java.lang.String sequence,
int[] pairedSites,
double[][] basePairProb,
double[] singleBaseProb,
java.io.File outFile)
|
void |
saveScores(java.io.File outFile,
double ppfoldReliabilityStatAlign,
double ppfoldReliabilityMPD)
|
void |
selectReferenceSequence(InputData input)
|
void |
setSampling(boolean enabled)
This function switches on or off the sampling mode. |
Methods inherited from class statalign.postprocess.Postprocess |
---|
addTrack, getFileExtension, getModExtPlugins, getToolBarItems, getTracks, init, newPeek, newSample, newStep, reloadPanel, 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 java.lang.String refSeqGapped
public float[][] probMatrix
public double entropyObs
public double entropyExp
public double entropySample
public java.lang.String outDir
public com.ppfold.algo.AlignmentData al
Constructor Detail |
---|
public PPFold()
Method Detail |
---|
public static java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.String>>> readAllSamples(java.lang.String path)
public java.lang.String getTabName()
getTabName
in class Postprocess
public javax.swing.Icon getIcon()
getIcon
in class Postprocess
public javax.swing.JPanel getJPanel()
getJPanel
in class Postprocess
public java.lang.String getTip()
Postprocess
getTip
in class Postprocess
public double getTabOrder()
Postprocess
E.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 Postprocess
public void setSampling(boolean enabled)
Postprocess
setSampling
in class Postprocess
enabled
- Set it true if you need samples.public java.lang.String[] getDependences()
Postprocess
getDependences
in class Postprocess
public void refToDependences(Postprocess[] plugins)
Postprocess
refToDependences
in class Postprocess
plugins
- reference to Postprocess objects in the order they are specified
in getDependences() or null if it returns nullpublic void selectReferenceSequence(InputData input)
public void beforeFirstSample(InputData input)
Postprocess
beforeFirstSample
in class Postprocess
public double calculateMPD(java.util.ArrayList<java.lang.String> mpdSequences, java.util.ArrayList<java.lang.String> mpdNames)
public static double[][] reconstituteMatrix(double[][] matrix, java.util.List<java.lang.Integer> leftOutColumns)
public static double[][] incrementCountMatrix(double[][] matrix, java.util.List<java.lang.Integer> leftOutColumns)
public static double[][] leaveOutColumns(double[][] matrix, java.util.List<java.lang.Integer> leftOutColumns)
public void newSample(State state, int no, int total)
Postprocess
Postprocess.newPeek(State state)
,
this method is only called after the burn-in period.
newSample
in class Postprocess
state
- A State
object representing the current state of the chainno
- The number of the current sampletotal
- The number of the total samplespublic com.ppfold.algo.ResultBundle performConsensusEvolutionPrediction()
public void computeFuzzyAlignment()
public void afterLastSample()
Postprocess
afterLastSample
in class Postprocess
public void saveScores(java.io.File outFile, double ppfoldReliabilityStatAlign, double ppfoldReliabilityMPD)
public static double getProxySimilarityFromAvgPosterior(double avgPosterior)
public static void appendAlignment(java.lang.String label, java.lang.String[][] alignment, java.io.File outFile, boolean append)
public static java.lang.String getSequenceByName(java.lang.String[][] sequences, java.lang.String name)
public static void saveResult(java.lang.String sequence, int[] pairedSites, double[][] basePairProb, double[] singleBaseProb, java.io.File outFile)
public static com.ppfold.algo.Tree getPPfoldTree(Mcmc mcmc)
public java.lang.String[][] getSequences()
public static java.lang.String getRefName()
public static void appendFolds(java.io.File file, java.lang.String name, java.lang.String alignedSequence, int[] pairedSites, int[] projectedPairedSites, boolean append)
public static java.util.ArrayList<java.lang.String> loadFolds(java.io.File file, int line)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |