Skip to content

BGZIPMalformedHeaderException: Block gzip magic not found in header #88

@vepain

Description

@vepain

I have a asm.gfa.gz file for which the testing command bgzip -t asm.gfa.gz returns a non-error code.

Also, bzip -d asm.gfa.gz works.

However, I can't read the file through the Python API:

with (
  filepath.open("rb") as f_in,
  bgzip.BGZipReader(f_in) as g_in,
):
  text_in = io.TextIOWrapper(g_in, encoding="utf-8")
  for line in text_in:
    print(line)
  text_in.close()

Error log attached
If necessary, I can send you in private the asm.gfa.gz file

err.log

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