def test_read_header_from_bam(header_only_bam): with bam.BAMFile(str(header_only_bam)) as f: check_header_of_header_only_sam(f.header)
def test_six_records_read_sequential_bam(six_records_bam): with bam.BAMFile(str(six_records_bam)) as f: check_file(f)
def test_two_hundred_read_sequential_bam(two_hundred_bam): with bam.BAMFile(str(two_hundred_bam)) as f: num = len(list(f)) assert num == 200
def test_six_records_read_sequential_sam_gz(six_records_sam_gz): with bam.BAMFile(str(six_records_sam_gz)) as f: check_file(f)