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

Problem with reading gzipped dosage files #44

Open
Sodbo opened this issue May 4, 2017 · 4 comments
Open

Problem with reading gzipped dosage files #44

Sodbo opened this issue May 4, 2017 · 4 comments

Comments

@Sodbo
Copy link
Member

Sodbo commented May 4, 2017

I ran ProbABEL using palinear (which was compiled from read-gzipped-genotypes branch) to conduct GWAS using gzipped DOSAGE file. (please find attached gaussian_probabel_error.txt)

While reading gunzipped DOSAGE file, ProbABEL terminated with following error log:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::iostreams::gzip_error> >' what(): gzip error: iostream error Aborted (core dumped)

I wrote simple code read_gz.cpp (attached) which reproduces what ProbABEL's gendata.cpp does. This script ends up with same error on same DOSAGE gzipped. Moreover, I found, that error pops up after reading last line of DOSAGE file.
My suggestion is that this error can be referred to the known bug in C++ Boost library
https://svn.boost.org/trac/boost/ticket/6994

Users have provided patch for zlib.cpp from BOOST library which solve the problem.
Thus, usage of ProbABEL-read-gzipped-files is limited due to the bug in BOOST library.
I was able to patch zlib.cpp after which read_gz.cpp started work well om DOSAGE gzipped file.
But it takes too much efforts from my side to try to compile ProbABEL with patched boost library, as ProbABEL uses automake (or whatever).

read_gz.cpp.txt
gaussian_probabel_error.txt

@lckarssen
Copy link
Member

lckarssen commented May 5, 2017

Thanks for reporting this! Excellent bug report!
I noticed you are running v1.58 of the Boost libraries. The most recent version in v1.64.
Could you try and see if the bug is still present in that version?

@lckarssen
Copy link
Member

Hi @Sodbo, hav eyou had time to see whether the issue persists after using a more recent version of the Boost libs?

@odedor
Copy link

odedor commented May 12, 2019

Hi, I'm seeing the same issue, was it fixed?
If so, from which version is it fixed?

@lckarssen
Copy link
Member

@odedor I don't think this was fixed anywhere.

Unfortunately, we have not managed to secure any funding for ProbABEL maintenance and/or development, so we have had to stop working on it. Feel free to submit a patch or pull request with a fix if you manage to find a solution.

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

No branches or pull requests

3 participants