Plugin error from dada2:
/scratch/tmp/q2-BIOMV210Format-9vjedzhu is not a(n) BIOMV210Format file
Debug info has been saved to /scratch/tmp/qiime2-q2cli-err-mm5bobdf.log
and the last lines in the .log are:
File "/home/myhome/miniconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/plugin/model/file_format.py", line 35, in validate
raise ValidationError("%s is not a(n) %s file"
qiime2.core.exceptions.ValidationError: /scratch/tmp/q2-BIOMV210Format-9vjedzhu is not a(n) BIOMV210Format file
I did load qiime2-2021.11 - same error. No error when dada2 runs on my own MacPowerBookPro
I did search on the forum, found several topics on 'wrong' BIOMV210Format, but most related to errors in importing own data.
Any suggestion? Thank you all in advance for help/comments
From what you've described, it sounds like the issue is coming from the installation of QIIME 2 on your bioinfo cluster (since you mentioned you were able to run this command without issue on your personal machine).
Can you please copy/paste the outputs for the following commands in your response:
conda env list
echo $PATH
This will give us a better idea of where the issue is coming from. Thanks!
Thanks for providing those details! It looks like the QIIME 2 environment you created exists under a path that isn't in your $PATH (environment variable). I'd recommend deleting that environment and creating a new one following the instructions below:
First, to delete the qiime2-2022.2 conda environment, you'll type in the following to your command line:
conda env remove -n qiime2-2022.2
From there, please follow these install instructions exactly (I'd recommend just copy/pasting) for the OS that's appropriate for your bioinfo cluster:
Once that's been completed, go ahead and activate that environment and try running the dada2 command once more. If you are still running into the same error, can you share the results of conda env list once more? Thanks!
Please note that I deleted the miniconda3 and installed anaconda3 - no differences.
Here is the error:
~/mouse_tutorial$ qiime dada2 denoise-single \
--i-demultiplexed-seqs ./demux_seqs.qza
--p-trunc-len 150
--o-table ./dada2_table.qza
--o-representative-sequences ./dada2_rep_set.qza
--o-denoising-stats ./dada2_stats.qza
--verbose
Running external command line application(s). This may print messages to stdout and/or stderr.
The command(s) being run are below. These commands cannot be manually re-run as they will depend on temporary files that no longer exist.
Write output
Traceback (most recent call last):
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/q2cli/commands.py", line 339, in call
results = action(**arguments)
File "", line 2, in denoise_single
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 245, in bound_callable
outputs = self.callable_executor(scope, callable_args,
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 418, in callable_executor
artifact = qiime2.sdk.Artifact._from_view(
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/sdk/result.py", line 305, in _from_view
result = transformation(view, validate_level)
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/core/transform.py", line 70, in transformation
new_view = transformer(view)
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/core/transform.py", line 224, in wrapped
new_view.file.write_data(file_view, self._wrapped_view_type)
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/plugin/model/directory_format.py", line 88, in write_data
result = transformation(view)
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/core/transform.py", line 68, in transformation
self.validate(view, level=validate_level)
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/core/transform.py", line 143, in validate
view.validate(level)
File "/home/myhome/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/plugin/model/file_format.py", line 35, in validate
raise ValidationError("%s is not a(n) %s file"
qiime2.core.exceptions.ValidationError: /scratch/tmp/q2-BIOMV210Format-zt6hnr_6 is not a(n) BIOMV210Format file
Plugin error from dada2:
/scratch/tmp/q2-BIOMV210Format-zt6hnr_6 is not a(n) BIOMV210Format file
Thanks for providing all of those details! This might actually be a result of some updates to q2-dada2 since our last QIIME 2 release. Could you try installing a QIIME 2 development environment (post-2022.2 release) and try running this command once more? Here's where you'll find instructions on the latest dev install:
sorry for my late reply, I was on summer vacation.
IT people here worked on this issue, and did fix it. This was due to GlusterFS software that locked the file access by other threads, as far as I have understood. If needed, I will ask for more details.
However, thanks for your time.