# Taxa filtering with SILVA taxonomy annotations

**URL:** <https://forum.qiime2.org/t/taxa-filtering-with-silva-taxonomy-annotations/2455>\
**Category:** Silva\
**Tags:** silva, filtering\
**Created:** [January 7, 2018, 11:59pm UTC](https://forum.qiime2.org/t/taxa-filtering-with-silva-taxonomy-annotations/2455 "2018-01-07T23:59:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lexie\_Keding](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lexie_keding/32/403_2.png) [@Lexie\_Keding](https://forum.qiime2.org/u/Lexie_Keding)\
**Post date:** [January 7, 2018, 11:59pm UTC](https://forum.qiime2.org/t/taxa-filtering-with-silva-taxonomy-annotations/2455/1 "2018-01-07T23:59:41Z")

</div>

Hello!

I am trying to filter my feature table by the significant taxa identified by ANCOM at level 7. I downloaded the CSV file of the ANCOM results, and I was hoping to pass the taxonomy results, e.g, "D\_0\_\_Bacteria;D\_1\_\_Bacteroidetes;D\_2\_\_Bacteroidia;D\_3\_\_Bacteroidales;D\_4\_\_Prevotellaceae;D\_5\_\_Prevotella 7;D\_6\_\_uncultured Prevotellaceae bacterium,..." into the --p-include field of the qiime taxa filter-table, but the syntax does not appear to correct/compatible, for example:

(qiime2-2017.12) [lkeding@htseq microbiome\_2017-7]$ nohup qiime taxa filter-table --i-table table.qza --i-taxonomy rep-seqs\_99-1\_taxonomy.qza --p-include D\_0\_\_Bacteria;D\_1\_\_Actinobacteria;D\_2\_\_Actinobacteria;D\_3\_\_Corynebacteriales;D\_4\_\_Corynebacteriaceae;D\_5\_\_Corynebacterium 1;D\_6\_\_Corynebacterium casei --o-filtered-table practice.qza &  
nohup: ignoring input and appending output to ‘nohup.out’

[1]+ Exit 127 D\_6\_\_Corynebacterium casei --o-filtered-table practice.qza  
-bash: D\_1\_\_Actinobacteria: command not found  
-bash: D\_2\_\_Actinobacteria: command not found  
-bash: D\_3\_\_Corynebacteriales: command not found  
-bash: D\_4\_\_Corynebacteriaceae: command not found  
-bash: D\_5\_\_Corynebacterium: command not found  
[1] 35610  
-bash: D\_6\_\_Corynebacterium: command not found  
(qiime2-2017.12) [lkeding@htseq microbiome\_2017-7]$

I know from reading the filtering data tutorial that Greengenes taxonomy has its specific annotations for filtering, does SILVA has something similar? It's also highly possible that this is user error! 🙂

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)\
**Post date:** [January 8, 2018, 11:36pm UTC](https://forum.qiime2.org/t/taxa-filtering-with-silva-taxonomy-annotations/2455/3 "2018-01-08T23:36:17Z")

</div>

Hey @Lexie_Keding,

It looks like the problem is your command doesn't have quotations in it, so bash is seeing those semicolons in the taxonomy string as instructions for it, and then running more commands. Try this out:

```bash
nohup \
qiime taxa filter-table \
  --i-table table.qza \
  --i-taxonomy rep-seqs_99-1_taxonomy.qza \
  --p-include 'D_0 __Bacteria;D_1__ Actinobacteria;D_2 __Actinobacteria;D_3__ Corynebacteriales;D_4 __Corynebacteriaceae;D_5__ Corynebacterium 1;D_6__Corynebacterium casei' \
  --o-filtered-table practice.qza \
&

```

Note the single-quotes around your `include` argument.

Let me know if that works!

---

<div class="post-metadata">

**Author:** ![Lexie\_Keding](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lexie_keding/32/403_2.png) [@Lexie\_Keding](https://forum.qiime2.org/u/Lexie_Keding)\
**Post date:** [January 9, 2018, 1:18am UTC](https://forum.qiime2.org/t/taxa-filtering-with-silva-taxonomy-annotations/2455/5 "2018-01-09T01:18:01Z")

</div>

Hi @ebolyen!

That works perfectly, thanks so much!

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [February 9, 2018, 7:18am UTC](https://forum.qiime2.org/t/taxa-filtering-with-silva-taxonomy-annotations/2455/6 "2018-02-09T07:18:15Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
