# MetaPhlaAn3 Genome List

**URL:** <https://forum.biobakery.org/t/metaphlaan3-genome-list/970>\
**Category:** MetaPhlAn\
**Created:** [September 3, 2020, 4:26pm UTC](https://forum.biobakery.org/t/metaphlaan3-genome-list/970 "2020-09-03T16:26:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kescobo](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/kescobo/32/47_2.png) [@kescobo](https://forum.biobakery.org/u/kescobo)\
**Post date:** [September 15, 2020, 7:17pm UTC](https://forum.biobakery.org/t/metaphlaan3-genome-list/970/4 "2020-09-15T19:17:29Z")

</div>

> [@cazzlewazzle89](#):
>
> Either my brain stopped working or I was trying to overcomplicate matters by attempting to the tree with Unix before reading into R.

That’s not totally insensible - a similar thing can be accomplished with `sed` or `perl`, you just need to get the regular expression right. Something like the following (untested)

```auto
$ sed -E 's/^GCA_[0-9]+\|//' oldfile.txt > newfile.txt

```

---

_[View the full topic](https://forum.biobakery.org/t/metaphlaan3-genome-list/970)._
