# Singularity in MaAsLin2 Linear Models

**URL:** https://forum.biobakery.org/t/singularity-in-maaslin2-linear-models/5752
**Category:** MaAsLin
**Created:** [August 10, 2023, 5:09am UTC](https://forum.biobakery.org/t/singularity-in-maaslin2-linear-models/5752 "2023-08-10T05:09:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chelsea307](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/chelsea307/32/2341_2.png) [@chelsea307](https://forum.biobakery.org/u/chelsea307)
#### Post date: [August 10, 2023, 5:09am UTC](https://forum.biobakery.org/t/singularity-in-maaslin2-linear-models/5752/1 "2023-08-10T05:09:26Z")

</div>

Hi, I am using LMs in MaAsLin2 to test how different variables affect microbial abundances. For some taxa, the model is showing up as Is Singular in the console as the model runs for all of the taxa. After this warning message, the code continues running and outputs all of the expected .tsv files with the model results. My two questions are:

1. Are the results from the singular models included in the all\_results.tsv automatically generated by MaAsLin2?
2. Is there any way to flag or list the taxa for which the model is singular?  
Thank you! Happy to provide additional info if useful.

---

<div class="post-metadata">

### Author: ![nearinj](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nearinj/32/2135_2.png) [@nearinj](https://forum.biobakery.org/u/nearinj)
#### Post date: [August 14, 2023, 6:06pm UTC](https://forum.biobakery.org/t/singularity-in-maaslin2-linear-models/5752/2 "2023-08-14T18:06:59Z")

</div>

Hi @chelsea307,

Hope you are doing well. To answer your questions"

1. Yes the results from singular models will be included in the automatically generated MaAslin2 results.
2. This is something that has come up a few times in the lab and will be addressed in our next iteration of the tool. As for now we suggest taking a look at the log file or using the save\_models parameter to save the models and manually inspect the ones of interest.

Cheers,  
Jacob Nearing

---

<div class="post-metadata">

### Author: ![chelsea307](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/chelsea307/32/2341_2.png) [@chelsea307](https://forum.biobakery.org/u/chelsea307)
#### Post date: [August 28, 2023, 5:18am UTC](https://forum.biobakery.org/t/singularity-in-maaslin2-linear-models/5752/3 "2023-08-28T05:18:22Z")

</div>

Thank you for your help, I appreciate it!
