# CSV to a qiime2 readable format

**URL:** https://forum.qiime2.org/t/csv-to-a-qiime2-readable-format/2284
**Category:** User Support
**Tags:** pending-development, tsv, biom, import, feature-table
**Created:** [December 19, 2017, 6:19pm UTC](https://forum.qiime2.org/t/csv-to-a-qiime2-readable-format/2284 "2017-12-19T18:19:53Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [December 19, 2017, 11:08pm UTC](https://forum.qiime2.org/t/csv-to-a-qiime2-readable-format/2284/3 "2017-12-19T23:08:07Z")

</div>

Hi @coralgal! We don't currently support importing CSV or TSV formatted OTU tables. We have an [open issue](https://github.com/qiime2/q2-types/issues/140) tracking this feature, and we'll follow up here when it's available in a release!

In the meantime, you can use the `biom convert` tool (which comes installed with QIIME 2) to convert your CSV OTU table into a .biom file. See the [`biom convert` tutorial](http://biom-format.org/documentation/biom_conversion.html) for details; you'll first need to convert your CSV file to TSV. Both JSON and HDF5 versions of the .biom file format are supported by the QIIME 2 importer. Once you have a .biom file, follow [this section of the importing guide](https://docs.qiime2.org/2017.11/tutorials/importing/#feature-table-data) to import your .biom file into a `FeatureTable[Frequency]` artifact (or `FeatureTable[RelativeFrequency]` if your data are relative abundances instead of counts).

> [@coralgal](#):
>
> I would like to get out a weighted unifrac and eventually some heatmaps.

Once you have a feature table artifact, you can use `diversity core-metrics-phylogenetic` or `diversity beta-phylogenetic` to perform weighted UniFrac analyes. See the [Moving Pictures tutorial](https://docs.qiime2.org/2017.11/tutorials/moving-pictures/) for examples of alpha and beta diversity analyses. To produce heatmaps of your feature table, check out `feature-table heatmap`.

> [@coralgal](#):
>
> Would the output be a feature table? A rooted tree?

The imported .biom file will be a `FeatureTable[Frequency]` artifact. If you have a phylogenetic tree, where tree tips correspond to features in the feature table (e.g. OTUs), you can import a Newick file following [this section of the importing guide](https://docs.qiime2.org/2017.11/tutorials/importing/#phylogenetic-trees-unrooted). Only an example of importing an unrooted tree is shown, but if you have a rooted tree the process is largely the same, you'd just use `--type Phylogeny[Rooted]`. Once you have a rooted phylogeny, you can use the tree in phylogenetic diversity analyses such as weighted UniFrac (the Moving Pictures tutorial describes the tree building and rooting steps).

> [@coralgal](#):
>
> I’m super lost, SOS.

If you're new to QIIME 2 or these types of analyses, I recommend checking out the [Getting Started guide](https://docs.qiime2.org/2017.11/getting-started/). The tutorials are a great way to not only learn QIIME 2, but also to discover different techniques for analyzing and visualizing the data you have on hand. Let us know if you have follow-up questions (preferably in separate forum topics).

---

_[View the full topic](https://forum.qiime2.org/t/csv-to-a-qiime2-readable-format/2284)._
