def set_kmers(kmer_opt, max_read_len):
logger.debug("<STR_LIT>".format(kmer_opt))<EOL>if kmer_opt == "<STR_LIT>":<EOL><INDENT>if max_read_len >= <NUM_LIT>:<EOL><INDENT>kmers = [<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>]<EOL><DEDENT>else:<EOL><INDENT>kmers = [<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>]<EOL><DEDENT>logger.debug("<STR_LIT>"<EOL>"<STR_LIT>".format(max_read_len, kmers))<EOL><DEDENT>elif len(kmer_opt.split()) > <NUM_LIT:1>:<EOL><INDENT>kmers = kmer_opt.split()<EOL>if kmers[<NUM_LIT:0>]<<NUM_LIT:15> or kmers[-<NUM_LIT:1>]><NUM_LIT:255> or is_odd(kmers):<EOL><INDENT>kmers = []<EOL>logger.debug("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>".format(kmers))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>kmers = []<EOL>logger.debug("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>return kmers<EOL>
Returns a kmer list based on the provided kmer option and max read len.

    Parameters
    ----------
    kmer_opt : str
        The k-mer option. Can be either ``'auto'``, ``'default'`` or a
        sequence of space separated integers, ``'23, 45, 67'``.
    max_read_len : int
        The maximum read length of the current sample.

    Returns
    -------
    kmers : list
        List of k-mer values that will be provided to megahit.