# After qiime phylogeny filter-table does one need qiime phylogeny "filter-sequence"?

**URL:** <https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486>\
**Category:** User Support\
**Tags:** tree, filtering\
**Created:** [March 20, 2018, 12:38pm UTC](https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486 "2018-03-20T12:38:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Czechowski](https://forum.qiime2.org/user_avatar/forum.qiime2.org/paul_czechowski/32/1482_2.png) [@Paul\_Czechowski](https://forum.qiime2.org/u/Paul_Czechowski)\
**Post date:** [March 20, 2018, 12:38pm UTC](https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486/1 "2018-03-20T12:38:07Z")

</div>

Dear Qiime develepment team,

My questions is:

- Does alignment masking remove sequences?
  - If so then running `qiime phylogeny filter-table ...` would be necessary, as I did it here (below).
  - If so then the unaligned sequences in the representative set need to be filtered by tree tips, the analogous command would be something like `qiime phylogeny "filter-sequence"` or at least filtering the rep.set by sequences in the masked alignment. But this isn't implemnted. Is tghis a missing feature, or am I totally wrong?

I am doing this:

```auto
printf "Retaining features with tree-tips...\n"
qiime phylogeny filter-table \
  --i-table "$trpth"/"$intab" \
  --i-tree "$trpth"/"$mptpth" \
  --o-filtered-table "$trpth"/"$ottab" \
 --verbose 

```

- The input table is a FeatureTable
- The tree is made from a masked alignment of the representative sequences belonging to the FeatureTable

Thanks for working on Qiime a lot, please excuse my brevity. Kind regards, Paul

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [March 20, 2018, 12:41pm UTC](https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486/2 "2018-03-20T12:41:28Z")

</div>



---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [March 20, 2018, 6:37pm UTC](https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486/3 "2018-03-20T18:37:29Z")

</div>

Hi @Paul_Czechowski,  
Alignment masking does not remove sequences, so you don't need to filter the table after masking.

---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [March 20, 2018, 6:37pm UTC](https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486/4 "2018-03-20T18:37:32Z")

</div>



---

<div class="post-metadata">

**Author:** ![Paul\_Czechowski](https://forum.qiime2.org/user_avatar/forum.qiime2.org/paul_czechowski/32/1482_2.png) [@Paul\_Czechowski](https://forum.qiime2.org/u/Paul_Czechowski)\
**Post date:** [March 21, 2018, 2:36pm UTC](https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486/5 "2018-03-21T14:36:15Z")

</div>

Thank you very much for your reply. I appreciate the information very much @gregcaporaso. Kind regards, Paul

---

<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:** [April 21, 2018, 8:36pm UTC](https://forum.qiime2.org/t/after-qiime-phylogeny-filter-table-does-one-need-qiime-phylogeny-filter-sequence/3486/6 "2018-04-21T20:36:29Z")

</div>

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