def append_sample_genotype_counts(main_curr, chunk_db):
    cmd = "attach ? as toMerge"
    main_curr.execute(cmd, (chunk_db, ))

    cmd = "INSERT INTO sample_genotype_counts \
           SELECT * FROM toMerge.sample_genotype_counts"
    main_curr.execute(cmd)

    cmd = "detach toMerge"
    main_curr.execute(cmd)
Append the sample_genotype_counts from a chunk_db
dataset/ETHPy150Open arq5x/gemini/gemini/gemini_merge_chunks.py/append_sample_genotype_counts