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

Running somalier on bam files in s3? #72

Open
nspies-celsiustx opened this issue Mar 11, 2021 · 3 comments
Open

Running somalier on bam files in s3? #72

nspies-celsiustx opened this issue Mar 11, 2021 · 3 comments

Comments

@nspies-celsiustx
Copy link

This is a great tool -- thanks for developing and sharing with the community. Using the precompiled binaries for somalier I'm not able to read directly from s3. I've verified I can samtools view the file directly from s3. The error I get is

Error: unhandled exception: unable to open file:s3://path-to-my-files-here [OSError]

Since somalier is so fast, downloading the files is the bottleneck. It looks like hts-nim should be able to read from s3. Can you give an outline of how to run somalier on s3 files (eg how to recompile with s3 support)?

@brentp
Copy link
Owner

brentp commented Mar 11, 2021

hi, there may be a regression in how I build the binary such that S3 is not supported. I will look into it for next release. Thanks for reporting.
Just to be sure, you can run samtools view on a bam file for which you see this error.

@nspies-celsiustx
Copy link
Author

Just to be sure, you can run samtools view on a bam file for which you see this error.

Thanks for the quick response! Yes, I can samtools view s3://path-to-my-file-here.bam | less but get the above error from somalier.

@cfrech-ctx
Copy link

@brentp - has there been an update on this? I just tried with the latest version and still see the above error.

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

3 participants