# ANCOMBC identical results for non-identical feature tables

**URL:** https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399
**Category:** User Support
**Tags:** ancom-bc
**Created:** [February 26, 2024, 10:20pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399 "2024-02-26T22:20:09Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![dylan](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/e95f7d/32.png) [@dylan](https://forum.qiime2.org/u/dylan)
#### Post date: [February 26, 2024, 10:20pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/1 "2024-02-26T22:20:09Z")

</div>

Hello,

I'm exploring a method to more fully annotate organelle-derived sequences in 16S datasets, and ran ANCOMBC on a dataset before and after filtering a large proportion of mitochondrial sequences.

The results are exactly the same - the spreadsheets underlying the barplot data pre- and post-filtering are identical.

How reasonable is this? Intuitively, it seems that if I'm truly removing exactly what I'm targeting, when I take a chunk of features out of each sample, the proportions of the other features will all increase together, so it makes sense to me why the results wouldn't change. On the other hand, the ANCOMBC data are calculated out to like a dozen decimal places, and every single cell is identical, which is a little spooky.

---

<div class="post-metadata">

### Author: ![Oddant1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/oddant1/32/17130_2.png) [@Oddant1](https://forum.qiime2.org/u/Oddant1)
#### Post date: [February 27, 2024, 5:31pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/2 "2024-02-27T17:31:45Z")

</div>



---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [February 27, 2024, 7:29pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/3 "2024-02-27T19:29:46Z")

</div>

Hi @dylan

> [@dylan](#):
>
> Intuitively, it seems that if I'm truly removing exactly what I'm targeting, when I take a chunk of features out of each sample, the proportions of the other features will all increase together, so it makes sense to me why the results wouldn't change.

Totally! This is my interpretation as well.

> [@dylan](#):
>
> n the other hand, the ANCOMBC data are calculated out to like a dozen decimal places, and every single cell is identical, which is a little spooky.

Definitely spooky 👻  
Could you send both ANCOMBC results so I can compare?

---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [February 27, 2024, 7:29pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/4 "2024-02-27T19:29:49Z")

</div>



---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [February 28, 2024, 3:09pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/5 "2024-02-28T15:09:13Z")

</div>

Hi @dylan,  
I looked at your provenance and I am alittle confused. It looks like the tables went through similar steps.

1. 2 tables were merged together
2. filtered by "d\_\_Bacteria;p\_\_Cyanobacteria;c\_\_Cyanobacteriia;o\_\_Chloroplast,d\_\_Bacteria;p\_\_Proteobacteria;c\_\_Alphaproteobacteria;o\_\_Rickettsiales;f\_\_Mitochondria"
3. filtered by metadata.
4. ran ancombc

according to your Artifact UUIDs, these are not the same files but I am not sure that your filtering was only applied to one of the artifacts.

Does this make sense to you?

Let me know!

---

<div class="post-metadata">

### Author: ![dylan](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/e95f7d/32.png) [@dylan](https://forum.qiime2.org/u/dylan)
#### Post date: [February 29, 2024, 7:08am UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/6 "2024-02-29T07:08:39Z")

</div>

> [@dylan](#):
>
> dataset before and after filtering a large proportion of mitochondrial sequences.

Sorry, this statement was misleading. They’re both filtered, one is just _more_ filtered. The idea is that the annotation step is much better at tagging organelles. A lot more sequences get tagged (and thus filtered) with the modified annotation scheme vs the basic one.

---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [February 29, 2024, 2:46pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/7 "2024-02-29T14:46:08Z")

</div>

Hi @dylan,  
I am still a little confused.

Can you elaborate on how one was filtered more? According to the provenance the exact same taxa filtering command was applied to both tables. Was this filtering step not applied at the qiime taxa filter table step?

> [@dylan](#):
>
> A lot more sequences get tagged (and thus filtered) with the modified annotation scheme vs the basic one.

What do you mean by modified annotation scheme?

---

<div class="post-metadata">

### Author: ![dylan](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/e95f7d/32.png) [@dylan](https://forum.qiime2.org/u/dylan)
#### Post date: [February 29, 2024, 4:39pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/8 "2024-02-29T16:39:59Z")

</div>

I used different references for the annotation method (VSEARCH here) in each workflow. This resulted in more sequences being annotated as "d\_\_Bacteria;p\_\_Proteobacteria;c\_\_Alphaproteobacteria;o\_\_Rickettsiales;f\_\_Mitochondria" in one taxonomy artifact compared to the other (those sequences were mostly annotated as "Unassigned" in the other). Thus the taxonomic filtering step removed a substantially different number of sequences between workflows despite the specific filtering command being identical.

---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [March 1, 2024, 5:51pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/9 "2024-03-01T17:51:04Z")

</div>

Oh I understand now! Thank you for clarification!

Could you try running ancombc without this filtering step? Logically we should see a different result that way. I think this would be a good sanity check.

---

<div class="post-metadata">

### Author: ![dylan](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/e95f7d/32.png) [@dylan](https://forum.qiime2.org/u/dylan)
#### Post date: [March 1, 2024, 9:20pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/10 "2024-03-01T21:20:33Z")

</div>

I'm happy to, running it now ... but would we in fact expect a different result? Isn't 0% filtered just another point on the line with, say, 1% filtered and 5% filtered?

[edit]  
Interesting, the completely unfiltered barplots seem to show the same results, but there are different underlying data.

---

<div class="post-metadata">

### Author: ![colinvwood](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinvwood/32/17303_2.png) [@colinvwood](https://forum.qiime2.org/u/colinvwood)
#### Post date: [March 4, 2024, 5:43pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/11 "2024-03-04T17:43:47Z")

</div>



---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [March 5, 2024, 2:47pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/12 "2024-03-05T14:47:32Z")

</div>

Hi @dylan,

> [@dylan](#):
>
> I'm happy to, running it now ... but would we in fact expect a different result? Isn't 0% filtered just another point on the line with, say, 1% filtered and 5% filtered?

You are right we didn't really see a different results? I guess the take-away is that these microbes that you are filtering is not altering the composition at all.

---

<div class="post-metadata">

### Author: ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)
#### Post date: [March 5, 2024, 2:47pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/13 "2024-03-05T14:47:37Z")

</div>



---

<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 5, 2024, 8:48pm UTC](https://forum.qiime2.org/t/ancombc-identical-results-for-non-identical-feature-tables/29399/14 "2024-04-05T20:48:17Z")

</div>

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