Package org.biojava.bio.dp.twohead
Class PairwiseDP
- java.lang.Object
-
- org.biojava.bio.dp.DP
-
- org.biojava.bio.dp.twohead.PairwiseDP
-
- All Implemented Interfaces:
Serializable
public class PairwiseDP extends DP implements Serializable
Algorithms for dynamic programming (alignments) between pairs of SymbolLists. Based on a single-head DP implementation by Matt Pocock.- Author:
- Thomas Down, Matthew Pocock
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.biojava.bio.dp.DP
DP.ReverseIterator
-
-
Constructor Summary
Constructors Constructor Description PairwiseDP(MarkovModel mm, CellCalculatorFactoryMaker ccfm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublebackward(SymbolList[] seqs, ScoreType scoreType)DPMatrixbackwardMatrix(SymbolList[] seqs, DPMatrix d, ScoreType scoreType)DPMatrixbackwardMatrix(SymbolList[] seqs, ScoreType scoreType)doubleforward(SymbolList[] seqs, ScoreType scoreType)DPMatrixforwardMatrix(SymbolList[] seqs, DPMatrix d, ScoreType scoreType)DPMatrixforwardMatrix(SymbolList[] seqs, ScoreType scoreType)voidupdate()StatePathviterbi(SymbolList[] seqs, ScoreType scoreType)-
Methods inherited from class org.biojava.bio.dp.DP
backwardTransitions, backwardTransitionScores, flatView, forwardsBackwards, forwardTransitions, forwardTransitionScores, generate, getBackwardTransitions, getBackwardTransitionScores, getDotStatesIndex, getForwardTransitions, getForwardTransitionScores, getModel, getStates, lockModel, scoreWeightMatrix, scoreWeightMatrix, setModel, stateList, unlockModel
-
-
-
-
Constructor Detail
-
PairwiseDP
public PairwiseDP(MarkovModel mm, CellCalculatorFactoryMaker ccfm) throws IllegalSymbolException, IllegalTransitionException, BioException
-
-
Method Detail
-
backward
public double backward(SymbolList[] seqs, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
backwardin classDP- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
backwardMatrix
public DPMatrix backwardMatrix(SymbolList[] seqs, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
backwardMatrixin classDP- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
backwardMatrix
public DPMatrix backwardMatrix(SymbolList[] seqs, DPMatrix d, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
backwardMatrixin classDP- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
forward
public double forward(SymbolList[] seqs, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
forwardin classDP- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
forwardMatrix
public DPMatrix forwardMatrix(SymbolList[] seqs, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
forwardMatrixin classDP- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
forwardMatrix
public DPMatrix forwardMatrix(SymbolList[] seqs, DPMatrix d, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
forwardMatrixin classDP- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
viterbi
public StatePath viterbi(SymbolList[] seqs, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
viterbiin classDP- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
-