# Change header names from Feature ID to OTUID in exported TSVTaxonomyDirectoryFormat file

**URL:** <https://forum.qiime2.org/t/change-header-names-from-feature-id-to-otuid-in-exported-tsvtaxonomydirectoryformat-file/6653>\
**Category:** User Support\
**Created:** [October 26, 2018, 1:08pm UTC](https://forum.qiime2.org/t/change-header-names-from-feature-id-to-otuid-in-exported-tsvtaxonomydirectoryformat-file/6653 "2018-10-26T13:08:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jasmine84](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@Jasmine84](https://forum.qiime2.org/u/Jasmine84)\
**Post date:** [October 26, 2018, 1:08pm UTC](https://forum.qiime2.org/t/change-header-names-from-feature-id-to-otuid-in-exported-tsvtaxonomydirectoryformat-file/6653/1 "2018-10-26T13:08:48Z")

</div>

Hello

What is the command line to change header names Feature ID to OTU ID?

Best regards,  
Jasmine

---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [October 26, 2018, 7:04pm UTC](https://forum.qiime2.org/t/change-header-names-from-feature-id-to-otuid-in-exported-tsvtaxonomydirectoryformat-file/6653/2 "2018-10-26T19:04:25Z")

</div>

Hi @Jasmine84, When I export a `FeatureData[Taxonomy]` artifact (e.g., as illustrated [here](https://forum.qiime2.org/t/exporting-and-modifying-biom-tables-e-g-adding-taxonomy-annotations/3630/4)) and want to change the header, I typically just open the resulting `.tsv` file in a text editor and make the change. However the following command would also work:

```auto
sed 's/Feature ID/#OTUID/g' taxonomy.tsv > biom-taxonomy.tsv

```

The resulting `biom-taxonomy.tsv` command will then have the new header. (It's usually just quicker for me to make the edit by hand in a text editor than remember how to write a `sed` command.)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Jasmine84](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@Jasmine84](https://forum.qiime2.org/u/Jasmine84)\
**Post date:** [October 31, 2018, 11:02am UTC](https://forum.qiime2.org/t/change-header-names-from-feature-id-to-otuid-in-exported-tsvtaxonomydirectoryformat-file/6653/3 "2018-10-31T11:02:14Z")

</div>

Thanks, it Works!  
However, I must change all three header columns. To create a biom-file with headers from Feature ID, taxon, Confidence to OTUID, taxonomy, confidence. So I did it in the text editor instead.

Best regards, Jasmine

---

<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 1, 2018, 5:02pm UTC](https://forum.qiime2.org/t/change-header-names-from-feature-id-to-otuid-in-exported-tsvtaxonomydirectoryformat-file/6653/4 "2018-12-01T17:02:16Z")

</div>

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