Hello Shay and Valentyn,
I'm new here, and I have the same problem.
I downloaded the sequences from NCBI (single end) and prepared the .qza file without meeting difficulties.
However, I met the same problem when using ITSxpress.
Here is the command I used:
qiime itsxpress trim-single\
--i-per-sample-sequences single-end-demux.qza \
--p-region ITS1 \
--p-taxa F \
--p-threads 10 \
--o-trimmed demux-single-end-trimmed-itsxpress.qza
I used --verbose to check the details, and here is the result:
[details="Summary"]
This text will be hidden
[/details]
Reading file /tmp/itsxpress_tdz_i0dj/seq.fq.gz 100%
0 nt in 0 seqs
Masking 100%
Sorting by abundance 100%
Counting k-mers 100%
Clustering 100%
Sorting clusters 100%
Writing clusters 100%
Clusters: 0
Singletons: 0
ERROR:root:Could not perform ITS identification with hmmserach. The error was:
Error: Sequence file /tmp/itsxpress_tdz_i0dj/rep.fa is empty or misformatted
Traceback (most recent call last):
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/itsxpress/main.py", line 564, in _search
p4.check_returncode()
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/subprocess.py", line 448, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['hmmsearch', '--domtblout', '/tmp/itsxpress_tdz_i0dj/domtbl.txt', '-T', '10', '--cpu', '10', '--tformat', 'fasta', '--F1', '1e-6', '--F2', '1e-6', '--F3', '1e-6', '/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/itsxpress/ITSx_db/HMMs/F.hmm', '/tmp/itsxpress_tdz_i0dj/rep.fa']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/q2cli/commands.py", line 352, in __call__
results = action(**arguments)
File "<decorator-gen-476>", line 2, in trim_single
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 234, in bound_callable
outputs = self._callable_executor_(scope, callable_args,
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 381, in _callable_executor_
output_views = self._callable(**view_args)
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/q2_itsxpress/_itsxpress.py", line 116, in trim_single
results = main(per_sample_sequences=per_sample_sequences,
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/q2_itsxpress/_itsxpress.py", line 212, in main
sobj._search(hmmfile=hmmfile, threads=threads)
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/itsxpress/main.py", line 567, in _search
raise e
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/itsxpress/main.py", line 564, in _search
p4.check_returncode()
File "/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/subprocess.py", line 448, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['hmmsearch', '--domtblout', '/tmp/itsxpress_tdz_i0dj/domtbl.txt', '-T', '10', '--cpu', '10', '--tformat', 'fasta', '--F1', '1e-6', '--F2', '1e-6', '--F3', '1e-6', '/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/itsxpress/ITSx_db/HMMs/F.hmm', '/tmp/itsxpress_tdz_i0dj/rep.fa']' returned non-zero exit status 1.
Plugin error from itsxpress:
Command '['hmmsearch', '--domtblout', '/tmp/itsxpress_tdz_i0dj/domtbl.txt', '-T', '10', '--cpu', '10', '--tformat', 'fasta', '--F1', '1e-6', '--F2', '1e-6', '--F3', '1e-6', '/home/chih/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/itsxpress/ITSx_db/HMMs/F.hmm', '/tmp/itsxpress_tdz_i0dj/rep.fa']' returned non-zero exit status 1.
See above for debug info.
I check the /tmp/itsxpress_tdz_i0dj/rep.fa file. It's empty.
However, I used qiime tools validate single-end-demux.qza
to check my .qza file, and the .qza file is valid.
Result single-end-demux.qza appears to be valid at level=max.
I am trying to figure out what causes this error. And I don't know where to begin to fix this problem.
Could anyone help me, please? Thank you very much!!
Best,
Betty