# Easy way to perform the linear-mixed-effects analysis on the important features from the Feature volatility analysis?

**URL:** <https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827>\
**Category:** User Support\
**Tags:** import\
**Created:** [July 24, 2020, 3:14am UTC](https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827 "2020-07-24T03:14:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![11131](https://forum.qiime2.org/user_avatar/forum.qiime2.org/11131/32/8433_2.png) [@11131](https://forum.qiime2.org/u/11131)\
**Post date:** [July 24, 2020, 3:14am UTC](https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827/1 "2020-07-24T03:14:21Z")

</div>

Hi,  
I just finished the [Feature volatility analysis](https://docs.qiime2.org/2020.2/tutorials/longitudinal/#feature-volatility-analysis), and I'm trying to perform the [Linear mixed effect models](https://docs.qiime2.org/2020.2/tutorials/longitudinal/#linear-mixed-effect-models) analysis on the important features from the Feature volatility analysis. However, the important features form the filtered-table could be as many as more than 10, making it fussy and repetitive when I use the _--p-metric_ parameter in the _qiime longitudinal linear-mixed-effects_ because only one feature could be analyzed at a time. I know a [loop](https://forum.qiime2.org/t/linear-mixed-effects-with-individual-features/4622) could solve this problem. But it's still still a bit cumbersome as I need to export the feature IDs first and then import them to the _qiime longitudinal linear-mixed-effects_ analysis. I'm wondering if I can import the filtered-table directly to the _qiime longitudinal linear-mixed-effects_ analysis? Any help would be much appreciated!  
Thank you,  
Hongbin Liu

---

<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:** [July 24, 2020, 5:21pm UTC](https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827/2 "2020-07-24T17:21:48Z")

</div>

Hi @11131,  
Great questions. The feature volatility analysis is meant to be exploratory and allow you to identify and then visualize the temporal changes in abundance of potentially important features. So I would not run an LME on every single important feature, necessarily. I recommend:

1. use the feature volatility visualization to generate specific hypotheses:
  1. identify features that fit some criteria of interest, e.g., relative abundance, % change, increase/decrease following some biologically defined hypothesis about changes in abundance such as following an intervention, maybe also taxonomic membership in biologically relevant groups.
  2. examine their volatility plot to determine if the temporal change fits the assumptions of LME or other appropriate tests (e.g., linearity)

2. choose LME or another appropriate test to test those specific hypotheses

That sounds more or less what you are doing, but I just recommend carefully selecting specific organisms of interest and testing those instead of all important features.

> [@11131](#):
>
> I’m wondering if I can import the filtered-table directly to the _qiime longitudinal linear-mixed-effects_ analysis?

Yes — see the help documentation for that method, a feature table is an optional input.

Good luck!

---

<div class="post-metadata">

**Author:** ![11131](https://forum.qiime2.org/user_avatar/forum.qiime2.org/11131/32/8433_2.png) [@11131](https://forum.qiime2.org/u/11131)\
**Post date:** [July 25, 2020, 9:23am UTC](https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827/3 "2020-07-25T09:23:07Z")

</div>

Hi Nicholas,  
Thanks for your prompt reply!  
I know you chose _Bifidobacterium_ and _Faecalibacterium_ to do the analysis in the [q2-longitudinal](https://msystems.asm.org/content/3/6/e00219-18) paper. Here another question is that in the paper you fit three separate linear models to examine _Bifidobacterium_ abundance between 0 to 6 and 6 to 18 months of life and _Faecalibacterium_ between 6 to 12 months of life, since the trajectories appear approximately linear within each of these biologically sensible developmental phases. How are the time points for the developmental “windows” determined? Is this determined by observing the temporal changes in abundance of _Bifidobacterium_, or the LME method you mentioned above to determine the exact time points for the genus? How?  
In my study, I monitor the gut microbiota dynamics after dietary fiber intervention through longitudinal sampling to screen the microbes that response to the fiber and associate ecological alteration. I know it's will be much better to choose important features to perform the LME analysis, but I still want to test all the features in the filtered-table in case I miss some important features that associated the intervention. I checked the [Linear mixed effects modeling](https://docs.qiime2.org/2020.2/plugins/available/longitudinal/linear-mixed-effects/) and found that a feature table was indeed an optional input. If I want to test all the features in the filtered-table, should I ignore the --p-metric parameter? And how should I set the output --o-visualization?  
Thank you for your help!  
Best!  
Hongbin Liu

---

<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:** [July 25, 2020, 3:47pm UTC](https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827/4 "2020-07-25T15:47:38Z")

</div>

> [@11131](#):
>
> How are the time points for the developmental “windows” determined?

Determined manually, based on the temporal abundance profile.

> [@11131](#):
>
> I still want to test all the features in the filtered-table in case I miss some important features that associated the intervention

It would be better to use a method like aldex2 or ancom to test treatment effects on ALL features, as these are compositionally aware and designed to control for false positives when testing a large number of inputs.

> [@11131](#):
>
> If I want to test all the features in the filtered-table, should I ignore the --p-metric parameter? And how should I set the output --o-visualization?

you would need to set up a loop as you described previously... inputting a table still requires a single metric at a time.

---

<div class="post-metadata">

**Author:** ![11131](https://forum.qiime2.org/user_avatar/forum.qiime2.org/11131/32/8433_2.png) [@11131](https://forum.qiime2.org/u/11131)\
**Post date:** [July 27, 2020, 6:00am UTC](https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827/5 "2020-07-27T06:00:38Z")

</div>

Thank you for your reply! I'll try the analysis with a loop.  
Best!

---

<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:** [August 27, 2020, 12:00pm UTC](https://forum.qiime2.org/t/easy-way-to-perform-the-linear-mixed-effects-analysis-on-the-important-features-from-the-feature-volatility-analysis/15827/6 "2020-08-27T12:00:42Z")

</div>

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