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

BLAT can't find libbz2 in the captus biocontainer #8

Open
TomHarrop opened this issue Apr 3, 2024 · 3 comments
Open

BLAT can't find libbz2 in the captus biocontainer #8

TomHarrop opened this issue Apr 3, 2024 · 3 comments

Comments

@TomHarrop
Copy link

TomHarrop commented Apr 3, 2024

Hi @edgardomortiz ,

BLAT can't find libbz2 in the captus biocontainer (version captus_1.0.1--pyhdfd78af_2)

/usr/local/lib/python3.12/site-packages/dependencies/blat/blat_37x1_linux: error while loading shared libraries: libbz2.so.1: cannot open shared object file: No such file or directory
...done in 0 seconds

I submitted a PR over at bioconda/bioconda-recipes#46943, please comment there if there are any issues.

Cheers,
Tom

@TomHarrop TomHarrop changed the title libbz2.so.1 missing from biocontainer BLAT can't find libbz2 in the captus biocontainer Apr 4, 2024
@edgardomortiz
Copy link
Owner

Hi @TomHarrop ,

Honestly I have not used biocontainers so I never encountered this issue before. I bundled BLAT because prior to v36 there were some inconsistencies in the results between Mac and Linux. I guess the best alternative is to install BLAT from bioconda and tell Captus to use that copy instead of the bundled one with --blat_path blat

Let me know if this could work, and thanks for the contribution

@TomHarrop
Copy link
Author

TomHarrop commented Apr 4, 2024

Thanks @edgardomortiz.

Yes, I think it's probably better (in theory) to use dependencies from the package manager if they work, especially since the Captus docs recommend installing via conda. If the previous captus conda package worked on Linux, it was using libbz2 from the host system, and that is not ideal for reproducibility. You can always pin the version of BLAT you need.

Meanwhile, the "fix" has been merged into bioconda and the new biocontainer works, so it's up to you :)

Cheers,
Tom

@edgardomortiz
Copy link
Owner

@TomHarrop I think I will keep your solution, thanks for taking the time to do this! I tried using a BLAT installed from bioconda yesterday a got this error:

 /Users/emortiz/micromamba/envs/captus-1.0.0/bin/blat: line 1: syntax error near unexpected token `newline'
/Users/emortiz/micromamba/envs/captus-1.0.0/bin/blat: line 1: `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'

So for the time being the bundled version will have to do it.

Edgardo

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

2 participants