# Demux summarize: TypeError: len() of unsized object

**URL:** https://forum.qiime2.org/t/demux-summarize-typeerror-len-of-unsized-object/780
**Category:** User Support
**Tags:** demux
**Created:** [June 30, 2017, 2:42pm UTC](https://forum.qiime2.org/t/demux-summarize-typeerror-len-of-unsized-object/780 "2017-06-30T14:42:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wangj50](https://forum.qiime2.org/user_avatar/forum.qiime2.org/wangj50/32/9997_2.png) [@wangj50](https://forum.qiime2.org/u/wangj50)
#### Post date: [June 30, 2017, 2:42pm UTC](https://forum.qiime2.org/t/demux-summarize-typeerror-len-of-unsized-object/780/1 "2017-06-30T14:42:52Z")

</div>

Hello,  
I have an error message when I was running qiime demux summarize, below is the debug info:

> Traceback (most recent call last):  
> File "/Users/wangj50/miniconda2/envs/qiime2-2017.6/lib/python3.5/site-packages/q2cli/commands.py", line 222, in **call**  
> results = action(\*\*arguments)  
> File "", line 2, in summarize  
> File "/Users/wangj50/miniconda2/envs/qiime2-2017.6/lib/python3.5/site-packages/qiime2/sdk/action.py", line 203, in callable\_wrapper  
> output\_types, provenance)  
> File "/Users/wangj50/miniconda2/envs/qiime2-2017.6/lib/python3.5/site-packages/qiime2/sdk/action.py", line 363, in _callable\_executor_  
> ret\_val = callable(output\_dir=temp\_dir, \*\*view\_args)  
> File "/Users/wangj50/miniconda2/envs/qiime2-2017.6/lib/python3.5/site-packages/q2\_demux/\_summarize/\_visualizer.py", line 158, in summarize  
> ax = sns.distplot(result, kde=False)  
> File "/Users/wangj50/miniconda2/envs/qiime2-2017.6/lib/python3.5/site-packages/seaborn/distributions.py", line 209, in distplot  
> bins = min(\_freedman\_diaconis\_bins(a), 50)  
> File "/Users/wangj50/miniconda2/envs/qiime2-2017.6/lib/python3.5/site-packages/seaborn/distributions.py", line 30, in \_freedman\_diaconis\_bins  
> h = 2 \* iqr(a) / (len(a) \*\* (1 / 3))  
> TypeError: len() of unsized object

This seems to be the same problem as [this post](https://forum.qiime2.org/t/demux-summarize-typeerror-len-of-unsized-object/147). But my input have two samples instead of one and the issue should already be solved.

Then I saw [this issue](https://forum.qiime2.org/t/trouble-import-demuxed-samples-with-underscores/742/3) with underscore in sequence file name. Is it possible that because my samples have underscores in file name, so qiime2 recoganized them as 1 sample. But if that is the case, it still goes back to the ealier issue which I thought have been solved. I am running qiime2-2017.6.  
Thanks!

---

<div class="post-metadata">

### Author: ![wangj50](https://forum.qiime2.org/user_avatar/forum.qiime2.org/wangj50/32/9997_2.png) [@wangj50](https://forum.qiime2.org/u/wangj50)
#### Post date: [June 30, 2017, 4:10pm UTC](https://forum.qiime2.org/t/demux-summarize-typeerror-len-of-unsized-object/780/2 "2017-06-30T16:10:47Z")

</div>

I changed the sample ID to avoid underscores and problem solved. I wish this is written in some help doc. Thanks!

---

<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: [June 30, 2017, 4:42pm UTC](https://forum.qiime2.org/t/demux-summarize-typeerror-len-of-unsized-object/780/3 "2017-06-30T16:42:00Z")

</div>

> [@wangj50](#):
>
> I wish this is written in some help doc. Thanks!

Hi @wangj50 --- we generally don't write up [user documents](https://docs.qiime2.org) detailing workaround for bugs, we would rather see those bugs fixed up! As a general note, our [issue trackers](https://github.com/qiime2/q2-demux/issues) are where we track the status of [bugs](https://github.com/qiime2/q2-demux/issues/49). Fortunately for you, the issue that was linked to in the [post](https://forum.qiime2.org/t/trouble-import-demuxed-samples-with-underscores/742/3) you referenced above has been fixed, and should be available in the next release of QIIME 2 (2017.7). This bug fix removes the need to strip all underscores from sample IDs. 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: [July 31, 2017, 10:42pm UTC](https://forum.qiime2.org/t/demux-summarize-typeerror-len-of-unsized-object/780/4 "2017-07-31T22:42:04Z")

</div>

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