# How to exclude certain kingdom

**URL:** <https://forum.qiime2.org/t/how-to-exclude-certain-kingdom/3978>\
**Category:** User Support\
**Created:** [April 30, 2018, 3:17pm UTC](https://forum.qiime2.org/t/how-to-exclude-certain-kingdom/3978 "2018-04-30T15:17:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Harry](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/h/f6c823/32.png) [@Harry](https://forum.qiime2.org/u/Harry)\
**Post date:** [April 30, 2018, 9:15pm UTC](https://forum.qiime2.org/t/how-to-exclude-certain-kingdom/3978/4 "2018-04-30T21:15:03Z")

</div>

Thanks a lot, it works!

Please allow me to upload my protocol:

First of all, upgrade to qiime2-2018.4

Download the latest Silva 132 qiime compatible full-length classifier.  
Please download at: [Silva 132 classifiers](https://forum.qiime2.org/t/silva-132-classifiers/3698)  
(Silva 132 99% OTUs (full-length, seven-level taxonomy) )

Using the command:  
qiime feature-classifier classify-sklearn --i-classifier silva-132-99-nb-classifier.qza --i-reads YourRepSeqsFromDada2.qza --o-classification taxonomy.qza

Next step is to exclude sequences that your primer does not target, e.g., for archaea specific primers, you should exclude mitochondria, chloroplast, bacteria. Use the command:  
qiime taxa filter-table --i-table YourTableFromDada2.qza --i-taxonomy taxonomy.qza --p-exclude bacteria,chloroplast,mitochondria,eukaryota --o-filtered-table table-filtered.qza,

final step, visualize it: (please note that metadata file MUST be in TSV format)  
qiime taxa barplot --i-table table-filtered.qza --i-taxonomy taxonomy.qza --o-visualization filterred-txonomy.qzv --m-metadata-file YourMetadataFile.tsv

---

_[View the full topic](https://forum.qiime2.org/t/how-to-exclude-certain-kingdom/3978)._
