bx.intseq.ngramcount module

Tools for counting words (n-grams) in integer sequences.

bx.intseq.ngramcount.count_ngrams(ints, n, radix)

Count the number of occurrences of each possible length n word in ints (which contains values from 0 to radix). Returns an array of length radix ** n containing the counts.