# Taxa bar plot; Plugin error 'Float64Index'

**URL:** https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577
**Category:** User Support
**Tags:** pending-development, taxa, collapse, barplot
**Created:** [March 28, 2018, 12:51pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577 "2018-03-28T12:51:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![lec49](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/l/e9c0ed/32.png) [@lec49](https://forum.qiime2.org/u/lec49)
#### Post date: [March 28, 2018, 12:51pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/1 "2018-03-28T12:51:32Z")

</div>

Hi,

I am receiving an error message when I am trying to generate the interactive taxa bar plots

> (qiime2-2018.2) hafwt20@bspc-15079l:~/Lyndsay/qiime\_taxa$ qiime taxa barplot --i-table dada2-table.qza --i-taxonomy taxonomy.qza --m-metadata-file metadata.tsv --o-visualization taxa-bar-plots.qzv  
> Plugin error from taxa:

unhashable type: 'Float64Index'

Debug info has been saved to /tmp/qiime2-q2cli-err-ivj1qgkp.log

The debug info:

Traceback (most recent call last):  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/q2cli/commands.py", line 246, in **call**  
results = action(\*\*arguments)  
File "", line 2, in barplot  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/qiime2/sdk/action.py", line 228, in bound\_callable  
output\_types, provenance)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/qiime2/sdk/action.py", line 424, in _callable\_executor_  
ret\_val = self.\_callable(output\_dir=temp\_dir, \*\*view\_args)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/q2\_taxa/\_visualizer.py", line 29, in barplot  
collapsed\_tables = \_extract\_to\_level(taxonomy, table)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/q2\_taxa/\_util.py", line 35, in \_extract\_to\_level  
collapsed\_table = \_collapse\_table(table, taxonomy, level, max\_obs\_lvl)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/q2\_taxa/\_util.py", line 25, in \_collapse\_table  
return table.groupby(table.columns, axis=1).agg(sum)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/generic.py", line 5162, in groupby  
\*\*kwargs)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/groupby.py", line 1848, in groupby  
return klass(obj, by, \*\*kwds)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/groupby.py", line 516, in **init**  
mutated=self.mutated)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/groupby.py", line 2921, in \_get\_grouper  
if gpr in obj:  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/generic.py", line 1075, in **contains**  
return key in self.\_info\_axis  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/indexes/numeric.py", line 374, in **contains**  
if super(Float64Index, self). **contains** (other):  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 1694, in **contains**  
hash(key)  
File "/home/hafwt20/anaconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 1721, in **hash**  
raise TypeError("unhashable type: %r" % type(self). **name** )  
TypeError: unhashable type: 'Float64Index'  
.  
I've looked at a previous post with a simillar issue but I'm not really sure how to try and fix this.  
Any help or advice would be appreciated.

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: [March 28, 2018, 3:24pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/2 "2018-03-28T15:24:00Z")

</div>



---

<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: [March 28, 2018, 9:34pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/3 "2018-03-28T21:34:55Z")

</div>

Hi @lec49! We have seen this error come up before (see here for [open issue](https://github.com/qiime2/q2-taxa/issues/95)) - this happens when there are no overlapping feature ids between your feature table and you taxonomy. Double check those files to make sure that you aren't provided a collapsed table as input. Was your taxonomy generated using the same rep-seqs that came from the same DADA2 run that your feature table came from? If you are are still having problems after looking into that, please send us links to download your input files necessary for us to re-run the failing command you provided about. 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: [March 28, 2018, 9:34pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/4 "2018-03-28T21:34:59Z")

</div>



---

<div class="post-metadata">

### Author: ![lec49](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/l/e9c0ed/32.png) [@lec49](https://forum.qiime2.org/u/lec49)
#### Post date: [March 29, 2018, 12:52pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/5 "2018-03-29T12:52:23Z")

</div>

Hi @thermokarst

Thanks for the reply. I have looked into this and the table is not collapsed. Yes everything was generated from the same rep-seqs. I have attached a link to the input files.

[taxonomy.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/c/ca89fa5132c1ffa950dea4fbd8575cbb8bd5fe3a.qza) (43.9 KB)  
[metadata.tsv](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/9/98d2688c92925ae4f084c8593e61d27e3e4ef9bd.tsv) (264 Bytes)  
[dada2-table.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/c/cfabdae9529dc6edcbb167121ee2ee795409ebaf.qza) (72.5 KB)

---

<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: [March 29, 2018, 12:52pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/6 "2018-03-29T12:52:34Z")

</div>



---

<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: [March 29, 2018, 7:35pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/7 "2018-03-29T19:35:56Z")

</div>

Hi @lec49!

> [@lec49](#):
>
> Yes everything was generated from the same rep-seqs

I don't think that is the case - using provenance I just double checked - your table and your representative sequences came from two different DADA2 runs (actually, they came from two completely different data sets - see below):

feature table:

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

representative sequences:

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

Your trimming and truncation parameters are different between runs, which will impact the downstream artifacts.

Looking at the provenance, it looks like the table was generated from already demultiplexed paired-end data, while the representative sequences were generated from EMP-formatted single-end data that was demuxed in QIIME 2 (also, using a super old version of QIIME 2 - 2.0.6).

So, double check that your files are all in order, because it looks like you are mixing at least two different analyses here. Keep us posted!

PS - provenance is awesome! 🦖 🦖 🦖

---

<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: [March 29, 2018, 7:37pm UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/8 "2018-03-29T19:37:48Z")

</div>



---

<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: [April 30, 2018, 1:37am UTC](https://forum.qiime2.org/t/taxa-bar-plot-plugin-error-float64index/3577/9 "2018-04-30T01:37:53Z")

</div>

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