Open srinkadatta opened 5 months ago
Hi @srinkadatta we recently did an update of pathogenprofiler so this might have rise to the error. Are you running linux or macOS?
Hi @srinkadatta we recently did an update of pathogenprofiler so this might have rise to the error. Are you running linux or macOS?
I am running on linux.
Try this to create a new conda environment:
wget https://raw.githubusercontent.com/jodyphelan/pathogen-profiler/dev/conda/linux-latest.txt
mamba create --name mp --file linux-latest.txt
conda activate mp
pip install --force-reinstall git+https://github.com/jodyphelan/pathogen-profiler.git@dev
pip install --force-reinstall git+https://github.com/jodyphelan/malaria-profiler.git@dev
malaria-profiler update_db
After it should hopefully work for you.
Try this to create a new conda environment:
wget https://raw.githubusercontent.com/jodyphelan/pathogen-profiler/dev/conda/linux-latest.txt mamba create --name mp --file linux-latest.txt conda activate mp pip install --force-reinstall git+https://github.com/jodyphelan/pathogen-profiler.git@dev pip install --force-reinstall git+https://github.com/jodyphelan/malaria-profiler.git@dev malaria-profiler update_db
After it should hopefully work for you.
Thank you so much for your reply. It did work fine and the tool got successfully installed, but I am encountering an error when running the commands. Here is the error message I receive after using a VCF file as an input:
malaria-profiler profile -v test.ann.vcf -p p_fal -t 16 --txt --resistance_db Plasmodium_falciparum_3D7
Traceback (most recent call last):
File "/home/user2/miniconda3/envs/mp/bin/malaria-profiler", line 487, in
I think there might be a typo in the name of the dabase you are giving. Try specifying _Plasmodiumfalciparum instead of _Plasmodium_falciparum3D7. So the command will be:
malaria-profiler profile -v test.ann.vcf -p p_fal -t 16 --txt --resistance_db Plasmodium_falciparum
I think there might be a typo in the name of the dabase you are giving. Try specifying _Plasmodiumfalciparum instead of _Plasmodium_falciparum3D7. So the command will be:
malaria-profiler profile -v test.ann.vcf -p p_fal -t 16 --txt --resistance_db Plasmodium_falciparum
Thank you for your assistance. I am still facing an error. Here is the detailed error message: malaria-profiler profile -v test.ann.vcf.gz -p p_fal -t 16 --txt --resistance_db Plasmodium_falciparum [14:06:06] INFO Using ref file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.fasta db.py:587 INFO Using gff file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.gff db.py:587 INFO Using bed file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.bed db.py:587 INFO Using json_db file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.dr.json db.py:587 INFO Using variables file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.variables.json db.py:587 INFO Using geographic_model file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.geographic_model.pkl db.py:587 INFO Using ref file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.fasta db.py:587 INFO Using gff file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.gff db.py:587 INFO Using bed file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.bed db.py:587 INFO Using json_db file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.dr.json db.py:587 INFO Using variables file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.variables.json db.py:587 INFO Using geographic_model file: /home/user2/miniconda3/envs/mp/share/malaria_profiler//Plasmodium_falciparum.geographic_model.pkl db.py:587 [14:06:07] INFO Running snpEff vcf.py:119 [14:06:12] INFO Loading snpEff annotations
/home/user2/.local/lib/python3.10/site-packages/sklearn/utils/init.py:17: UserWarning: A NumPy version >=1.22.4 and <1.29.0 is required for this version of SciPy (detected version 2.0.0) from scipy.sparse import issparse
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some modules may need to be rebuilt, e.g., with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):
File "/home/user2/miniconda3/envs/mp/bin/malaria-profiler", line 487, in
Could you send me the output of the following command?:
conda list
I am consistently encountering an import error that states it is unable to import
bam_profiler
frompathogenprofiler
. After examining thepathogenprofiler
package, I found that there is no script or module namedbam_profiler
.Could you please advise on how to resolve this issue?