# Adding qiime2 taxonomy data to a .biom file

**URL:** https://forum.qiime2.org/t/adding-qiime2-taxonomy-data-to-a-biom-file/1516
**Category:** User Support
**Tags:** taxonomy, biom, export
**Created:** [October 16, 2017, 4:59pm UTC](https://forum.qiime2.org/t/adding-qiime2-taxonomy-data-to-a-biom-file/1516 "2017-10-16T16:59:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mc92](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mc92](https://forum.qiime2.org/u/mc92)
#### Post date: [October 16, 2017, 4:59pm UTC](https://forum.qiime2.org/t/adding-qiime2-taxonomy-data-to-a-biom-file/1516/1 "2017-10-16T16:59:18Z")

</div>

Hello!

I've been trying these steps in order to import the biom file to Qiime1 and summarize the taxa barplot by categories. The export parts worked fine, I think, but when trying to add the metadata values to the biom file this error is returned:  
\_

> biom.exception.BiomParseException: No header line was found in mapping file.

\_

I have changed the biom-taxonomy.tsv file header line in order to reproduce what you wrote on your answer, like this:

> #OTUID taxonomy confidence

This way, when running the code line, the error I reproduced before appears:

> biom add-metadata -i exported/feature-table.biom -o table-with-taxonomy.biom --observation-metadata-fp biom-taxonomy.tsv --sc-separated taxonomy

Do you know where the error could be? Maybe with the table.qza file I am using? I tried using the table file obtained after the trimming step, maybe I should use another one?

Thank you very much in advance!  
Marc

---

<div class="post-metadata">

### Author: ![jairideout](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jairideout/32/9_2.png) [@jairideout](https://forum.qiime2.org/u/jairideout)
#### Post date: [October 16, 2017, 11:33pm UTC](https://forum.qiime2.org/t/adding-qiime2-taxonomy-data-to-a-biom-file/1516/3 "2017-10-16T23:33:24Z")

</div>

Hi @mc92! Can you double-check that `#OTUID`, `taxonomy`, and `confidence` are separated by tab characters instead of spaces? If that doesn't work, can you send me the `biom-taxonomy.tsv` file so I can take a look?

---

<div class="post-metadata">

### Author: ![mc92](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mc92](https://forum.qiime2.org/u/mc92)
#### Post date: [October 17, 2017, 4:35pm UTC](https://forum.qiime2.org/t/adding-qiime2-taxonomy-data-to-a-biom-file/1516/5 "2017-10-17T16:35:07Z")

</div>

Hey!

I tried writting the header line from zero and now it worked, so I assume I had some space I didn't see previously.  
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: [November 17, 2017, 10:35pm UTC](https://forum.qiime2.org/t/adding-qiime2-taxonomy-data-to-a-biom-file/1516/6 "2017-11-17T22:35:21Z")

</div>

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