# Why .nwk file showed as .txt file in galaxy

**URL:** <https://help.galaxyproject.org/t/why-nwk-file-showed-as-txt-file-in-galaxy/16568>\
**Category:** usegalaxy.eu support\
**Tags:** upload, tool-help, codeml\
**Created:** [December 12, 2025, 4:42am UTC](https://help.galaxyproject.org/t/why-nwk-file-showed-as-txt-file-in-galaxy/16568 "2025-12-12T04:42:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinglin](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jinglin](https://help.galaxyproject.org/u/jinglin)\
**Post date:** [December 12, 2025, 4:42am UTC](https://help.galaxyproject.org/t/why-nwk-file-showed-as-txt-file-in-galaxy/16568/1 "2025-12-12T04:42:24Z")

</div>

Hi all,

I’m trying to use codeML PAML package in glaaxy, it need newick tree. I made the maxium likelihood tree in MEGA and export as .nwk file. The galaxy tool require .nhx file, so I try to convert .nwk to .nhx via ete in galaxy, but it said can’t find .nwk file in my file list, in the file detail part, my .nwk file is marked as .txt file. how can I fix this problem? Thank you!

---

<div class="post-metadata">

**Author:** ![jinglin](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jinglin](https://help.galaxyproject.org/u/jinglin)\
**Post date:** [December 12, 2025, 7:50am UTC](https://help.galaxyproject.org/t/why-nwk-file-showed-as-txt-file-in-galaxy/16568/2 "2025-12-12T07:50:55Z")

</div>

Edited datatype to nhx to fix it.

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [December 12, 2025, 6:14pm UTC](https://help.galaxyproject.org/t/why-nwk-file-showed-as-txt-file-in-galaxy/16568/3 "2025-12-12T18:14:10Z")

</div>

Hi @jinglin

Glad you discovered how to adjust the datatype, and thanks for posting back the solution!

I’m going to post some FAQs for anyone else who find this topic with a search.

> [@Minimap2 accepted formats](https://help.galaxyproject.org/t/minimap2-accepted-formats/16466/2):
>
> ### What to do
> 
> You can update the metadata directly or auto-detect it again.
> 
> - Single dataset → [FAQ: Changing the datatype](https://galaxyproject.github.io/training-material/faqs/galaxy/datasets_change_datatype.html) && [FAQ: Detecting the datatype (file format)](https://galaxyproject.github.io/training-material/faqs/galaxy/datasets_detect_datatype.html)
> - Collection batches → [FAQ: Changing the datatype of a collection](https://galaxyproject.github.io/training-material/faqs/galaxy/collections_change_datatype.html)

Galaxy will try to detect the exact datatype but sometimes the overlap in content between many file types makes that difficult. In those cases, a more generic type is the fall back. And while a wrong “guess” can also indicate a format issue .. that isn’t always true of course! Directly reassigning is the solution. 🙂

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [April 20, 2026, 5:06pm UTC](https://help.galaxyproject.org/t/why-nwk-file-showed-as-txt-file-in-galaxy/16568/4 "2026-04-20T17:06:44Z")

</div>


