Hello QIIME2 Community,
I have been trying to use QIIME to analyze some 16S data. I started with an OTU table and some representative sequences that had already been generated for those OTUs. After importing them as QIIME objects, I have been looking at the alpha and beta analysis as well as taxonomy.
However, I have been receiving an error when trying to build a barplot from the taxonomic data. The error log is below:
Traceback (most recent call last):
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/q2cli/commands.py”, line 218, in call
results = action(**arguments)
File “”, line 2, in barplot
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/qiime2/sdk/action.py”, line 201, in callable_wrapper
output_types, provenance)
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/qiime2/sdk/action.py”, line 393, in callable_executor
ret_val = callable(output_dir=temp_dir, **view_args)
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/q2_taxa/_visualizer.py”, line 29, in barplot
collapsed_tables = _extract_to_level(taxonomy, table)
File “/home/blaine/miniconda3/envs/qiime2-2017.9/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/blaine/miniconda3/envs/qiime2-2017.9/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/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/generic.py”, line 4416, in groupby
**kwargs)
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/groupby.py”, line 1699, in groupby
return klass(obj, by, **kwds)
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/groupby.py”, line 392, in init
mutated=self.mutated)
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/groupby.py”, line 2677, in _get_grouper
if gpr in obj:
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/generic.py”, line 909, in contains
return key in self._info_axis
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/indexes/numeric.py”, line 348, in contains
if super(Float64Index, self).contains(other):
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/indexes/base.py”, line 1640, in contains
hash(key)
File “/home/blaine/miniconda3/envs/qiime2-2017.9/lib/python3.5/site-packages/pandas/core/indexes/base.py”, line 1667, in hash
raise TypeError(“unhashable type: %r” % type(self).name)
TypeError: unhashable type: ‘Float64Index’
Thank you for your time!
All the best,
Blaine