qiime sample-classifier heatmap - error

I am trying to run the following commands and this is the error I get. I have run the same command before and it was good. does it have something to do with the new qimme update or python package I am using?

load qimme

module purge
module load Anaconda/3-5.0.0.1
source activate qiime2-2019.7
module load R_tamu/3.4.2-intel-2017A-Python-2.7.12-default-mt
qiime sample-classifier heatmap
–i-table 1525_table_lvl6.qza
–i-importance ./sample-classifier-results_lvl6/feature_importance.qza
–m-metadata-file 219_metadata_cat_aspirated.txt
–m-metadata-column Good_strain_Name
–p-color-scheme BuGn
–p-group-samples
–p-feature-count 25
–o-heatmap ./sample-classifier-results/1525_mac_learning_heatmap_lvl6_top25.qzv
–o-filtered-table ./sample-classifier-results/1525_mac_learning_filtered-table_lvl6_top25.qza
****error
Traceback (most recent call last):
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/bin/qiime”, line 11, in
sys.exit(qiime())
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/q2cli/commands.py”, line 350, in call
path = result.save(output)
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/result.py”, line 149, in save
self._archiver.save(filepath)
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/archiver.py”, line 353, in save
self.CURRENT_ARCHIVE.save(self.path, filepath)
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/archiver.py”, line 167, in save
allowZip64=True) as zf:
File “/software/hprc/Anaconda/3-5.0.0.1/envs/qiime2-2019.7/lib/python3.6/zipfile.py”, line 1113, in init
self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: ‘./sample-classifier-results/1525_mac_learning_heatmap_lvl6_top25.qzv’

Thank you,

1 Like

Hello Aravindh,

I think this is the main part of the error:

FileNotFoundError: [Errno 2] No such file or directory: ‘./sample-classifier-results/1525_mac_learning_heatmap_lvl6_top25.qzv’

It looks like that file may have been moved or deleted, or maybe the path to the qzv has a small type in it.

Once the path is fixed you should be good to go!

Colin

P.S. Welcome to the forum! :qiime2:

Hi Colin!

Thank you so much! It was a type in the file path.

1 Like