# How to convert txt to qzv

**URL:** https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810
**Category:** Other Bioinformatics Tools
**Created:** [November 21, 2025, 2:49pm UTC](https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810 "2025-11-21T14:49:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![SouthGateProject](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/59ef9b/32.png) [@SouthGateProject](https://forum.qiime2.org/u/SouthGateProject)
#### Post date: [November 21, 2025, 2:49pm UTC](https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810/1 "2025-11-21T14:49:31Z")

</div>

I need to convert taxonomy.txt to taxonomy .qzv. The following conmand does not work.

Error information:

[taxonomy.txt](https://forum.qiime2.org/uploads/short-url/vB8EjHBimUtEH6zrvakFGks6UNs.txt) (2.1 MB)

TypeError: classifier.txt does not appear to be a BIOM file!

```auto
biom convert -i taxonomy.txt -o taxonomy.biom --table-type "Table" --to-hdf5

```

---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [November 21, 2025, 5:20pm UTC](https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810/2 "2025-11-21T17:20:52Z")

</div>

Hi @SouthGateProject,

To go from a taxonomy.txt to a taxonomy.qza, there are a few steps.

1. Import the taxonomy.txt into QIIME 2 so you can get a taxonomy.qza

```auto
qiime tools import --input-path <path to taxonomy.txt> --output-path taxonomy.qza --type 'FeatureData[Taxonomy]'

```

1. Next, you will need to visualize your taxonomy.qza to get it to be a taxonomy.qzv

```auto
qiime metadata tabulate \
  --m-input-file taxonomy.qza \
  --o-visualization taxonomy.qzv

```

I hope this helps!

---

<div class="post-metadata">

### Author: ![SouthGateProject](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/59ef9b/32.png) [@SouthGateProject](https://forum.qiime2.org/u/SouthGateProject)
#### Post date: [November 24, 2025, 7:23am UTC](https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810/3 "2025-11-24T07:23:42Z")

</div>

There was a problem importing taxonomy.txt:

taxonomy.txt is not a(n) TSVTaxonomyFormat file:

['Feature ID', 'Taxon'] must be the first two header values. The first two header values provided are: ['OTUID', 'Domain'] (on line 1).

It must be tsv format?

---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [November 24, 2025, 3:14pm UTC](https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810/4 "2025-11-24T15:14:51Z")

</div>

Hi @SouthGateProject,  
Yes, a Taxonomy file in QIIME 2 is a TSV.

What that error is saying is that QIIME 2 expects the header of your file to be "'Feature ID' and 'Taxon' but yours says 'OTUID' and 'Domain'.

Can you edit your file so that the header says 'Feature ID' and 'Taxon', and try to import?

---

<div class="post-metadata">

### Author: ![SouthGateProject](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/59ef9b/32.png) [@SouthGateProject](https://forum.qiime2.org/u/SouthGateProject)
#### Post date: [November 25, 2025, 7:06am UTC](https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810/5 "2025-11-25T07:06:10Z")

</div>

@cherman2 Thanks. The error has been solved.

---

<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: [December 26, 2025, 1:06pm UTC](https://forum.qiime2.org/t/how-to-convert-txt-to-qzv/33810/6 "2025-12-26T13:06:31Z")

</div>

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