Package org.biojava.bio.program.hmmer
Class HmmerProfileHMM
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.dp.SimpleMarkovModel
org.biojava.bio.dp.ProfileHMM
org.biojava.bio.program.hmmer.HmmerProfileHMM
- All Implemented Interfaces:
Serializable,MarkovModel,Changeable
This is a class for representing HMMER generated Profile HMM.
It differs from the normal ProfileHMM only in the states which are connected:
- there are no insert <-> delete transitions allowed
- there is no iO initial insert state (between begin and initial match states)
- there is not iN final insert state (between final match state and end state)
- Author:
- Lachlan Coin
- See Also:
-
Field Summary
Fields inherited from class org.biojava.bio.dp.SimpleMarkovModel
serialVersionUIDFields inherited from interface org.biojava.bio.dp.MarkovModel
ARCHITECTURE, PARAMETER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHmmerProfileHMM(Alphabet alpha, int columns, DistributionFactory matchFactory, DistributionFactory insertFactory, String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis is called by constructor in setting up the allowed transitions in the modelprotected static doublelog2(double x) protected EmissionStatemakeNewInsertState(String str, Annotation ann, int[] adv, Distribution dis) protected EmissionStatemakeNewMatchState(String str, Annotation ann, int[] adv, Distribution dis) doubletransScore(State from, State to, Symbol symFrom, Symbol symTo) Methods inherited from class org.biojava.bio.dp.ProfileHMM
columns, getDelete, getInsert, getMatchMethods inherited from class org.biojava.bio.dp.SimpleMarkovModel
addState, advance, containsTransition, createTransition, destroyTransition, emissionAlphabet, getChangeSupport, getWeights, heads, magicalState, removeState, setWeights, stateAlphabet, toString, transitionsFrom, transitionsToMethods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
-
Constructor Details
-
HmmerProfileHMM
protected HmmerProfileHMM(Alphabet alpha, int columns, DistributionFactory matchFactory, DistributionFactory insertFactory, String name) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
-
-
Method Details
-
connectModel
protected void connectModel() throws ChangeVetoException, IllegalSymbolException, IllegalTransitionException, IllegalAlphabetExceptionThis is called by constructor in setting up the allowed transitions in the model- Overrides:
connectModelin classProfileHMM- Throws:
ChangeVetoExceptionIllegalSymbolExceptionIllegalTransitionExceptionIllegalAlphabetException
-
transScore
public double transScore(State from, State to, Symbol symFrom, Symbol symTo) throws IllegalSymbolException - Throws:
IllegalSymbolException
-
log2
-
makeNewInsertState
-
makeNewMatchState
-