wdecoster / cramino

A *fast* tool for BAM/CRAM quality evaluation, intended for long reads
MIT License
124 stars 11 forks source link

thread 'main' panicked at 'Unexpected type of Aux I32(8) error #14

Closed prasundutta87 closed 1 year ago

prasundutta87 commented 1 year ago

Hi,

I just wanted to try out Cramino and I installed it using conda. However, on testing it on one of the bam files produced using pbmm2, I am getting this error-

thread 'main' panicked at 'Unexpected type of Aux I32(8)', src/extract_from_bam.rs:164:18 note: run with 'RUST_BACKTRACE=1' environment variable to display a backtrace

This is the cramino command I am using-

time cramino -t 8 --hist --karyotype second_hg38.movie.bam

Any workaround? Is it a bug in the code by any chance? I haven't installed Rust yet, but I guess that it should be installed separately?

Regards, Prasun

PS-Just to add, I installed Rust (v1.70.0), but the error still persists. I am using cramino v0.9.7 which I installed using conda

wdecoster commented 1 year ago

Hi Prasun,

Thanks for the feedback. I have identified the problem, but I am not sure what triggers this. Are you on mac or linux? I'll give you a test binary and see if that solves it... Installing Rust is not necessary.

Wouter

prasundutta87 commented 1 year ago

Hi Wouter,

Thanks for your reply. It's a Linux based HPC server.

Regards, Prasun

wdecoster commented 1 year ago

Please unzip and try this binary: cramino.gz

prasundutta87 commented 1 year ago

Hi Wouter,

Just tried the command and getting these errors when ran ./cramino:

./cramino: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./cramino)
./cramino: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./cramino)
./cramino: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./cramino)
./cramino: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./cramino)

I am working on a shared HPC server, so I won't be able to install it. My glibc version is ldd (GNU libc) 2.17. I tried running the binary after loading a conda env where the current version of cramino from bioconda was already installed assuming that this requirement will be fulfilled, but still getting these errors. Any workaround? The HPC OS is CentOS Linux.

Regards, Prasun

wdecoster commented 1 year ago

Hi Prasun,

No worries, here is another binary to test. Thank you for being so patient! cramino-musl.zip

Wouter

prasundutta87 commented 1 year ago

No problem at all, Wouter! Thanks for sending this across. I will try this out.

Regards, Prasun

prasundutta87 commented 1 year ago

Hi Wouter,

This version works. Thanks. Will explore it more and let you know if I have any more questions.

Regards, Prasun

wdecoster commented 1 year ago

Thanks for the feedback, I will make a release with those changes then :-)