Dear xbrianh,
I tried to use bgzip to read or write bgzip files, but I got this error:
module 'bgzip' has no attribute 'Reader'
my testing code:
import bgzip
with open("input.recode.vcf.gz",'rb') as raw:
with bgzip.Reader(raw) as fh:
for line in fh:
line = line.strip()
if line.startswith("##CHROM"):
print(line)
Did I miss somthing?
Best regards,
sandy
Dear xbrianh,
I tried to use bgzip to read or write bgzip files, but I got this error:
module 'bgzip' has no attribute 'Reader'
my testing code:
Did I miss somthing?
Best regards,
sandy