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

Link to this function _calculate_emissions()

Calculate which symbols can be emitted in each state.

Link to this function _calculate_from_transitions()

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.

Link to this function _calculate_to_transitions()

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.

Link to this function _gen_random_array()

Return an array of n random numbers summing to 1.0 (PRIVATE).