# Strange output for metaphlan! Parent level taxa unclassified, but getting child level taxa resolution

**URL:** https://forum.biobakery.org/t/strange-output-for-metaphlan-parent-level-taxa-unclassified-but-getting-child-level-taxa-resolution/723
**Category:** MetaPhlAn
**Created:** [July 15, 2020, 12:46pm UTC](https://forum.biobakery.org/t/strange-output-for-metaphlan-parent-level-taxa-unclassified-but-getting-child-level-taxa-resolution/723 "2020-07-15T12:46:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DEEPCHANDA7](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@DEEPCHANDA7](https://forum.biobakery.org/u/DEEPCHANDA7)
#### Post date: [July 15, 2020, 12:46pm UTC](https://forum.biobakery.org/t/strange-output-for-metaphlan-parent-level-taxa-unclassified-but-getting-child-level-taxa-resolution/723/1 "2020-07-15T12:46:31Z")

</div>

Hi community (@fbeghini ) I am using MetaPhlAn3 and getting some output like:

> k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Clostridiales|f\_\_Clostridiales\_unclassified|g\_\_Lawsonibacter 2|1239|186801|186802||2172004 0.46367

Here, we are getting `genus` level classification “Lawsonibacter”, but the `family` remains unclassified (same thing happened for many other taxa as well). This is leading to downstream analysis problem. When I tried to load it in STAMP software, it is showing some `ERROR` and not importing my stamp compatible profile file ( `.spf file` ) :

```auto
 Error reading profile file
 Child g__Gemella has an unclassified parent.

```

The same type of profiling problemWhy am I not getting family but getting genus level resolution? Isn’t it strange???

Thanks,  
DC7

---

<div class="post-metadata">

### Author: ![franzosa](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/franzosa/32/3511_2.png) [@franzosa](https://forum.biobakery.org/u/franzosa)
#### Post date: [July 20, 2020, 9:32pm UTC](https://forum.biobakery.org/t/strange-output-for-metaphlan-parent-level-taxa-unclassified-but-getting-child-level-taxa-resolution/723/2 "2020-07-20T21:32:15Z")

</div>

This is a result of a known genus not having a nicely defined parent family in the NCBI taxonomy. When this happens, MetaPhlAn fills in a family using the name of the next highest taxonomic rank (in this case the order Clostridiales). STAMP must be flagging the string “unclassified” in the family name automatically. One option would be to use `sed` to replace “unclassified” with another string that won’t raise a flag for STAMP.
