# Running denoise and deblur on paired-end sequences

**URL:** https://forum.qiime2.org/t/running-denoise-and-deblur-on-paired-end-sequences/32996
**Category:** Technical Support
**Created:** [April 14, 2025, 8:09am UTC](https://forum.qiime2.org/t/running-denoise-and-deblur-on-paired-end-sequences/32996 "2025-04-14T08:09:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![CHIA](https://forum.qiime2.org/user_avatar/forum.qiime2.org/chia/32/19498_2.png) [@CHIA](https://forum.qiime2.org/u/CHIA)
#### Post date: [April 14, 2025, 8:09am UTC](https://forum.qiime2.org/t/running-denoise-and-deblur-on-paired-end-sequences/32996/1 "2025-04-14T08:09:55Z")

</div>

Hi all, I am currently having a raw shotgun metagenome sequencing data. It's paired-end sequences and I would like to use QIIME2 pipeline to identify the gut microbiome. My paired-end-demux.qza file size is 6.7GB, containing only forward and reverse sequence of one sample.  
However, when I tried to run the denoising step, it kept gave me the same error even I have tried to adjust the number of threads (24, 7 and 2).

```auto
qiime dada2 denoise-paired \

> --i-demultiplexed-seqs paired-end-demux.qza \

> --p-trim-left-f 0 \

> --p-trim-left-r 0 \

> --p-trunc-len-f 150 \

> --p-trunc-len-r 150 \

> --o-representative-sequences reps-seqs-dada2.qza \

> --o-table pet-table.qza \

> --o-denoising-stats denoising-stats.qza \

> --p-n-threads 24 \

> --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.

Command: run_dada_paired.R /tmp/tmpud3kk44l/forward /tmp/tmpud3kk44l/reverse /tmp/tmpud3kk44l/output.tsv.biom /tmp/tmpud3kk44l/track.tsv /tmp/tmpud3kk44l/filt_f /tmp/tmpud3kk44l/filt_r 150 150 0 0 2.0 2.0 2 12 independent consensus 1.0 24 1000000

R version 4.0.3 (2020-10-10)

Loading required package: Rcpp

DADA2: 1.18.0 / Rcpp: 1.0.6 / RcppParallel: 5.1.2

1) Filtering .

2) Learning Error Rates

6591345150 total bases in 43942301 reads from 1 samples will be used for learning the error rates.

Traceback (most recent call last):

  File "/home/chia/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 266, in denoise_paired

    run_commands([cmd])

  File "/home/chia/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 36, in run_commands

    subprocess.run(cmd, check=True)

  File "/home/chia/miniconda3/envs/qiime2-2021.4/lib/python3.8/subprocess.py", line 516, in run

    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['run_dada_paired.R', '/tmp/tmpud3kk44l/forward', '/tmp/tmpud3kk44l/reverse', '/tmp/tmpud3kk44l/output.tsv.biom', '/tmp/tmpud3kk44l/track.tsv', '/tmp/tmpud3kk44l/filt_f', '/tmp/tmpud3kk44l/filt_r', '150', '150', '0', '0', '2.0', '2.0', '2', '12', 'independent', 'consensus', '1.0', '24', '1000000']' died with <Signals.SIGKILL: 9>.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/home/chia/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/q2cli/commands.py", line 329, in __call__

    results = action(**arguments)

  File "<decorator-gen-514>", line 2, in denoise_paired

  File "/home/chia/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/qiime2/sdk/action.py", line 244, in bound_callable

    outputs = self._callable_executor_(scope, callable_args,

  File "/home/chia/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/qiime2/sdk/action.py", line 390, in _callable_executor_

    output_views = self._callable(**view_args)

  File "/home/chia/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 279, in denoise_paired

    raise Exception("An error was encountered while running DADA2"

Exception: An error was encountered while running DADA2 in R (return code -9), please inspect stdout and stderr to learn more.

Plugin error from dada2:

  An error was encountered while running DADA2 in R (return code -9), please inspect stdout and stderr to learn more.

See above for debug info.

```

Based on what I understand for the error, it seems like saying that my CPU do not have enough RAM to run the data. Please correct me if I'm wrongly intepret.

However, after a few time fails I try to change to deblur-16S, yet I got stuck at the deblurring sequencing steps upon checking at the deblur-log file. I have tried different number of number of jobs which including 24, 3 and 7.  
Please refer the details from the picture I have attached.

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [April 14, 2025, 8:29am UTC](https://forum.qiime2.org/t/running-denoise-and-deblur-on-paired-end-sequences/32996/2 "2025-04-14T08:29:41Z")

</div>

Hello!

> [@CHIA](#):
>
> I am currently having a raw shotgun metagenome sequencing data.

Dada2 and Deblur are 16S rRNA gene amplicons specific and are not appropriate for shotgun data. Please take a look on the [tutorial](https://bokulich-lab.github.io/moshpit-docs/intro.html) for metagenomic samples. Also, don't forget to install / use qiime2-metagenome edition (will be renamed to qiime2-moshpit edition starting from the next release).

The workflow could be (just an example, it depends on your project and questions you want to answer):

- QC
- Host DNA removal
- Taxonomy annotation
- Assemblies
- Binning
- Function annotations

Then you can use obtained data for diversity and stat analyses.

Best,  
Timur

---

<div class="post-metadata">

### Author: ![CHIA](https://forum.qiime2.org/user_avatar/forum.qiime2.org/chia/32/19498_2.png) [@CHIA](https://forum.qiime2.org/u/CHIA)
#### Post date: [April 14, 2025, 2:01pm UTC](https://forum.qiime2.org/t/running-denoise-and-deblur-on-paired-end-sequences/32996/5 "2025-04-14T14:01:19Z")

</div>

Oh dear, I just realized that I forget to attach the picture for my deblur

 ![Screenshot from 2025-04-11 13-59-04](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/0/4/04a76b48d770cdb4086ba61ad1954ea54caac919.png)  
 ![Screenshot from 2025-04-11 14-00-01](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/a/6/a6b2937a4818cdf4928535ce4cbc36b45f2fb96c.png)

---

<div class="post-metadata">

### Author: ![CHIA](https://forum.qiime2.org/user_avatar/forum.qiime2.org/chia/32/19498_2.png) [@CHIA](https://forum.qiime2.org/u/CHIA)
#### Post date: [April 14, 2025, 2:01pm UTC](https://forum.qiime2.org/t/running-denoise-and-deblur-on-paired-end-sequences/32996/6 "2025-04-14T14:01:31Z")

</div>

Hi Timur, thank you so much for the reply, I will try it on and see how it goes!

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [May 15, 2025, 8:39pm UTC](https://forum.qiime2.org/t/running-denoise-and-deblur-on-paired-end-sequences/32996/9 "2025-05-15T20:39:01Z")

</div>

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