# Problem with Biom add metadata

**URL:** https://forum.qiime2.org/t/problem-with-biom-add-metadata/17788
**Category:** Other Bioinformatics Tools
**Tags:** taxonomy, import, feature-table
**Created:** [December 14, 2020, 8:07am UTC](https://forum.qiime2.org/t/problem-with-biom-add-metadata/17788 "2020-12-14T08:07:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![YuZhang](https://forum.qiime2.org/user_avatar/forum.qiime2.org/yuzhang/32/11537_2.png) [@YuZhang](https://forum.qiime2.org/u/YuZhang)
#### Post date: [December 14, 2020, 8:07am UTC](https://forum.qiime2.org/t/problem-with-biom-add-metadata/17788/1 "2020-12-14T08:07:43Z")

</div>

> [@Exporting and modifying BIOM tables (e.g. adding taxonomy annotations)](https://forum.qiime2.org/t/exporting-and-modifying-biom-tables-e-g-adding-taxonomy-annotations/3630):
>
> Creating a TSV BIOM table The following is based on [a post](https://forum.qiime2.org/t/how-to-add-taxonomy-to-feature-table-qza-and-get-otu-id-of-each-taxonomy-and-number-of-otus/3470/22) by @gregcaporaso. $ qiime tools export table.qza --output-dir ./ $ biom convert -i feature-table.biom -o feature-table.tsv --to-tsv $ biom head -i feature-table.tsv # Constructed from biom file #OTU ID L1S105 L1S140 L1S208 L1S257 L1S281 4b5eeb300368260019c1fbc7a3c718fc 2222.0 0.0 0.0 0.0 0.0 fe30ff0f71a38a39cf1717ec2be3a2fc 5.0 0.0 0.0 0.0 0.0 d29fe3c70564fc0f69f2c03e0d1e5561 0.0 0.0 0.0 0.0 0.0 868528ca947bc57b69ffdf83e6b73bae 0.0 2276…

I did it like according to above,and my command like below

> ```
> qiime tools export \
> --input-path /share/disk0/user/maj/YuZhang/micro_plastic_2020/16s/Download/table-dada2-3.qza \
> --output-path exported-feature-table \
> qiime tools export \
> --input-path /share/disk0/user/maj/YuZhang/micro_plastic_2020/16s/Analysis/try1/taxonomy.qza \
> --output-path exported-taxonomy-table \
> cp exported-taxonomy-table/taxonomy.tsv biom-taxonomy.tsv
> biom add-metadata -i exported-feature-table/feature-table.biom -o table-with-taxonomy.biom --observation-metadata-fp biom-taxonomy.tsv --sc-separated taxonomy
> biom convert -i table-with-taxonomy.biom \
> -o table-with-taxonomy.txt \
> --to-tsv 
> 
> ```

and I changed the first line in biom taxonomy,as follow:

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/f81d4db8a2d7310ddc9d31d2c926f306a8fa533e.png)

but ,the result is

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/4/449f5bceea0c16f184098fb070883d9110fc2c58.png)

There isnt taxonomy.I dont know why.  
Please help me.

Yu

---

<div class="post-metadata">

### Author: ![YuZhang](https://forum.qiime2.org/user_avatar/forum.qiime2.org/yuzhang/32/11537_2.png) [@YuZhang](https://forum.qiime2.org/u/YuZhang)
#### Post date: [December 17, 2020, 12:40pm UTC](https://forum.qiime2.org/t/problem-with-biom-add-metadata/17788/2 "2020-12-17T12:40:30Z")

</div>

Sir，I used the measure you shared，but it didnt work.

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

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/e/e3a94a680b2ddc38b19bd1460de404d8fc4b332f.png)  
 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/2/280ef2134cd700684e2aef62fb14f844a639aed0.png)  
 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/8/8fb41b02dd3830f2354dcb64ca034bf156954056.png)

---

<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: [January 14, 2021, 2:07pm UTC](https://forum.qiime2.org/t/problem-with-biom-add-metadata/17788/3 "2021-01-14T14:07:46Z")

</div>

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