def test_cat_to_file(): target = results_dir + "/catted.fastq" reads_1 = files.open(testfiles["reads_1.fastq"]) reads_2 = files.open(testfiles["reads_2.fastq"]) out = gt.OutputFile(target) gt.cat([reads_1, reads_2]).write_stream(out) c = 0 ids = [] with open(target) as f: for l in f: if c % 4 == 0: ids.append(l.strip()) c += 1 assert len(set(ids)) == 20000
def cat(reads): return gt.cat(reads)