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

def Bio::HMM::MarkovModel::MarkovModelBuilder::_all_pseudo (   self,
  first_alphabet,
  second_alphabet 
) [private]

Return a dictionary with all counts set to a default value.

This takes the letters in first alphabet and second alphabet and
creates a dictionary with keys of two tuples organized as:
(letter of first alphabet, letter of second alphabet). The values
are all set to the value of the class attribute DEFAULT_PSEUDO.

Definition at line 64 of file MarkovModel.py.

00064                                                           :
        """Return a dictionary with all counts set to a default value.

        This takes the letters in first alphabet and second alphabet and
        creates a dictionary with keys of two tuples organized as:
        (letter of first alphabet, letter of second alphabet). The values
        are all set to the value of the class attribute DEFAULT_PSEUDO.
        """
        all_counts = {}
        for first_state in first_alphabet.letters:
            for second_state in second_alphabet.letters:
                all_counts[(first_state, second_state)] = self.DEFAULT_PSEUDO

        return all_counts
                
    def get_markov_model(self):


Generated by  Doxygen 1.6.0   Back to index