# error while running QIIME demux summary

**URL:** <https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627>\
**Category:** User Support\
**Created:** [July 6, 2020, 2:47pm UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627 "2020-07-06T14:47:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![syama](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@syama](https://forum.qiime2.org/u/syama)\
**Post date:** [July 6, 2020, 2:47pm UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/1 "2020-07-06T14:47:10Z")

</div>

Hi,

I am new to QIIME. I have a dataset downloaded from SRA, where each folder for each sample. No barcode file. So is the data demultiplexed?  
This is how the sequences in each file look like,  
@SRR9680011.1.1 length=441

TGGGGAATATTGCACAATGGGCGCAAGCCTGATGCAGCCATGCCGCGTGTATGAAGAAGGCCTTCGGGTTGTAAAGTACTTTCAGCGGGGAGGAAGGGAGTAAAGTTAATACCTTTGCTCATTGACGTTACACGCAGATGAAGCACCGGCTAACTCCGTGCCAGCAGCCGCGGTAATACGGAGGGTGCAAGCGTTAAGCGGAATTACTGGGCGTAAAGCGCACGCAGGCGGTTGGTTAAGTCAGATGTGAAATCCCCGGGCTCAACCGGGGAACTGCATCTGATACGGGAAAGCTGGAGTCTCGTAGAGGGGGGTAGAATGCCAGGTGTAGCGGTGAAATGCGTAGAGATCTGGAGGAATACCGGTGGCGAAGGCGGCCCCCTGGACGAAGACTGACGCTCAGGTGCGAAAGCGTGGGGAGCAAACAGGATTAGATACCCT

+SRR9680011.1.1 length=441

EFFFGG7F@EFFCAGFFFG8FFGGGD7DFCGGGFGDEGFDFFGGG7FFGFFGGGGCFGFG8EFGFCGEFGGGGFGFEDFGGEFFFGGGCFBF=CE\<F+4BFADC9FF,C\<FFA\<F\<BDGFF==9DFFB+3\>,\>3CCGG,3,@FDEFFCGD@1@E$F:FEFEEFFGGFGGDDCEC@EGC\>;3B\>=FFGGGGEFGGGCC#@EE)EC80A:??DCE/C\>8\>+:55CG;=CDEF\>&C#CCFGFF@F=F7EFDB,?+\<7CC8?F?\>9(E'F\<76GGDGGFF9,?FDGBEFB,,@,@DD\<@,\<D@++77FF8C7C+=DEGGDGFB4,,F?GGFGGEGGGGFCFGGEBGGFFE;A9,A=CCFFE?DC=F@6:CFC\<FGGEECCFFF7FCF@C6\<C9FFFFCGGGFBE@GEEGGGGGGEF7F,FF@FFCFEGGGFFGFF,GGGGCCCCC

@SRR9680011.2.1 length=441

TGGGGAATATTGCACAATGGGCGCAAGCCTGATGCAGCCATGCCGCGTGTATGAAGAAGGCCTTCGGGTTGTAAAGTACTTTCAGCGGGGAGGAAGGGAGTAAAGTTAATACCTTTGCTCATTGACGTTACCCGCAGAAGAAGCACCGGCTAACTCCGTGCCAGCAGCCGCGGTAATACGGAGGGTGCAAGCGTTAATCGGAATTACTGGGCGTAAAGCGCACGCAGGCGGTTTGTTAAGTCAGATGTGAAATCCCCGGGCTCAACCTGGGAACTGCATCTGATACTGGCAAGCTTGAGTCTCGTAGAGGGGGGTAGAATTCCAGGTGTAGCGGTGAAATGCGTAGAGATCTGGAGGAATACCGGTGGCGAAGGCGGCCCCCTGGACGAAGACTGACGCTCAGGTGCGAAAGCGTGGGGAGCAAACAGGATTAGATACCCT

+SRR9680011.2.1 length=441

The library layout is shown as SINGLE

I imported just 2 files coresponding to 2 samples using the command  
qiime tools import --type 'SampleData[SequencesWithQuality]' --input-path manifestFile --output-path single-end-demux.qza --input-format SingleEndFastqManifestPhred33

my manifest file is  
sample-id,absolute-filepath,direction  
SRR9679959,/Users/syama/Downloads/sequences/SRR9679959.fastq,forward  
SRR9680011,/Users/syama/Downloads/sequences/SRR9680011.fastq,forward

It successfully run and I got single-end-demux.qza

But when I tried demux summary using  
qiime demux summarize \   
--i-data single-end-demux.qza   
--o-visualization demux.qzv

I got the error **Plugin error from demux:**

**'NoneType' object has no attribute 'strip'**

**Debug info has been saved to /var/folders/hr/9vcxtv2961bgx43wk4sqww3m0000gn/T/qiime2-q2cli-err-pdlqug93.log**

I could not find the above said log file also.  
While I open single-end-demux.qza using vi editor it is like,

P??P?G?2c150c2ea-4422-40b4-b3d0-c3d81d9fd4b9/metadata.yaml%˱? ?ᝧ?H1??֩C????- P\>???P??PlÃ?4;2c150c2ea-4422-40b4-b3d0-c3d81d9fd4b9/checksums.md5???jA  
????k?[?jsp?۰Ԓ:,????\<}fɆx!???R\_?_e?fHñ??v?Q?;Oӗ?????nS??%lR?R??b-y?D??󘦇X?u??w}?????z)?h(?y`H?R?4??W??n\>^??o???"T??dV??J?Aq??w;?,Rd???;?W?}]??lx??  
b,?[ࠜ?uf??\>??$?????"  
CSf?4y???9?O?S??????G=Z???=?@@??)?7\<p?5?^@vXt9\<?????+??? ?[ư5???{cvNE??/P??ͳ??????_(,c150c2ea-4422-40b4-b3d0-c3d81d9fd4b9/VERSION  
???uU0?J,J??,K?R0?J+J?M-?/ʶR020??34?3?P??P?G?=c150c2ea-4422-40b4-b3d0-c3d81d9fd4b9/provenance/metadata.yaml%˱? \>???P??PZ@?????7G?????????Lׄ#??\*? ?1ZK????A%]?????+??q  
=c150c2ea-4422-40b4-b3d0-c3d81d9fd4b9/provenance/citations.bib}VKv??s??ز%???BQ??L2??]?r b?1\>?(ۇ?2???K5???M6Q?h????;Y/?J|[X?œ???\_???????????^o??^g???+c?ߊo'F

are the fastq files properly imported?  
I am using Mac Os Catalina version 10.15.4 (19E287)  
qiime2-2019.10,  
R version 3.5.1

It would be great if someone has the answer.  
Tnanks

---

<div class="post-metadata">

**Author:** ![dwt](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/71e660/32.png) [@dwt](https://forum.qiime2.org/u/dwt)\
**Post date:** [July 6, 2020, 3:26pm UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/2 "2020-07-06T15:26:00Z")

</div>

Hi Syama,  
I'm not sure about the error, it may be easier to debug if you can post the contents of the log file

> **Debug info has been saved to /var/folders/hr/9vcxtv2961bgx43wk4sqww3m0000gn/T/qiime2-q2cli-err-pdlqug93.log**

FYI your data looks like it is paired end data that was cleaned and merged before uploading to NCBI, so you may want to use deblur rather than dada2 for the denoising.

> [@How to manage fastq files with qiime2 that are already merged demultiplexed and trimed?](https://forum.qiime2.org/t/how-to-manage-fastq-files-with-qiime2-that-are-already-merged-demultiplexed-and-trimed/7732):
>
> I am using qiime2 2018.11. I got files .fastq (only this, 1 gile per sample) from a company that perform microbiota analysis for me. The company told me that the files are already demultiplexed, merged and trimed. I succeeded to import my files in qiime2 after creating a manifest file. So I obtained a .qza file and a qzv to see the interactive quality plot. So I have only a forward reads. But I don't know what to do next with this files. Should I performed a denoising but how I can do since …

Devin

---

<div class="post-metadata">

**Author:** ![Oddant1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/oddant1/32/17130_2.png) [@Oddant1](https://forum.qiime2.org/u/Oddant1)\
**Post date:** [July 6, 2020, 4:31pm UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/3 "2020-07-06T16:31:57Z")

</div>

Hello @syama. In the samples you pasted it looks like there are a lot of empty lines in your file separating all of your actual data lines. Are these lines actually present in your file? If so that could be the problem.

It also looks like you have your sample ids repeated on your `+` separator lines. In all honesty I'm not sure whether that's allowed or not, but I don't think I've ever seen it before. It definitely breaks the spec for fastq files laid out [here](https://support.illumina.com/bulletins/2016/04/fastq-files-explained.html) where it says the separator is just a `+`. EDIT: It looks like having the sample id after the plus is valid.

The reason the .qza opened in vi looks so goofy is that the .qza itself isn't a text file, it's a zipped directory. It's not surprising that all the compressed data when viewed directly with a text editor just looks like nonsense.

Thank you.

---

<div class="post-metadata">

**Author:** ![syama](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@syama](https://forum.qiime2.org/u/syama)\
**Post date:** [July 7, 2020, 2:27am UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/5 "2020-07-07T02:27:34Z")

</div>

@Devin thomas,

I did beblur and it worked,  
qiime deblur denoise-16S   
--i-demultiplexed-seqs sequences/fj-joined-demux.qza   
--p-trim-length 120   
--o-representative-sequences sequences/rep-seqs-deblur.qza   
--o-table sequences/table-deblur.qza   
--p-sample-stats   
--o-stats sequences/deblur-stats.qza

also I could do the summary of the deblur table  
qiime feature-table summarize   
--i-table sequences/table-deblur.qza   
--o-visualization sequences/table-deblur.qzv

---

<div class="post-metadata">

**Author:** ![syama](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@syama](https://forum.qiime2.org/u/syama)\
**Post date:** [July 7, 2020, 2:27am UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/6 "2020-07-07T02:27:41Z")

</div>

@Oddant1 Thanks for your reply.  
The empty lines are not present in the actual file.

---

<div class="post-metadata">

**Author:** ![syama](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@syama](https://forum.qiime2.org/u/syama)\
**Post date:** [July 14, 2020, 5:13am UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/7 "2020-07-14T05:13:39Z")

</div>

Hi,

I imported my file with this command  
qiime tools import   
--type 'SampleData[SequencesWithQuality]'   
--input-path se-33-manifest.txt   
--output-path single-end-demux.qza \   
--input-format SingleEndFastqManifestPhred33V2  
But I could not do summary,  
When I run  
qiime demux summarize   
--i-data single-end-demux.qza   
--o-visualization demux.qzv  
I get the error  
**Plugin error from demux:**

**'NoneType' object has no attribute 'strip'**

**Debug info has been saved to /var/folders/hr/9vcxtv2961bgx43wk4sqww3m0000gn/T/qiime2-q2cli-err-2lvb2v\_6.log**

The contents of the log file are  
Traceback (most recent call last):  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2cli/commands.py", line 329, in **call**  
results = action(\*\*arguments)  
File "", line 2, in summarize  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/qiime2/sdk/action.py", line 245, in bound\_callable  
output\_types, provenance)  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/qiime2/sdk/action.py", line 452, in _callable\_executor_  
ret\_val = self.\_callable(output\_dir=temp\_dir, \*\*view\_args)  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2\_demux/\_summarize/\_visualizer.py", line 138, in summarize  
for seq in \_read\_fastq\_seqs(filename):  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2\_demux/\_demux.py", line 37, in \_read\_fastq\_seqs  
yield (seq\_header.strip(), seq.strip(), qual\_header.strip(),  
AttributeError: 'NoneType' object has no attribute 'strip'

When I do quality-filter,

qiime quality-filter q-score   
--i-demux single-end-demux.qza   
--o-filtered-sequences demux-filtered.qza   
--o-filter-stats demux-filter-stats.qza

the same error coming

**Plugin error from quality-filter:**  
**'NoneType' object has no attribute 'strip'**  
**Debug info has been saved to /var/folders/hr/9vcxtv2961bgx43wk4sqww3m0000gn/T/qiime2-q2cli-err-vnxzf2d1.log**

The contents of the log file

/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2\_quality\_filter/\_filter.py:89: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read [https://msg.pyyaml.org/load](https://msg.pyyaml.org/load) for full details.  
phred\_offset = yaml.load(metadata\_view)['phred-offset']  
Traceback (most recent call last):  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2cli/commands.py", line 329, in **call**  
results = action(\*\*arguments)  
File "", line 2, in q\_score  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/qiime2/sdk/action.py", line 245, in bound\_callable  
output\_types, provenance)  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/qiime2/sdk/action.py", line 390, in _callable\_executor_  
output\_views = self.\_callable(\*\*view\_args)  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2\_quality\_filter/\_filter.py", line 115, in q\_score  
for sequence\_record in \_read\_fastq\_seqs(str(fp), phred\_offset):  
File "/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2\_quality\_filter/\_filter.py", line 25, in \_read\_fastq\_seqs  
qual = qual.strip()  
AttributeError: 'NoneType' object has no attribute 'strip'

please help, I am stuck  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![dwt](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/71e660/32.png) [@dwt](https://forum.qiime2.org/u/dwt)\
**Post date:** [July 14, 2020, 12:37pm UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/8 "2020-07-14T12:37:07Z")

</div>

> [@syama](#):
>
> File “/Users/syama/opt/anaconda3/envs/qiime2-2020.6/lib/python3.6/site-packages/q2\_demux/\_demux.py”, line 37, in \_read\_fastq\_seqs  
> yield (seq\_header.strip(), seq.strip(), qual\_header.strip(),  
> AttributeError: ‘NoneType’ object has no attribute ‘strip’

This part suggests there may be an issue with the fastq file, it looks like it is expecting a line of quality scores but not finding that line. I would check that your reads were fully downloaded when imported and that there are not issues with the read files. It's a bit strange that deblur would work while the summarize visualization would not.

> Check that the number of lines are the same for the forward and reverse reads  
> zcat _read\_file.fastq.gz_ | wc  
> And then check that there is nothing weird at the end of the file  
> zcat _read\_file.fastq.gz_ | tail

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [July 14, 2020, 2:03pm UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/9 "2020-07-14T14:03:52Z")

</div>

Thanks @dwt - I agree, there is an issue with these data.

> [@dwt](#):
>
> It’s a bit strange that deblur would work while the summarize visualization would not.

I'm less surprised about this - deblur doesn't use the quality scores at all.

@syama - please double check what @dwt provided above - thanks!

---

<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:** [August 14, 2020, 8:03pm UTC](https://forum.qiime2.org/t/error-while-running-qiime-demux-summary/15627/10 "2020-08-14T20:03:55Z")

</div>

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