Closed zpliu1126 closed 1 year ago
the writer expects bytes. If you have strings you can easily convert them into bytearrays and pass to it:
with open("my_bgzipped_file.gz", "wb") as raw:
with bgzip.BGZipWriter(raw) as fh:
fh.write(b"11") #or bytes('11', encoding='ascii')
Hi developer~
I test the bgzip in jupyter,and it failed.
error log