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

Pb of taxassign with ncbi nt database #9

Closed
meglecz opened this issue Apr 30, 2021 · 4 comments
Closed

Pb of taxassign with ncbi nt database #9

meglecz opened this issue Apr 30, 2021 · 4 comments

Comments

@meglecz
Copy link
Collaborator

meglecz commented Apr 30, 2021

vtam taxassign is running OK with custom database, but when using a freshly downloaded ncbi-nt (2021-04-26), I have an error message. (see bellow)

This is true when running vtam in an updated conda environment and also from singularity.

blast versions are the following:
Singularity> blastn -version
blastn: 2.5.0+
Package: blast 2.5.0, build Sep 20 2018 01:34:18

(vtam) emese@pcf-meglecz:~/singularity$ blastn -version
blastn: 2.2.31+
Package: blast 2.2.31, build Jan 7 2016 23:17:17

Error msg:

Traceback (most recent call last):
File "/opt/conda/envs/vtam/bin/vtam", line 8, in
sys.exit(main())
File "/opt/conda/envs/vtam/lib/python3.9/site-packages/vtam/init.py", line 273, in main
VTAM(sys.argv[1:])
File "/opt/conda/envs/vtam/lib/python3.9/site-packages/vtam/init.py", line 215, in init
CommandTaxAssign.main(db=db, mode=mode, asvtable_tsv=asvtable_tsv, output=output,
File "/opt/conda/envs/vtam/lib/python3.9/site-packages/vtam/CommandTaxAssign.py", line 174, in main
tax_assign_runner = RunnerTaxAssign(
File "/opt/conda/envs/vtam/lib/python3.9/site-packages/vtam/utils/RunnerTaxAssign.py", line 71, in init
blast_output_tsv = runner_blast.run_local_blast()
File "/opt/conda/envs/vtam/lib/python3.9/site-packages/vtam/utils/RunnerBlast.py", line 68, in run_local_blast
stdout, stderr = blastn_cline()
File "/opt/conda/envs/vtam/lib/python3.9/site-packages/Bio/Application/init.py", line 569, in call
raise ApplicationError(return_code, str(self), stdout_str, stderr_str)
Bio.Application.ApplicationError: Non-zero return code 2 from 'blastn -out /tmp/tmps_xrub66/RunnerBlast.py/blast_output.tsv -outfmt "6 qseqid sacc pident evalue qcovhsp staxids" -query /tmp/tmps_xrub66/RunnerTaxAssign.py/variant.fasta -db nt -evalue 1e-05 -qcov_hsp_perc 80 -num_threads 8 -dust yes', message 'BLAST Database error: Error: Not a valid version 4 database.'

@aitgon aitgon added bug Something isn't working wontfix This will not be worked on and removed bug Something isn't working wontfix This will not be worked on labels Apr 30, 2021
@aitgon
Copy link
Owner

aitgon commented Apr 30, 2021

This looks related to this issue bxlab/metaWRAP#266

It says that you must upgrade to blast+ 2.8.1 with the latest database

@aitgon aitgon closed this as completed Apr 30, 2021
@aitgon aitgon reopened this Apr 30, 2021
@meglecz
Copy link
Collaborator Author

meglecz commented May 1, 2021

Thanks! It works with blastn: 2.9.0+ in the conda enviroment both with ncbi-nt and the custom database (coi_blast_db_20200420)

Could you change the singularity recepie file to get the latest BLAST version, please?

@aitgon
Copy link
Owner

aitgon commented May 2, 2021

I have updated the singularity definition file with the more recent blastn 2.10.1 here: b1acfa9

Can you check it?

@meglecz
Copy link
Collaborator Author

meglecz commented May 3, 2021

It is working. Thanks!

@meglecz meglecz closed this as completed May 3, 2021
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

2 participants