Logo Search packages:      
Sourcecode: python-biopython version File versions

def Bio::HMM::MarkovModel::MarkovModelBuilder::set_transition_score (   self,
  from_state,
  to_state,
  probability 
)

Set the probability of a transition between two states.

Raises:
KeyError if the transition is not allowed.

Definition at line 213 of file MarkovModel.py.

00213                                                                      :
        """Set the probability of a transition between two states.

        Raises:
        KeyError if the transition is not allowed.
        """
        if self.transition_prob.has_key((from_state, to_state)):
            self.transition_prob[(from_state, to_state)] = probability
        else:
            raise KeyError("Transition from %s to %s is not allowed."
                           % (from_state, to_state))

    def set_transition_pseudocount(self, from_state, to_state, count):


Generated by  Doxygen 1.6.0   Back to index