Closed ponomarevsy closed 8 months ago
I used these commands to create TBProfiler environment:
[user@node]» module load mamba/2022.11
[user@node]» mamba create -n tbprofiler-5.0.0-python3 -c bioconda tb-profiler
Hi @ponomarevsy
This may indicate you are using an old version of the joblib library. Can you verify that you have a version >= 1.3.0?
You can use mamba list --explicit | grep joblib
to check. If it is low try upgrading with mamba install joblib=1.3.0
Thank you, @jodyphelan! You are correct, I have an older version of joblib:
(tbprofiler-5.0.0-python3) [user@node](:|✔)» mamba list --explicit | grep joblib
https://repo.anaconda.com/pkgs/main/linux-64/joblib-1.2.0-py310h06a4308_0.conda
(tbprofiler-5.0.0-python3) [user@node](:|✔)» mamba list joblib
# packages in environment at /pathto/mambaforge/2022.11/envs/tbprofiler-5.0.0-python3:
#
# Name Version Build Channel
joblib 1.2.0 py310h06a4308_0
I am going to upgrade joblib and re-run the test...
I am getting a bcftools related error now:
bcftools: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory
The bcftools version is:
bcftools 1.18 h8b25389_0 bioconda
and the openssl version is:
openssl 3.1.3 hd590300_0 conda-forge
I found this post: https://github.com/WGLab/NanoCaller/issues/29 and will see if I can downgrade bcftools...
Looks like bcftools 1.14 comes with gsl 2.6 (I had bcftools 1.18 and gsl 2.7.1) and that's what we want. And now I am getting a new (Samtools) error:
samtools: /pathto/mambaforge/2022.11/envs/tbprofiler-5.0.0-python3/bin/../lib/libtinfow.so.6: no version information
available (required by samtools)
samtools: /pathto/mambaforge/2022.11/envs/tbprofiler-5.0.0-python3/bin/../lib/libncursesw.so.6: no version information available (required by samtools)
samtools: /pathto/mambaforge/2022.11/envs/tbprofiler-5.0.0-python3/bin/../lib/libncursesw.so.6: no version information available (required by samtools)
Failed to read from standard input: unknown file type
Failed to read from standard input: unknown file type
Samtools version:
samtools 1.18 h50ea8bc_1 bioconda
Ncurses version:
ncurses 6.4 h6a678d5_0
Downgraded Samtools to samtools 1.14 hb421002_0 bioconda
and Ncurses to ncurses 6.2 he6710b0_1
.
It runs fine until it crashes with:
[10:59:55] WARNING Please ensure that this BAM was made using the same reference as in the database. If you are not sure what profiler.py:13
reference was used it is best to remap the reads.
INFO Running variant calling bam.py:85
Calling variants: 0%| | 0/58 [00:00<?, ?it/s]ERROR:root:[samclip] samclip 0.4.0 by Torsten Seemann (@torstenseemann)
[samclip] Loading: /pathto/mambaforge/2022.11/envs/tbprofiler-5.0.0-python3/share/tbprofiler//tbdb.fasta.fai
[samclip] Found 1 sequences in /pathto/mambaforge/2022.11/envs/tbprofiler-5.0.0-python3/share/tbprofiler//tbdb.fasta.fai
[samclip] Total SAM records 1366, removed 222, allowed 39, passed 1144
[samclip] Header contained 20 lines
[samclip] Done.
Failed to read from standard input: unknown file type
Failed to read from standard input: unknown file type
I've decided to start from scratch and build everything manually, and, after much suffering (installing the missing dependencies), was able to finish the TBProfile test without errors.
Dear TBProfiler experts,
I am getting this error in v5 of TBProfiler (tried installing via Anaconda and via Mamba and getting the same error):
"TypeError: Parallel.init() got an unexpected keyword argument 'return_as'"
The OS is RHEL 7.9. Please let me know if you have any clues. Thanks!