Hello,
Could someone please explain the difference between .gz and .bgz format - what are the advantages of one format over the other?
I would also like to know a way to convert fastq.gz to fastq.bgz files (and vice versa).
Thanks in advance for the help.
- Akhil
why ?
Maybe due to "Modulo well-known bugs in Java gunzip implementations, etc."
Yup, you beat me by a minute :)
Good question. Apparently the default gzip implementation used to not be able to handle that. I know that was an issue until at least a year or two ago, not sure if it still is.
Just an addition, but apparently bgzip can decompress gzipped files, and gzip can decompress bgzipped files.
Correct, and I forgot a
b
in bgzip.Is it faster than
bcftools view my.vcf.gz -Oz -o my_bgziped.vcf.gz
?Yes, that actually parses the file, which is unnecessary when just running it through bgzip
I tested it quickly and it is a lot faster (talkings days for
bcftools
compared to just a couple of hours withzcat
)