biopython v1.71.0 Bio.HMM.MarkovModel
Deal with representations of Markov Models.
Link to this section Summary
Functions
Calculate which symbols can be emitted in each state
Calculate which ‘from transitions’ are allowed for each state
Calculate which ‘to transitions’ are allowed for each state
Return an array of n random numbers summing to 1.0 (PRIVATE)
Link to this section Functions
Calculate which symbols can be emitted in each state.
Calculate which ‘from transitions’ are allowed for each state.
This looks through all of the trans_probs, and uses this dictionary to determine allowed transitions. It converts this information into a dictionary, whose keys are source states and whose values are lists of destination states reachable from the source state via a transition.
Calculate which ‘to transitions’ are allowed for each state.
This looks through all of the trans_probs, and uses this dictionary to determine allowed transitions. It converts this information into a dictionary, whose keys are destination states and whose values are lists of source states from which the destination is reachable via a transition.
Return an array of n random numbers summing to 1.0 (PRIVATE).