Package obitools :: Package word :: Module binary
[hide private]
[frames] | no frames]

Module binary

source code

Created on 2 juil. 2009


Author: coissac

Functions [hide private]
 
bitCount(x) source code
iterator
allWordIterator(size)
Iterate thought the list of all DNA word of size `size`.
source code
int
wordDist(w1, w2)
estimate Hamming distance between two words of the same size.
source code
 
homoMax(word, size) source code
 
countA(word, size) source code
 
countT(word, size) source code
 
countAT(word, size) source code
 
countC(word, size) source code
 
countG(word, size) source code
 
countCG(word, size) source code
 
decodeWord(word, size) source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

allWordIterator(size)

source code 

Iterate thought the list of all DNA word of size `size`.

Parameters:
  • size (int) - size of the DNA word
Returns: iterator
an iterator on DNA word (int)

wordDist(w1, w2)

source code 

estimate Hamming distance between two words of the same size.

Parameters:
  • w1 (str) - the first word
  • w2 (str) - the second word
Returns: int
the count of difference between the two words