Skip to content

module 'bgzip' has no attribute 'Reader' #26

@sandyplus

Description

@sandyplus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions