Gg-13-8-99-nb-classifier.qza is not a QIIME archive

feature-classifier

(Jia Zhou) #1

Hi,

I am trying to use Naive Bayes classifiers, but got the following error messages. Could you please help me to solve this error?

(qiime2-2018.11) JiadeMacBook-Pro:QIIME2 jiazhou$ qiime feature-classifier classify-sklearn --i-classifier gg-13-8-99-nb-classifier.qza --i-reads rep-seqs-dada2.qza --o-classification taxonomy_gg.qza --verbose
Traceback (most recent call last):
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/bin/qiime”, line 11, in
sys.exit(qiime())
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/q2cli/commands.py”, line 244, in call
arguments, missing_in, verbose, quiet = self.handle_in_params(kwargs)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/q2cli/commands.py”, line 326, in handle_in_params
kwargs, fallback=cmd_fallback)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/q2cli/handlers.py”, line 375, in get_value
artifact = qiime2.sdk.Result.load(path)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/qiime2/sdk/result.py”, line 66, in load
archiver = archive.Archiver.load(filepath)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/qiime2/core/archive/archiver.py”, line 299, in load
archive = cls.get_archive(filepath)
File “/Users/jiazhou/miniconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/qiime2/core/archive/archiver.py”, line 264, in get_archive
raise ValueError("%s is not a QIIME archive." % filepath)
ValueError: gg-13-8-99-nb-classifier.qza is not a QIIME archive.

Thanks,

Jia


(Nicholas Bokulich) #2

There is something wrong with that file, it is probably corrupted. where did gg-13-8-99-nb-classifier.qza come from? Did you make it yourself or did you download it from the pre-trained classifiers on the :qiime2: website? If you downloaded it, please try again — the file must have become corrupted, e.g., due to an incomplete download.


(Jia Zhou) #3

Hi, Nicholas

You are right. It works after re-download the file from the pre-trained classifiers. I tried to use the following command to download but two files would be downloaded and I got previous showed error message. It works fine when I downloaded the classifier file to my computer first.

wget
-o “gg-13-8-99-nb-classifier.qza”
https://data.qiime2.org/2018.11/common/gg-13-8-99-nb-classifier.qza

Thanks,

Jia


(system) closed #4

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