# Plugin error: quality-control evaluate-composition

**URL:** https://forum.qiime2.org/t/plugin-error-quality-control-evaluate-composition/3205
**Category:** User Support
**Tags:** evaluate-composition
**Created:** [February 26, 2018, 8:23pm UTC](https://forum.qiime2.org/t/plugin-error-quality-control-evaluate-composition/3205 "2018-02-26T20:23:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hotblast](https://forum.qiime2.org/user_avatar/forum.qiime2.org/hotblast/32/1819_2.png) [@hotblast](https://forum.qiime2.org/u/hotblast)
#### Post date: [February 26, 2018, 8:23pm UTC](https://forum.qiime2.org/t/plugin-error-quality-control-evaluate-composition/3205/1 "2018-02-26T20:23:28Z")

</div>

Since I want to compare the relative taxonomic composition between mock community and Qiime2 taxa barplot result, so i convert the expected and observed tax relative composition (%) table to biom file, then import to qiime2 as qza file using following commands.  
biom convert -i Qiime2\_PE\_L2.txt -o Qiime2\_PE\_L2\_tax\_hdf5.biom --table-type="Taxon table" --to-hdf5  
[Expect\_L4\_tax\_hdf5\_biom.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/c/c3465aef170239b84299113fdaf67c7fb35bb4b2.qza) (4.8 KB)  
[Qiime2\_PE\_L4.txt](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/3/391557d9b84761d7e0841258efb0445d7d444a01.txt) (46.8 KB)  
[Qiime1\_L4\_tax\_hdf5\_biom.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/f/ff0350e424c8c0194767faba1bfceabc1706975c.qza) (36.8 KB)

Then i ran evaluate-composition plugin and got following errors

Plugin error from quality-control:

Requested level of 5 is larger than the maximum level available in taxonomy data (4).

Debug info has been saved to /tmp/qiime2-q2cli-err-4ofg001j.log  
(qiime2-2017.12) 147760@defcon2:~/scratch/Shannon/Benchmark$ more /tmp/qiime2-q2cli-err-4ofg001j.log  
Traceback (most recent call last):  
File "/opt/apps/Miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2cli/commands.py", line 224, in **call**  
results = action(\*\*arguments)  
File "", line 2, in evaluate\_composition  
File "/opt/apps/Miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py", line 228, in bound\_callable  
output\_types, provenance)  
File "/opt/apps/Miniconda3/envs/qiime2-2017.12/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 "/opt/apps/Miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_quality\_control/quality\_control.py", line 69, in evaluate\_composition  
plot\_observed\_features\_ratio=plot\_observed\_features\_ratio)  
File "/opt/apps/Miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_quality\_control/\_utilities.py", line 96, in \_evaluate\_composition  
results, vectors = \_compute\_per\_level\_accuracy(exp, obs, metadata, depth)  
File "/opt/apps/Miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_quality\_control/\_utilities.py", line 153, in \_compute\_per\_level\_accuracy  
exp\_collapsed = \_collapse\_table(exp, level)  
File "/opt/apps/Miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_quality\_control/\_utilities.py", line 291, in \_collapse\_table  
table.columns, index=table.columns, name='Taxon'), level)  
File "/opt/apps/Miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_taxa/\_method.py", line 27, in collapse  
(level, max\_observed\_level))  
ValueError: Requested level of 5 is larger than the maximum level available in taxonomy data (4).

Would anyone help me to find where i went wrong?  
thanks  
Gary  
qiime tools import --input-path Qiime2\_PE\_L4\_tax\_hdf5.biom --type 'FeatureTable[RelativeFrequency]' --source-format BIOMV210Format --output-path Qiime2\_PE\_L4\_tax\_hdf5\_biom.qza

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [February 27, 2018, 12:57am UTC](https://forum.qiime2.org/t/plugin-error-quality-control-evaluate-composition/3205/2 "2018-02-27T00:57:04Z")

</div>

> [@hotblast](#):
>
> Would anyone help me to find where i went wrong?

Absolutely 😄

Looks like you have collapsed your taxonomy to 4 levels. evaluate-composition expects 7 levels by default (I should probably just make this a required parameter, rather than setting a default 😞). Set the `--p-depth` parameter to 4 and everything should be okay 😌

I hope that helps!

---

<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: [March 30, 2018, 6:57am UTC](https://forum.qiime2.org/t/plugin-error-quality-control-evaluate-composition/3205/3 "2018-03-30T06:57:10Z")

</div>

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