public class SamplingPhyloHMM extends SamplingHigherOrderHMM
SamplingHigherOrderHMM.ViterbiComputationHigherOrderHMM.TypeburnInTest, hasSampledbackwardIntermediate, container, logEmission, numberOfSummands, skipInit, stateListbwdMatrix, emission, emissionIdx, finalState, forward, fwdMatrix, name, sostream, START_NODE, states, threads, trainingParameter, transitionalphabets, length| Constructor and Description |
|---|
SamplingPhyloHMM(SamplingHMMTrainingParameterSet trainingParameterSet,
String[] name,
int[] emissionIdx,
boolean[] forward,
PhyloDiscreteEmission[] emission,
TransitionElement... te)
This is the main constructor for a hidden markov model with phylogenetic emission(s)
This model can be trained using a metropolis hastings algorithm
|
SamplingPhyloHMM(StringBuffer xml)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstanceName()
Should return a short instance name such as iMM(0), BN(2), ...
|
protected void |
getNewParameters()
This method set all parameters for the next sampling step
|
acceptParameters, appendFurtherInformation, clone, createStates, drawFromStatistics, extractFurtherInformation, furtherInits, getLogPosteriorFromStatistic, getLogProbForPath, getLogStatePosteriorMatrixFor, getViterbiPath, getViterbiPathFor, getXMLTag, gibbsSampling, gibbsSamplingStep, initTraining, isInitialized, logProb, parseNextParameterSet, parseParameterSet, trainbaumWelch, createHelperVariables, estimateFromStatistics, fillBwdMatrix, fillBwdOrViterbiMatrix, fillFwdMatrix, fillLogStatePosteriorMatrix, finalize, getCharacteristics, getEmissionIndexes, getEmissions, getLogPriorTerm, getLogScoreFor, getLogScoreFor, getMaximalMarkovOrder, getNames, getNumericalCharacteristics, getTrainingParams, getTransisionElements, initialize, initializeRandomly, resetStatistics, samplePath, setSkiptInit, viterbicreateMatrixForStatePosterior, decodePath, decodeStatePosterior, determineFinalStates, fromXML, getFinalStatePosterioriMatrix, getGraphvizRepresentation, getGraphvizRepresentation, getGraphvizRepresentation, getGraphvizRepresentation, getLogProbFor, getLogStatePosteriorMatrixFor, getNumberOfStates, getNumberOfThreads, getRunTimeException, getStatePosteriorMatrixFor, getStatePosteriorMatrixFor, getViterbiPathFor, getViterbiPathsFor, initTransition, provideMatrix, setOutputStream, toString, toXML, traincheck, emitDataSet, getAlphabetContainer, getLength, getLogProbFor, getLogProbFor, getLogScoreFor, getLogScoreFor, getLogScoreFor, toStringpublic SamplingPhyloHMM(SamplingHMMTrainingParameterSet trainingParameterSet, String[] name, int[] emissionIdx, boolean[] forward, PhyloDiscreteEmission[] emission, TransitionElement... te) throws CloneNotSupportedException, IllegalArgumentException, WrongAlphabetException, Exception
trainingParameterSet - the ParameterSet that determines the training algorithm and contains the necessary Parametersname - the names of the statesemissionIdx - the indices of the emissions that should be used for each stateforward - a boolean array that indicates whether the symbol on the forward or the reverse complementary strand should be usedemission - the emissionste - the TransitionElements building a transitionCloneNotSupportedException - if the parameters or the emissions or transition elements could not be clonedIllegalArgumentException - if one of the parameters is not allowedWrongAlphabetException - if the alphabet does not fit the modelException - if something else went wrongpublic SamplingPhyloHMM(StringBuffer xml) throws NonParsableException
Storable.
Constructs an SamplingPhyloHMM out of an XML representation.xml - the XML representation as StringBufferNonParsableException - if the SamplingPhyloHMM could not be reconstructed out of
the StringBuffer xmlpublic String getInstanceName()
SequenceScoregetInstanceName in interface SequenceScoregetInstanceName in class SamplingHigherOrderHMMprotected void getNewParameters()
throws Exception
SamplingHigherOrderHMMgetNewParameters in class SamplingHigherOrderHMMException - if something went wrong