# q2-longitudinal analysis results interpretation and seeking for help

**URL:** https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793
**Category:** User Support
**Created:** [March 9, 2021, 8:37am UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793 "2021-03-09T08:37:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![souvikm](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@souvikm](https://forum.qiime2.org/u/souvikm)
#### Post date: [March 9, 2021, 8:37am UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793/1 "2021-03-09T08:37:11Z")

</div>

We are a Human Microbiome Research (HMR) laboratory in National Institute of Biomedical Genomics, India. Recently, we have generated data on vaginal microbiome (V3-V4 of 16S rDNA) of 18 Preterm and 20 Term mothers for all the three trimesters. For performing longitudinal analysis, we used q2-longitudinal (Bokulich _et al.,_ 2018 mSystems). We have performed Linear Mixed Effect Model (LME) in 3 ways. However, we could not interpret the appropriate models to be used or the results obtained. I am attaching the plots and results that is generated but could not interpret these. Can you please provide us necessary guidance on how to use q2-longitudinal for our data?

 ![0006](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/6/66661c2a0b12f3c73108bb007782b607cd51f5df.jpeg) ![0001](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/c/cafd7384696a2a4bfbad2a72cd48a6b0345e7c3b.jpeg) ![0002](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/4/4d150f6cd767fbec7c09052af0c6d2fe3f6c2f48.jpeg) ![0003](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/fe5f983b18eab7c9920c571a064a55c797799d43.jpeg) ![0004](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/c/c47606e1b6276fce42d3964fde83b97ffa20011e.jpeg) ![0005](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/0/02dd2b349db54d48887fef071fecd579b5dce5a6.jpeg) ![0001](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/c/cafd7384696a2a4bfbad2a72cd48a6b0345e7c3b.jpeg) ![0002](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/4/4d150f6cd767fbec7c09052af0c6d2fe3f6c2f48.jpeg) ![0003](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/fe5f983b18eab7c9920c571a064a55c797799d43.jpeg) ![0004](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/c/c47606e1b6276fce42d3964fde83b97ffa20011e.jpeg) ![0005](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/0/02dd2b349db54d48887fef071fecd579b5dce5a6.jpeg) ![0006](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/6/66661c2a0b12f3c73108bb007782b607cd51f5df.jpeg) ![0007](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/a/a9ce88d3654bedbcbf1df16be8499e30115d4c80.jpeg) ![0008](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/f298005685a10284fa6d965d809cfc711799959b.jpeg) ![0009](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/3/3483d18b216501a89514476d35b330ce36015369.jpeg) ![0010](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/d/d48e88822b5592a83648ed6de186471633b6668e.jpeg) ![0011](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/1/15a883d843fe31fb8a0cc892e6b0bc0dd7add9dc.jpeg) ![0012](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/0/0838fcd1ec18af8a17d73c19cc270c44b4678c0f.jpeg) ![0013](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/2/2742aa707694118d0d029da370eb7cccb1ea4b1b.jpeg) ![0014](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/8/88d3e87613f8a2840f69608059e1f0846a8af3f5.jpeg)

---

<div class="post-metadata">

### Author: ![andrewsanchez](https://forum.qiime2.org/user_avatar/forum.qiime2.org/andrewsanchez/32/20160_2.png) [@andrewsanchez](https://forum.qiime2.org/u/andrewsanchez)
#### Post date: [March 10, 2021, 10:27pm UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793/5 "2021-03-10T22:27:18Z")

</div>

Hi, @souvikm, and welcome to the forum! 👋

> [@souvikm](#):
>
> However, we could not interpret the appropriate models to be used or the results obtained. I am attaching the plots and results that is generated but could not interpret these. Can you please provide us necessary guidance on how to use q2-longitudinal for our data?

Would you mind providing more details about why you are struggling to interpret your results? It's great that you've included so many details in your post! 👍 However, it will be quite a lot of work to sift through all of this information in order to try and figure out how to help you. If you can point to specific examples and provide details about exactly what you are confused about, I think you will have much better luck getting help here on the forum.

---

<div class="post-metadata">

### Author: ![souvikm](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@souvikm](https://forum.qiime2.org/u/souvikm)
#### Post date: [March 11, 2021, 9:00am UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793/6 "2021-03-11T09:00:10Z")

</div>

Dear Andrew,

We have relative abundance data on _Lactobacillus iners_ for 14 Preterm and 19 Term mothers for 1st, 2nd and 3rd trimesters of pregnancy. We want to find out if there is any significant longitudinal fluctuation or shift in the relative abundance of _L. iners_ in both the groups across the three trimesters. For this, we have used q2-longitudinal and performed 3 types of analysis, not sure which one is providing us correct information.

In Case-I, we took, Response Variable=Birth-Type (preterm or term) (Y-axis) & State Column=Taxon (X-axis). However, from the scatter plot the answer to our question was not evident as each regression line was annotated for each trimesters. (refer to figure 1)

In Case-II, we took, Response Variable=Taxon (Y-axis) & State Column=Trimester (X-axis). In this case, we are not able to interpret what the regression lines are showing. However, is it correct to use Taxon (_L iners_) as the Response variable? Since, response should be term birth or preterm birth as per our understanding. (refer to figure 2)

These are the confusions, please advice.

 ![Figure 1_q2-longitudinal](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/d/d717845c9af47062d9c2a6acba8c75f444ae065c.jpeg) ![Figure 2_q2-longitudinal](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/8/87424f0e6ce5d647aeb4d81eb1720cb058ae3cf4.jpeg)

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [March 15, 2021, 11:50pm UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793/7 "2021-03-15T23:50:58Z")

</div>



---

<div class="post-metadata">

### Author: ![andrewsanchez](https://forum.qiime2.org/user_avatar/forum.qiime2.org/andrewsanchez/32/20160_2.png) [@andrewsanchez](https://forum.qiime2.org/u/andrewsanchez)
#### Post date: [March 16, 2021, 10:20pm UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793/8 "2021-03-16T22:20:02Z")

</div>

Thanks for the additional details, @souvikm! Sorry for the late response; I'll take a look at this in detail and get back to you ASAP.

Cheers,  
Andrew

---

<div class="post-metadata">

### Author: ![andrewsanchez](https://forum.qiime2.org/user_avatar/forum.qiime2.org/andrewsanchez/32/20160_2.png) [@andrewsanchez](https://forum.qiime2.org/u/andrewsanchez)
#### Post date: [March 18, 2021, 9:06pm UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793/10 "2021-03-18T21:06:17Z")

</div>

Hi, @souvikm ,

> [@souvikm](#):
>
> In Case-I, we took, Response Variable=Birth-Type (preterm or term) (Y-axis) & State Column=Taxon (X-axis). However, from the scatter plot the answer to our question was not evident as each regression line was annotated for each trimesters. (refer to figure 1)

> [@souvikm](#):
>
> Since, response should be term birth or preterm birth as per our understanding.

Specifying birth type as the response variable means that you want to check if the birth type responds to/depends upon the relative abundance of `Taxon`. The resulting scatter plot shows no response for `Taxon`. Can you see why that's the case?

Additionally, since you mentioned that you are specifically interested in looking at changes in the relative abundance in relation to trimesters, I don't think specifying the state column as `Taxon` is what you want to do. To quote from the [q2-longitudinal tutorial](https://docs.qiime2.org/2021.2/tutorials/longitudinal/#linear-mixed-effect-models):

> “States” will most commonly be related to time or an environmental gradient, and for paired analyses (`pairwise-distances` and `pairwise-differences`) the sample pairs should typically consist of the same individual subject observed at two different time points. For example, patients in a clinical study whose stool samples are collected before and after receiving treatment.  
> “States” can also commonly be methodological, in which case sample pairs will usually be the same individual at the same time with two different methods. For example, q2-longitudinal could compare the effects of different collection methods, storage methods, DNA extraction methods, or any bioinformatic processing steps on the feature composition of individual samples.

I hope that helps. Let me know if you have any other specific questions. I think if you take the time to carefully work through at least the first half of the longitudinal tutorial I linked to above, it will clear up a lot of things for you.

---

<div class="post-metadata">

### Author: ![andrewsanchez](https://forum.qiime2.org/user_avatar/forum.qiime2.org/andrewsanchez/32/20160_2.png) [@andrewsanchez](https://forum.qiime2.org/u/andrewsanchez)
#### Post date: [March 18, 2021, 9:16pm UTC](https://forum.qiime2.org/t/q2-longitudinal-analysis-results-interpretation-and-seeking-for-help/18793/11 "2021-03-18T21:16:21Z")

</div>


