Please someone help me. How to use qiime brocc?

First question:

When I use qiime2 brocc plugin, I find this error

Code: qiime brocc classify-brocc --i-query query.qza --o-classification query-brocc.qza
Result:
Plugin error from brocc:
  Command '['blastn', '-query', '/tmp/qiime2/xiaoe/data/50c33ae5-dfe9-4b83-a607-8579e0a27090/data/dna-sequences.fasta', '-evalue', '1e-05', '-outfmt', '7', '-db', 'nt', '-max_target_seqs', '100', '-out', '/tmp/tmp14oivpy7']' returned non-zero exit status 2.

Debug info has been saved to /tmp/qiime2-q2cli-err-9vexhi0r.log

question:Can anyone tell me how to fix this, I'm using the sample file provided on the brocc website?

Second

I want to annotate marker genes of archaea, at the moment I don't know how to do it, so I used brocc's method, is there any other way than that, thanks.

Hello @wupengjie,

Welcome to the forums! :qiime2:

Can you post the log file listed in that error? /tmp/qiime2-q2cli-err-9vexhi0r.log We can take a look at it and see if it tells us more.

P.S. You don't have to post twice. We read the posts here!

1 Like

Hello, colinbrislawn,the results are as follows:

BLAST Database error: Could not find volume or alias file (nt.01) referenced in alias file (/mnt/f/blast/nt/nt).
Traceback (most recent call last):
  File "/home/xiaoe/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/q2cli/commands.py", line 339, in __call__
    results = action(**arguments)
  File "<decorator-gen-470>", line 2, in classify_brocc
  File "/home/xiaoe/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/sdk/action.py", line 234, in bound_callable
    outputs = self._callable_executor_(scope, callable_args,
  File "/home/xiaoe/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/sdk/action.py", line 381, in _callable_executor_
    output_views = self._callable(**view_args)
  File "/home/xiaoe/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/q2_brocc/plugin_setup.py", line 59, in classify_brocc
    subprocess.run(blast_cmd, check=True)
  File "/home/xiaoe/miniconda3/envs/qiime2-2022.8/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['blastn', '-query', '/tmp/qiime2/xiaoe/data/50c33ae5-dfe9-4b83-a607-8579e0a27090/data/dna-sequences.fasta', '-evalue', '1e-05', '-outfmt', '7', '-db', 'nt', '-max_target_seqs', '100', '-out', '/tmp/tmpz5lsxcev']' returned non-zero exit status 2.

My date is store in the follows file:

# /mnt/f/blast/nt$ tree

├── nt-nucl-metadata.json
├── nt.00.nhd
├── nt.00.nhi
├── nt.00.nhr
├── nt.00.nin
├── nt.00.nnd
├── nt.00.nni
├── nt.00.nog
├── nt.00.nsq
├── nt.00.tar.gz
├── nt.01.tar.gz
├── nt.02.tar.gz
├── nt.03.tar.gz
├── nt.04.tar.gz
├── nt.05.tar.gz
├── nt.06.tar.gz
├── nt.07.tar.gz
├── nt.08.tar.gz
├── nt.09.tar.gz
├── nt.10.tar.gz
├── nt.11.tar.gz
├── nt.12.tar.gz
├── nt.13.tar.gz
├── nt.14.tar.gz
├── nt.15.tar.gz
├── nt.16.tar.gz
├── nt.17.tar.gz
├── nt.18.tar.gz
├── nt.19.tar.gz
├── nt.20.tar.gz
├── nt.21.tar.gz
├── nt.22.tar.gz
├── nt.23.tar.gz
├── nt.24.tar.gz
├── nt.25.tar.gz
├── nt.26.tar.gz
├── nt.27.tar.gz
├── nt.28.tar.gz
├── nt.29.tar.gz
├── nt.30.tar.gz
├── nt.31.tar.gz
├── nt.32.tar.gz
├── nt.33.tar.gz
├── nt.34.tar.gz
├── nt.35.tar.gz
├── nt.36.tar.gz
├── nt.37.tar.gz
├── nt.38.tar.gz
├── nt.39.tar.gz
├── nt.40.tar.gz
├── nt.41.tar.gz
├── nt.42.tar.gz
├── nt.43.tar.gz
├── nt.44.tar.gz
├── nt.45.tar.gz
├── nt.46.tar.gz
├── nt.47.tar.gz
├── nt.48.tar.gz
├── nt.49.tar.gz
├── nt.50.tar.gz
├── nt.51.tar.gz
├── nt.52.tar.gz
├── nt.53.tar.gz
├── nt.54.tar.gz
├── nt.55.tar.gz
├── nt.56.tar.gz
├── nt.57.tar.gz
├── nt.58.tar.gz
├── nt.59.tar.gz
├── nt.60.tar.gz
├── nt.61.tar.gz
├── nt.62.tar.gz
├── nt.63.tar.gz
├── nt.64.tar.gz
├── nt.65.tar.gz
├── nt.66.tar.gz
├── nt.67.tar.gz
├── nt.68.tar.gz
├── nt.69.tar.gz
├── nt.70.tar.gz
├── nt.71.tar.gz
├── nt.72.tar.gz
├── nt.73.tar.gz
├── nt.74.tar.gz
├── nt.75.tar.gz
├── nt.76.tar.gz
├── nt.77.tar.gz
├── nt.nal
├── nt.ndb
├── nt.nos
├── nt.not
├── nt.ntf
├── nt.nto
├── taxdb.btd
└── taxdb.bti

Thank you for posting that!

Here's the core of the error:

I see you do have the file nt.01.tar.gz. I wonder if it needs to be decompressed from the .tar.gz format in order to work.

I found these two threads about the same issue:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.