Test for interaction with ANCOM-BC

Hi everyone,

Is there a way to test interactions using ANCOM-BC2 in QIIME 2? My experimental design includes three factors with different levels:

Genotype: one resistant and one susceptible genotype.

Collection point: first, second, third, and fourth, representing different stages of disease development.

Fungicide treatment: treated and untreated.

My research goal is to investigate how microbial communities change across disease development stages and whether these changes differ between genotypes and fungicide treatments. Analyzing each combination of factors separately would generate many comparisons, and I am unsure how best to integrate those results. Any guidance on an appropriate analysis would be greatly appreciated.

Thank you!
Asmaa

Hi @asmaamorsi,

I think the best way to approach this problem is to look at how you're already modeling your diversity and match that.

Are you modeling the treatment and geneotype effects as two independent predictors (genotype + treatment); looking at their interaction (genotype*treatment) or splitting them into 4 categories (genotype x treatment)?

How are you looking at time? Is it continuous or categorical? Are you looking at each time point separately with a cross sectional analysis? Are you looking at the longitudinal change from baseline? (I'm assuming you already checked if the individuals were more similar to themselves than they were to other individuals).

IMO, how you do your diversity should inform how you do your differential abundance, so that's why I ask the modeling questions.

Best,
Justine

1 Like

That's a great question. For diversity analysis, I split the data by time point and ran alpha and beta diversity for each time point individually. I haven't done the following step, but I was thinking of fitting the following model: diversity metric ~ genotype * fungicide treatment to look at differences in genotype, fungicide treatment, and their interaction. Then, I will follow up with pairwise comparison to test the specific differences.

To answer your questions, time (collection point) is categorical and represents 4 different disease development stages. Yes, I am looking at the longitudinal change from baseline.

1 Like

Thanks for clarifying @asmaamorsi!

I've got a direct answer, and a little bit more of a philosophical one. (Yes I have :teacup_without_handle: for those asking.)

So, practical and direct: I would apply your ANCOM-BC in a way that matches how you analyzed your diversity as much as you can. So, if you're doing cross sectional, I would do cross sectional ANCOM-BC at each time point. If it were my data (and YMMV, I would probably try coding and visualizing the genotype x treatment variable because I think that will make your modeling easier all around.

And now for a more complex answer, and the reason people may have stopped inviting me to journal clubs...

When you're doing a longitudinal analysis with cross sectional timepoints, you're essentially treating each timepoint as unique, rather than as a series of repeated measures on the same individuals. The implicit assumption here is that the change in the microbiome between timepoints is big enought that you should just be treating the participants as seperate at each time.

In my work, Ive found that its hard to get adults to stop maintaining a consistent microbiome. I dont know if this is true for the system you study, but I'd suggest checking. If this is true for you, the R2 value for your individual in adonis should be high; you should see clustering by individual in PCoA space; or if you make a within individual vs within timepoint (match on genotype; treatment; and time point) plot, the within individual distance will be smaller than the within time point distance.

If this is the case, you end up with two questions: (1) is the microbiome different at baseline (presumably early in infection or early in treatment) and (2) how does the microbiome change in response to treatment. Your initial comparison pays for a between individual effect potentially leading to high variance. But, in your longitudinal analysis, you gain more power becuase you've removed that between individual effect. You also get to ask whether differences at baseline or differences overtime drive whatever you're seeing. (I think CTF is probably the most elegant example of this, see the supplement of the original paper for more details about how this can work.)

The other consideration I want to emphasize for a cross sectional comparison is that PCoAs (and adonis/permanova results) are dependent on the sample set you put in. So, a PCoA on time point 1 is not directly comparable to the PCoA at time point 2. Separation at both T1 and T2 do not mean that the same microbes are driving the differences. A longitudinal comparison means that you're looking either at the change from baseline (so the same space) or the distance (so the same space). Strong individual effects and a procrustes might let you cheat some of this, but you're still constrained by the realities of the ordination technique.

...Rant over, Im going to climb off my soap box and slowly wander away whistling as thought I have done nothing here. Thanks for letting me ramble about current frustrations here.

Best,
Justine

1 Like