Table of Contents

Class: DiscretePairDistribution /amd/bernoulli/1/home/abt_vin/georgi/hmm/0.7/ghmm//ghmmwrapper/ghmm.py

A DiscreteDistribution over TWO Alphabets: The discrete distribution is parameterized by the vector of probabilities. To get the index of the vector that corresponds to a pair of characters use the getPairIndex method.

Here comes all the Pair HMM stuff ##########

Base Classes   
DiscreteDistribution
Methods   
__init__
getCounts
getEmptyProbabilityVector
getPairIndex
setPairProbability
  __init__ 
__init__ (
        self,
        alphabetX,
        alphabetY,
        offsetX,
        offsetY,
        )

construct a new DiscretePairDistribution @param alphabetX: Alphabet object for sequence X @param alphabetY: Alphabet object for sequence Y @param offsetX: number of characters the alphabet of sequence X consumes at a time @param offsetX: number of characters the alphabet of sequence Y consumes at a time

  getCounts 
getCounts (
        self,
        sequenceX,
        sequenceY,
        )

extract the pair counts for aligned sequences sequenceX and sequenceY @param sequenceX: string for sequence X @param sequenceY: strinf for sequence Y @return: a list of counts

  getEmptyProbabilityVector 
getEmptyProbabilityVector ( self )

get an empty probability vector for this distribution (filled with 0.0) @return: list of floats

  getPairIndex 
getPairIndex (
        self,
        charX,
        charY,
        )

get the index of a pair of two characters in the probability vector (if you use the int representation both values must be ints) @param charX: character chain or int representation @param charY: character chain or int representation @return: the index of the pair in the probability vector

  setPairProbability 
setPairProbability (
        self,
        charX,
        charY,
        probability,
        )

set the probability of the [air charX and charY to probability @param charX: character chain or int representation @param charY: character chain or int representation @param probability: probability (0<=float<=1)


Table of Contents

This document was automatically generated on Fri Jan 20 14:56:59 2006 by HappyDoc version WORKING