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
Installing with support for google storage #592
Comments
Hi, thanks for reporting. The issue is that only main htslib is built when doing a pip/setup.py install, not any of the plugins. There are two immediate solutions:
Longer term, I will look into what is involved building htslib plugins via setup.py. I left them out originally as I was worried that building plugins might require more exotic system libraries to be present. |
I checked out setup.py and it first tries whatever is in Turns out for whatever reason |
I'll also note here for any other users I have to set this env var for bucket authentication to work: |
In a google colab notebook: import os !apt-get install libbz2-dev libcurl4-openssl-dev Worked for me. |
Thanks. Could you please check if
export HTSLIB_CONFIGURE_OPTIONS="--enable-gcs"
works?
…On 10/01/2019 19:11, David L Gibbs wrote:
Any update on this? I'm having trouble getting the configuration to pick
up on the HTSLIB_CONFIGURE_OPTIONS
I'm doing:
HTSLIB_CONFIGURE_OPTIONS="--enable-gcs"
pip3 install pysam -v --force-reinstall --no-binary :all:
|# pysam: HTSLIB_CONFIGURE_OPTIONS=None # pysam: htslib configure
options: None |
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#592 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEOKYFv7cUQgsUjuRQwHdfkNxPlMYhtiks5vB5BVgaJpZM4RKTx_>.
|
Yes that works! !export HTSLIB_CONFIGURE_OPTIONS="--enable-gcs" |
Small problem: I can only read public bam files. Have installed via conda... |
Apparently @AndreasHeger do you know if pysam can load the plugin |
@gokceneraslan: The best way for this to work would be to compile pysam with At runtime, pysam would then be in a position to pick up the previously-built hfile_gcs.so/etc plugins that were installed along with a |
I had this same issue with version 0.16.0.1 and I found that the problem was with the pysam binary packages. Running the pip install with the "--no-binary=pysam" option fixed it without any changes to HTSLIB_CONFIGURE_OPTIONS needed. |
I had the same errors as OP with python3.10.4 and pysam 0.16.0.1. |
I'm unable to get pysam to work with google storage urls, here's what I'm doing:
export HTSLIB_CONFIGURE_OPTIONS="--enable-plugins --enable-libcurl --enable-gcs"
pip3 install -v --no-use-wheels pysam
It seems like the compiler is picking up these flags:
But I still get the following error:
import pysam
pysam.AlignmentFile('gs://align.bam')
OSError: [Errno 93] could not open alignment file
gs://align.bam
: Protocol not supportedAny help would be greatly appreciated!!
The text was updated successfully, but these errors were encountered: