def countUniqueKmers(self, seq, k_length):

        unique_kmers = 0
        non_unique_kmers = 0

        kmers = set([seq[i:i+k_length] for i in range(0, len(seq)-k_length)])

        for kmer in kmers:

            if self.kmer2entry[kmer] == 1:
                unique_kmers += 1
            else:
                non_unique_kmers += 1

        return (unique_kmers, non_unique_kmers)
receives a template and returns a formatted version of it
dataset/ETHPy150Open CGATOxford/cgat/scripts/fasta2unique_kmers.py/KmerCounter.countUniqueKmers--crossover with--dataset/ETHPy150Open cloudify-cosmo/packman/packman/templater.py/Handler._template_formatter