Thanks for your reply, i ran the --verbose and the I got the following error message:
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.
Command: kraken2 --threads 40 --confidence 0.6 --minimum-base-quality 20 --minimum-hit-groups 2 --report-minimizer-data --db /tmp/qiime2/karim/data/cef867ed-d396-465d-8b97-664cfb961ffc/data --paired --report /tmp/q2-Kraken2ReportDirectoryFormat-5t_wm5yv/A3.report.txt --output /tmp/q2-Kraken2OutputDirectoryFormat-x3fk_nap/A3.output.txt /tmp/qiime2/karim/data/59399d99-7dbf-4ecd-a5f9-b607c5de53e8/data/A3_0_L001_R1_001.fastq.gz /tmp/qiime2/karim/data/59399d99-7dbf-4ecd-a5f9-b607c5de53e8/data/A3_6_L001_R2_001.fastq.gz
Loading database information...Failed attempt to allocate 16000000000bytes;
you may not have enough free memory to load this database.
If your computer has enough RAM, perhaps reducing memory usage from
other programs could help you load this database?
classify: unable to allocate hash table memory
Traceback (most recent call last):
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/q2_moshpit/kraken2/classification.py", line 180, in classify_kraken2_helper
run_command(cmd=cmd, verbose=True)
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/q2_moshpit/_utils.py", line 32, in run_command
subprocess.run(cmd, check=True, **kwargs)
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['kraken2', '--threads', '40', '--confidence', '0.6', '--minimum-base-quality', '20', '--minimum-hit-groups', '2', '--report-minimizer-data', '--db', '/tmp/qiime2/karim/data/cef867ed-d396-465d-8b97-664cfb961ffc/data', '--paired', '--report', '/tmp/q2-Kraken2ReportDirectoryFormat-5t_wm5yv/A3.report.txt', '--output', '/tmp/q2-Kraken2OutputDirectoryFormat-x3fk_nap/A3.output.txt', '/tmp/qiime2/karim/data/59399d99-7dbf-4ecd-a5f9-b607c5de53e8/data/A3_0_L001_R1_001.fastq.gz', '/tmp/qiime2/karim/data/59399d99-7dbf-4ecd-a5f9-b607c5de53e8/data/A3_6_L001_R2_001.fastq.gz']' returned non-zero exit status 71.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/q2cli/commands.py", line 520, in call
results = self._execute_action(
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/q2cli/commands.py", line 586, in _execute_action
results = action(**arguments)
File "", line 2, in classify_kraken2
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 342, in bound_callable
outputs = self.callable_executor(
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 647, in callable_executor
outputs = self._callable(scope.ctx, **view_args)
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/q2_moshpit/kraken2/classification.py", line 94, in classify_kraken2
(kraken2_report, kraken2_output) = _classify_kraken2(
File "", line 2, in _classify_kraken2
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/qiime2/sdk/context.py", line 143, in deferred_action
return action_obj._bind(
File "", line 2, in _classify_kraken2
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 342, in bound_callable
outputs = self.callable_executor(
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 566, in callable_executor
output_views = self._callable(**view_args)
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/q2_moshpit/kraken2/classification.py", line 131, in _classify_kraken2
return classify_kraken2_helper(seqs, common_args)
File "/home/karim/miniconda3/envs/qiime2-shotgun-2024.2/lib/python3.8/site-packages/q2_moshpit/kraken2/classification.py", line 183, in classify_kraken2_helper
raise Exception(
Exception: An error was encountered while running Kraken 2, (return code 71), please inspect stdout and stderr to learn more.
Plugin error from moshpit:
An error was encountered while running Kraken 2, (return code 71), please inspect stdout and stderr to learn more.
See above for debug info.