# Demux and visualization of data

**URL:** <https://forum.qiime2.org/t/demux-and-visualization-of-data/12200>\
**Category:** User Support\
**Tags:** demux, visualization\
**Created:** [October 27, 2019, 7:12pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200 "2019-10-27T19:12:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 7:12pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/1 "2019-10-27T19:12:35Z")

</div>

Hi Ben. I am trying to summarize (visualize) the file. I had an error related to output path:  
What I used:qiime demux summarize   
--i-data /Users/hebahussein/Desktop/paired-end-demux.qza  
\   
--o-visualization /Users/hebahussein/Desktop/paired-end-demux.qzv

the error: **(1/1) Missing option "--o-visualization". ("--output-dir" may also be used)**

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 7:13pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/2 "2019-10-27T19:13:22Z")

</div>

> qiime demux summarize --i-data /Users/hebahussein/Desktop/paired-end-demux.qza --o-visualization /Users/hebahussein/Desktop/paired-end-demux.qzv

Try running this command. Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 7:16pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/3 "2019-10-27T19:16:44Z")

</div>

thanks it worked

Saved Visualization to: /Users/hebahussein/Desktop/paired-end-demux.qzv

it seems that it is better to be continuous rather than separated by backslash

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 7:17pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/4 "2019-10-27T19:17:35Z")

</div>

Yes, these "" tells the command to go to the next line. You can do away with all backslashes and run it in one line. It just helps visualize the commands. Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 7:25pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/5 "2019-10-27T19:25:04Z")

</div>

so, I try to view the output file. I tried both the absolute and relative path and both got error(qiime2-2019.7) a-PC:~ hebahussein$ qiime tools view/Users/hebahussein/Desktop/paired-end-demux.qzv  
Usage: qiime tools [OPTIONS] COMMAND [ARGS]...  
Try "qiime tools --help" for help.

Error: No such command "view/Users/hebahussein/Desktop/paired-end-demux.qzv".  
(qiime2-2019.7) a-PC:~ hebahussein$ qiime tools view paired-end-demux.qzv  
Usage: qiime tools view [OPTIONS] VISUALIZATION

Displays a QIIME 2 Visualization until the command exits. To open a QIIME  
2 Visualization so it can be used after the command exits, use 'qiime  
tools extract'.

Options:  
--index-extension TEXT The extension of the index file that should be  
opened. [default: html]  
--help Show this message and exit.

```
                There was a problem with the command:                     

```

(1/1) Invalid value for "VISUALIZATION": File "paired-end-demux.qzv" does not  
exist.  
(qiime2-2019.7) a-PC:~ hebahussein$

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 7:26pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/6 "2019-10-27T19:26:49Z")

</div>

go too [view.qiime2.org](http://view.qiime2.org)

drag this file into the window.

Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 7:33pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/7 "2019-10-27T19:33:34Z")

</div>

very cool. but is this output seems normal? also, I pressed download both as pdf and file but did not find it in download

 ![26%20PM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/7/72d184c1d6ab250be427837c16e6080de8d0943e.png)

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 7:34pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/8 "2019-10-27T19:34:57Z")

</div>

Not sure, it looks ok, but I agree odd. Can you tell me how many samples you had again? Ben

edit: you had six.

can you click around and tell me how many forward/reverse sequences were demultiplexed per sample?

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 7:36pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/9 "2019-10-27T19:36:44Z")

</div>

![32%20PM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/c/ccdd469fee38851ad82448e9aef6bdd417addc07.png)

this is the interactive view  
but still I cant download the file or interpretive the results  
edit: I am not sure though if this is visualization of my data or saved on the website. i just choose interactive tab after dragging my qzv

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 7:37pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/10 "2019-10-27T19:37:54Z")

</div>

Hm, what do you want to download? It looks otherwise pretty good! Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 7:38pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/11 "2019-10-27T19:38:49Z")

</div>

thanks a lot. I need to download the visualization as a pdf.  
edit: I downloaded sequence count as pdf. thanks

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 7:42pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/12 "2019-10-27T19:42:54Z")

</div>

I think there should be an option, but I think your frequency and quality graphs look good. You can proceed with DADA2 if you're ready. As for the visualizations, I would click around the page.

On the first page, you can scroll ALL the way down to download the CSV that tells you how many sequences per sample (which is important). You can plot them using another program such as graphpad (prism).

Ben

edit: show me the sequence counts please

edit.edit: I think these may be V3-V4 16S, do you know what kind of 16S region that these were? Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 7:46pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/13 "2019-10-27T19:46:40Z")

</div>

they range between 40-60 k

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 7:49pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/14 "2019-10-27T19:49:06Z")

</div>

Good enough, you can send it through DADA2 now. Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 27, 2019, 9:48pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/15 "2019-10-27T21:48:52Z")

</div>

thanks, I am trying. how to know where to trim? what is the accepted threshold? also I have paired-end so how to make sure they overlap? Finally, how long may it take to run as I read it may take 4 days? I only trying on 6 samples not all my samples.

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 27, 2019, 10:00pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/16 "2019-10-27T22:00:52Z")

</div>

forward should be around 200  
reverse should be 160-180

You should look at your quality plots and see where they start to drop. You want to trim before the quality drops. Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 29, 2019, 12:06pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/22 "2019-10-29T12:06:02Z")

</div>

as I understand, we put the cutoffs after trunc command. which numbers should be after the trim please?qiime dada2 denoise-paired   
--i-demultiplexed-seqs paired-end-demux.qza   
--p-trim-left 6   
--p-trim-left-r7   
--p-trunc-len-f 225   
--p-trunc-len-r 218   
--o-table table.qza   
--o-representative-sequences rep-seqs.qza   
--o-denoising-stats denoising\_stats.qza

edit: which video tutorial topics should I watch to understand quality score and the plots?

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 29, 2019, 4:53pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/23 "2019-10-29T16:53:53Z")

</div>

so, Ben which numbers should we choose for trim?  
based upon what?  
any tutorial to help me understand and decide?  
thanks  
edit: because I keep on getting same error **(1/2?) no such option: --p-trim-left (Possible options: --p-trim-left-f,**

**--p-trim-left-r)**

**(2/2?) no such option: --p-trim-left-r7 (Possible options: --p-trim-left-f,**

**--p-trim-left-r)**

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [October 29, 2019, 5:04pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/24 "2019-10-29T17:04:18Z")

</div>

Trim #s should be based on if you have extra NT that you think may have been left from your primers. Here your trim # can be zero - I sometimes out of habit will trim 8-13 off of the forward and reverse. This should not impact your DADA2 results. Ben

> qiime dada2 denoise-paired  
> –i-demultiplexed-seqs paired-end-demux.qza  
> –p-trim-left 6  
> –p-trim-right 7  
> –p-trunc-len-f 225  
> –p-trunc-len-r 218  
> –o-table table.qza  
> –o-representative-sequences rep-seqs.qza  
> –o-denoising-stats denoising\_stats.qza

**--p-trim-left-r7**

This is a typo, please be careful w/ your commands! Ben

---

<div class="post-metadata">

**Author:** ![HebaHussein-1981](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hebahussein-1981/32/6118_2.png) [@HebaHussein-1981](https://forum.qiime2.org/u/HebaHussein-1981)\
**Post date:** [October 29, 2019, 5:12pm UTC](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200/25 "2019-10-29T17:12:10Z")

</div>

thanks i got many errors so i need to try all command continuous without backslash. so u cut and paste or re-type the command?

[Next page](https://forum.qiime2.org/t/demux-and-visualization-of-data/12200.md?page=2)
