def _cout_kmers(reads, kmer_len):
    ' Simple k-mer counting routine. '
    kmers = {}
    for read in reads:
        for start in range(0, ((len(read) - kmer_len) + 1)):
            kmer = read[start:(start + kmer_len)]
            if ('N' in kmer):
                continue
            rev = kmer_utils.rev_comp(kmer)
            if (rev < kmer):
                kmer = rev
            if (kmer in kmers.keys()):
                kmers[kmer] += 1
            else:
                kmers[kmer] = 1
    return kmers
Simple k-mer counting routine.
def _cout_kmers(reads, kmer_len):
    '  '
    kmers = {}
    for read in reads:
        for start in range(0, ((len(read) - kmer_len) + 1)):
            kmer = read[start:(start + kmer_len)]
            if ('N' in kmer):
                continue
            rev = kmer_utils.rev_comp(kmer)
            if (rev < kmer):
                kmer = rev
            if (kmer in kmers.keys()):
                kmers[kmer] += 1
            else:
                kmers[kmer] = 1
    return kmers