# MetaPhlan output

**URL:** <https://forum.biobakery.org/t/metaphlan-output/1379>\
**Category:** MetaPhlAn\
**Created:** [December 2, 2020, 8:59pm UTC](https://forum.biobakery.org/t/metaphlan-output/1379 "2020-12-02T20:59:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NicoT](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nicot/32/507_2.png) [@NicoT](https://forum.biobakery.org/u/NicoT)\
**Post date:** [December 2, 2020, 8:59pm UTC](https://forum.biobakery.org/t/metaphlan-output/1379/1 "2020-12-02T20:59:50Z")

</div>

Hi,

First, thanks for the pipelines!  
I use Metaphlan3 with the tax\_level “g” parameters and I have duplicates (some genus are present 4 times) in my output. I wonder if it is normal?

I also wonder if there is a way to adapt Metaphlan and Humann output to phyloseq by any chance?

Cheers,

Nico

---

<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:** [December 2, 2020, 9:27pm UTC](https://forum.biobakery.org/t/metaphlan-output/1379/2 "2020-12-02T21:27:32Z")

</div>

That’s weird, could you share with me the bowtie2out file and the command line you used?

About importing MetaPhlAn and HUMAnN profiles, have a look at this function here [https://gist.github.com/lwaldron/512d1925a8102e921f05c5b25de7ec94](https://gist.github.com/lwaldron/512d1925a8102e921f05c5b25de7ec94) , the newick file for MetaPhlAn 3 can be found in the GitHub repository ([https://github.com/biobakery/MetaPhlAn/blob/master/metaphlan/utils/mpa\_v30\_CHOCOPhlAn\_201901\_species\_tree.nwk](https://github.com/biobakery/MetaPhlAn/blob/master/metaphlan/utils/mpa_v30_CHOCOPhlAn_201901_species_tree.nwk))

---

<div class="post-metadata">

**Author:** ![NicoT](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nicot/32/507_2.png) [@NicoT](https://forum.biobakery.org/u/NicoT)\
**Post date:** [December 4, 2020, 2:16pm UTC](https://forum.biobakery.org/t/metaphlan-output/1379/3 "2020-12-04T14:16:41Z")

</div>

Hi!

Thanks for the tree and the link.

Sure, here is an example of the bowtie2out and the command used was:

_for sample in $(cat Sample\_ID);do metaphlan $sample.PE.fasta.bowtie2out.txt --nproc 10 --input\_type bowtie2out --tax\_lev “g” -o $sample.profiled\_counts\_metagenome\_genus.txt; done_

Cheers,

Nico

[![](https://canada1.discourse-cdn.com/flex027/uploads/biobakery/original/1X/bcec071d2daf94f074e0d45f573498975b42d6b0.png)7-H0.PE.fasta.bowtie2out.txt](https://drive.google.com/file/d/1kMVLPkHhz08Xuy-dPyANT_tarVfkRTKm/view?usp=drive_web)  
[![](https://canada1.discourse-cdn.com/flex027/uploads/biobakery/original/1X/bcec071d2daf94f074e0d45f573498975b42d6b0.png)9-H2.PE.fasta.bowtie2out.txt](https://drive.google.com/file/d/11LbQcp3sQyfniZtGnS3UQLoaUovAdcYy/view?usp=drive_web)  
[![](https://canada1.discourse-cdn.com/flex027/uploads/biobakery/original/1X/bcec071d2daf94f074e0d45f573498975b42d6b0.png)merged\_genus\_abundance\_table.txt](https://drive.google.com/file/d/1UHYroWlB4iiCmFctNHWBBfhBjkJyCLG1/view?usp=drive_web)

---

<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:** [December 7, 2020, 3:15pm UTC](https://forum.biobakery.org/t/metaphlan-output/1379/4 "2020-12-07T15:15:17Z")

</div>

Hi Nico,  
The presence of duplicate genera was due to a bug present in merge\_metaphlan\_tables, I fixed that, you can get the fixed script on the GitHub repository, I’ll push a new build on conda soon.

---

<div class="post-metadata">

**Author:** ![NicoT](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nicot/32/507_2.png) [@NicoT](https://forum.biobakery.org/u/NicoT)\
**Post date:** [December 9, 2020, 6:16pm UTC](https://forum.biobakery.org/t/metaphlan-output/1379/5 "2020-12-09T18:16:47Z")

</div>

Hi!

Great! I will get the new version today and test it.

Cheers

---

<div class="post-metadata">

**Author:** ![NicoT](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nicot/32/507_2.png) [@NicoT](https://forum.biobakery.org/u/NicoT)\
**Post date:** [December 9, 2020, 9:56pm UTC](https://forum.biobakery.org/t/metaphlan-output/1379/6 "2020-12-09T21:56:47Z")

</div>

Hi again!,

Sorry to bother, do you know the default value of min\_ab option in metaphlan?

Cheers

---

<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:** [December 10, 2020, 8:14am UTC](https://forum.biobakery.org/t/metaphlan-output/1379/7 "2020-12-10T08:14:24Z")

</div>

`min_ab` is set at 0.1 but it is used only for the `clade_specific_strain_tracker` analysis type
