# Why does most my sample has uncategorized bacteria?

**URL:** <https://forum.qiime2.org/t/why-does-most-my-sample-has-uncategorized-bacteria/15951>\
**Category:** User Support\
**Tags:** feature-classifier, taxonomy\
**Created:** [August 4, 2020, 8:01pm UTC](https://forum.qiime2.org/t/why-does-most-my-sample-has-uncategorized-bacteria/15951 "2020-08-04T20:01:37Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)\
**Post date:** [August 10, 2020, 2:39pm UTC](https://forum.qiime2.org/t/why-does-most-my-sample-has-uncategorized-bacteria/15951/12 "2020-08-10T14:39:38Z")

</div>

Hi @amm59063,

Note the `d __Bacteria;__ ; __;__ ; __;__ ; __` only appears in that form within the visualizer. So searching for that pattern will not work. The `;__ ; __;__ ; __;__ ; __` is simply filled in as you view more ranks in the visualizer. In actuality, the taxonomy information may only contain `d__ Bacteria`.

The best way to figure out what to search for is to make a `sample_taxonomy_paired.qzv` file and view that.

I usually run something like this when filtering SILVA taxonomy:

```auto
  --p-mode 'contains' \
  --p-include 'p__' \
  --p-exclude 'p__;,Eukaryota,Chloroplast,Mitochondria,Unassigned' \

```

Note the `p __` in `--p-include`, and `p__ ;` in `--p-exclude`. The include keeps only taxa with `p __` in the label. However, we do not want empty phylum labels, i.e. `p__ ;` (note the semi-colon). These two combined have the effect of explicitly removing all taxa that do not have at least a phylum-level designation. So, in this case the `d __Bacteria; p__ ; ...` or `d__Bacteria ...` (similarly for Archaea too) will be removed. Depending on the reference database you are using you may need to change `Unassigned` to `Unclassified` or simply add it.

-Mike

---

_[View the full topic](https://forum.qiime2.org/t/why-does-most-my-sample-has-uncategorized-bacteria/15951)._
