@pytest.fixture(scope='module', autouse=True)
def create_kmc_db():
    '\n    Set up tests and clean up after.\n    '
    kmer_len = 17
    memory = 2
    cutoff_min = 1
    sig_len = 9
    reads_src = 'input.fastq'
    reads = ('GGCATTGCATGCAGTNNCAGTCATGCAGTCAGGCAGTCATGGCATGCAACGACGATCAGTCATGGTCGAG', 'GGCATTGCATGCAGTNNCAGTCATGCAGTCAGGCAGTCATGGCATGCAACGACGATCAGTCATGGTCGAG', 'GTCGATGCATCGATGCTGATGCTGCTGTGCTAGTAGCGTCTGAGGGCTA')
    _save_reads_as_fastq(reads, reads_src)
    kmers = _cout_kmers(reads, kmer_len)
    absent_kmers = _generate_not_existing_kmers(kmers, kmer_len)
    _run_kmc(cutoff_min, kmer_len, memory, sig_len, reads_src)
    result = {'kmers': kmers, 'kmer_len': kmer_len, 'sig_len': sig_len, 'absent_kmers': absent_kmers}
    (yield result)
    os.remove(reads_src)
    os.remove('kmc_db.kmc_pre')
    os.remove('kmc_db.kmc_suf')
Set up tests and clean up after.
@pytest.fixture(scope='module', autouse=True)
def create_kmc_db():
    '\n    \n    '
    kmer_len = 17
    memory = 2
    cutoff_min = 1
    sig_len = 9
    reads_src = 'input.fastq'
    reads = ('GGCATTGCATGCAGTNNCAGTCATGCAGTCAGGCAGTCATGGCATGCAACGACGATCAGTCATGGTCGAG', 'GGCATTGCATGCAGTNNCAGTCATGCAGTCAGGCAGTCATGGCATGCAACGACGATCAGTCATGGTCGAG', 'GTCGATGCATCGATGCTGATGCTGCTGTGCTAGTAGCGTCTGAGGGCTA')
    _save_reads_as_fastq(reads, reads_src)
    kmers = _cout_kmers(reads, kmer_len)
    absent_kmers = _generate_not_existing_kmers(kmers, kmer_len)
    _run_kmc(cutoff_min, kmer_len, memory, sig_len, reads_src)
    result = {'kmers': kmers, 'kmer_len': kmer_len, 'sig_len': sig_len, 'absent_kmers': absent_kmers}
    (yield result)
    os.remove(reads_src)
    os.remove('kmc_db.kmc_pre')
    os.remove('kmc_db.kmc_suf')