# How to convert relative abundance data (from other tools) to QIIME2 taxa bar plots?

**URL:** https://forum.qiime2.org/t/how-to-convert-relative-abundance-data-from-other-tools-to-qiime2-taxa-bar-plots/18681
**Category:** User Support
**Created:** [February 28, 2021, 2:32pm UTC](https://forum.qiime2.org/t/how-to-convert-relative-abundance-data-from-other-tools-to-qiime2-taxa-bar-plots/18681 "2021-02-28T14:32:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fgara](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/f/439d5e/32.png) [@fgara](https://forum.qiime2.org/u/fgara)
#### Post date: [February 28, 2021, 2:32pm UTC](https://forum.qiime2.org/t/how-to-convert-relative-abundance-data-from-other-tools-to-qiime2-taxa-bar-plots/18681/1 "2021-02-28T14:32:14Z")

</div>

Hello,

I have some abundance data generated from other tools in the form of .csv data.  
They contain the taxa ids and their levels of abundance.  
Is there a way to visualize these data as QIIME2 taxa bar plots, so I can combine these with my other data that were analyzed with QIIME2?

Many thanks!

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [February 28, 2021, 4:14pm UTC](https://forum.qiime2.org/t/how-to-convert-relative-abundance-data-from-other-tools-to-qiime2-taxa-bar-plots/18681/2 "2021-02-28T16:14:23Z")

</div>

Hi!  
1 Convert a .csv file to .tsv and then to a biom file. This one you can import to Qiime as a feature table.

`biom convert -i feature-table.tsv -o feature-table.biom --table-type="OTU table" --to-hdf5`

```
qiime tools import \
  --input-path feature-table.biom \
  --type 'FeatureTable[Frequency]' \
  --input-format BIOMV210Format \
  --output-path feature-table.qza

```

2 You need a taxonomy file. If you have it outside of Qiime, make sure that it looks like a .tsv file used in Qiime2 taxonomy artifact. To check, how it should be formated, you can open as an archive a taxonomy.qza file, produced earlier in Qiime2 and navigate to data/ directory inside. When the file properly formatted, import it to Qiime.

```
qiime tools import \
  --type 'FeatureData[Taxonomy]' \
  --input-path taxonomy.tsv \
  --output-path taxonomy.qza

```

3 You also need a metadata file for this data.

If you have all three files, you are good to go and create a barplot.

---

<div class="post-metadata">

### Author: ![fgara](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/f/439d5e/32.png) [@fgara](https://forum.qiime2.org/u/fgara)
#### Post date: [February 28, 2021, 4:45pm UTC](https://forum.qiime2.org/t/how-to-convert-relative-abundance-data-from-other-tools-to-qiime2-taxa-bar-plots/18681/3 "2021-02-28T16:45:23Z")

</div>

Hi @timanix,

Thank you so much for your super helpful reply!

---

<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 31, 2021, 10:45pm UTC](https://forum.qiime2.org/t/how-to-convert-relative-abundance-data-from-other-tools-to-qiime2-taxa-bar-plots/18681/4 "2021-03-31T22:45:27Z")

</div>

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