Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastenloc reads bgzipped inputs incorrectly #22

Open
probalica19 opened this issue Jan 26, 2022 · 1 comment
Open

fastenloc reads bgzipped inputs incorrectly #22

probalica19 opened this issue Jan 26, 2022 · 1 comment

Comments

@probalica19
Copy link

Dear William,

I noticed hat if the provided input is compressed using bgzip (rather than gzip), fastENLOC will read all of its contents except the last line without reporting any error. Is this expected behavior?

As stated in the bgzip manual, bgzip is compatible with gzip, however going through fastenloc code I figured that the library used to decompress files is boost::iostreams::gzip_decompressor(), and in htslib github I found this issue which may be related to the issue I am experiencing with fastENLOC. Since bgzip is at least in my experience very often used especially with vcf files, it could be useful mentioning this in fastenloc documentation.

I am looking forward to hearing your thoughts on this. Thanks in advance!

Best,

probalica19

@probalica19
Copy link
Author

Hi William,

I'd also like to add to my previous meesage that GTEx v8 eQTL annotations that are provided on this github page also seem to be bgzipped. When I run fastENLOC with those files, and then rerun with annotations that I have decompressed and then compressed again with gzip, I get the snp-level output that differs in a single snp, which also appears to be the snp in the last line of the eQTL annotation file provided.

Best,

probalica

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant