ANCOMBC icon indicating copy to clipboard operation
ANCOMBC copied to clipboard

Different results with ancombc2 depending on the order of the taxa

Open laetitia-schramm opened this issue 1 year ago • 1 comments

Hi, I have an issue regarding ancombc2 function. I am working with taxonomic data from metaG and metaT sequencing. I created a phyloseq object and used it as the input data for ancombc2. However, I realised that, depending on how the taxa are ordered in my phyloseq object, I obtain different results (significant taxa). The data is exactly the same (same taxa, same counts, same samples, etc...), just the order changes and I used the exact same formula and the exact same seed number before running ancombc2. I also made sure that everything matches between the otu_table, sample_data and tax_table in my phyloseq object (making sure that groups were properly assigned to the right samples, etc...).

I was wondering if the order of the features tested matters for the statistical test, which could explain the difference in the obtained results?

Thanks in advance for your help!

laetitia-schramm avatar Feb 28 '24 12:02 laetitia-schramm

Thanks for your question. Could you please provide more details of your data?

Maggie8888 avatar Sep 27 '24 15:09 Maggie8888