Closed dativapereus closed 7 months ago
Hi @dativapereus,
Thanks for letting us know. Pleae reinstall with the install instructions and let us know if that fixes the issues.
Dear Jodyphelan/Malaria-Profiler, Thank you for your response. Dativa Pereus PhD candidate - University of Nairobi BSc: Molecular Biology and Biotechnology MSc: Ethnobotany and Molecular Plant Systematic Assistant research fellow-MUHAS Email: @.*** Mobile Phone No: +255757630732
On Thu, Nov 16, 2023 at 5:37 PM Jody Phelan @.***> wrote:
Hi @dativapereus https://github.com/dativapereus,
Thanks for letting us know. Pleae reinstall with the install instructions and let us know if that fixes the issues.
— Reply to this email directly, view it on GitHub https://github.com/jodyphelan/malaria-profiler/issues/8#issuecomment-1814561608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZKSLOQB5XPH2FD4VBO6PTYEYQJFAVCNFSM6AAAAAA7MQQDGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGU3DCNRQHA . You are receiving this because you were mentioned.Message ID: @.***>
@jodyphelan I just finished the installation and reran using the code below:
Pf_WGS_TZ_VCF=/tank/dpereus/wgs_tz/raw_data/merged_wgs
res_db=/tank/dpereus/github_pipeline/malaria-db/db/Plasmodium_falciparum
conda activate malaria-profiler
malaria-profiler profile --txt --csv --pdf --ram 500 --resistance_db $res_db -v $Pf_WGS_TZ_VCF/wgstz_merged_all_chroms.vcf.gz \
-d $Pf_WGS_TZ_VCF/../malaria-profiler-results \
-p wgs_tz \
-t 80 --ram 500```
The new error I am getting is :
Traceback (most recent call last):
File "/home/dpereus/.conda/envs/malaria-profiler/bin/malaria-profiler", line 370, in <module>
args.func(args)
File "/home/dpereus/.conda/envs/malaria-profiler/bin/malaria-profiler", line 127, in main_profile
if results["species"]["prediction"] is None:
TypeError: 'NoneType' object is not subscriptable
Cleaning up after failed run
Exception ignored in atexit callback: <function cleanup at 0x7f548fb1f760>
Traceback (most recent call last):
File "/home/dpereus/.conda/envs/malaria-profiler/bin/malaria-profiler", line 43, in cleanup
O.write("* Database version: %s\n" % args.conf["version"]["commit"]) if ("conf" in vars(args) and "commit" in args.conf["version"]) else ""
TypeError: 'NoneType' object is not subscriptable
Can I check if you ran malaria-profiler update_db
?
If so you should specify just the name of the database not a path (e.g. --resistance_db falciparum
)
Hi @juuzia @jodyphelan @klausyboi , I have been trying to get this amazing tool to work but I am facing multiple issues. The biggest is that I am using vcf files. In the tutorial its says only to use
malaria-profiler
command, but that is not quite right , it should bemalaria-profiler profile
.Back to my issue : when I use a vcf file as suggested in your code
malaria-profiler -v </path/to/vcf> -p <sample_name> -t [threads] --txt
I get the following: Code:
malaria-profiler profile -v $Pf_WGS_TZ_VCF/wgstz_merged_all_chroms.vcf -d $Pf_WGS_TZ_VCF/../malaria-profiler-results -p wgs_tz -t 90 --ram 500 --txt --csv --pdf
Error:
malaria-profiler:85 Speciation can't be perfomrmed on a VCF file so a resistance database is needed.Specify with --resistance_db or --external_resistance_db
Upon adding the
--resistance_db
option is when I get issues. After the option, I provide the path to themalaria-db
directory ,exampletank/dpereus/github_pipeline/malaria-db/db/Plasmodium_falciparum/
that was created bymalaria profiler update_db
.I get the following error :
My effort to specify to the specific Pfalciparum directory in the
malaria-db
yield no fruits. Please help with the correct way of specifying theresistance_db
option