# Merge biom files in MetaPhlAn

**URL:** https://forum.biobakery.org/t/merge-biom-files-in-metaphlan/2082
**Category:** MetaPhlAn
**Created:** [May 17, 2021, 7:35am UTC](https://forum.biobakery.org/t/merge-biom-files-in-metaphlan/2082 "2021-05-17T07:35:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MinJi\_Kim](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/minji_kim/32/782_2.png) [@MinJi\_Kim](https://forum.biobakery.org/u/MinJi_Kim)
#### Post date: [May 17, 2021, 7:35am UTC](https://forum.biobakery.org/t/merge-biom-files-in-metaphlan/2082/1 "2021-05-17T07:35:13Z")

</div>

Hello,  
I want to merge the biom files into one biom file for statistic analysis in RStudio.  
Can anyone please tell me how can I merge biom files into one biom file?

Thanks,  
MinJi

---

<div class="post-metadata">

### Author: ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)
#### Post date: [May 17, 2021, 9:24am UTC](https://forum.biobakery.org/t/merge-biom-files-in-metaphlan/2082/2 "2021-05-17T09:24:19Z")

</div>

Hi @MinJi_Kim,  
MetaPhlAn does not provide a script for merging BIOM files, but you could have a look at the `biom.table.Table.merge` function from the `biom-format` python package

---

<div class="post-metadata">

### Author: ![MinJi\_Kim](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/minji_kim/32/782_2.png) [@MinJi\_Kim](https://forum.biobakery.org/u/MinJi_Kim)
#### Post date: [May 18, 2021, 5:55am UTC](https://forum.biobakery.org/t/merge-biom-files-in-metaphlan/2082/3 "2021-05-18T05:55:38Z")

</div>

Thank you for replying 🙂
