# Reference option missing in the latest MaAsLin2 R package

**URL:** <https://forum.biobakery.org/t/reference-option-missing-in-the-latest-maaslin2-r-package/2672>\
**Category:** MaAsLin\
**Created:** [October 6, 2021, 6:53pm UTC](https://forum.biobakery.org/t/reference-option-missing-in-the-latest-maaslin2-r-package/2672 "2021-10-06T18:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuqi\_Li](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/shuqi_li/32/869_2.png) [@Shuqi\_Li](https://forum.biobakery.org/u/Shuqi_Li)\
**Post date:** [October 6, 2021, 6:53pm UTC](https://forum.biobakery.org/t/reference-option-missing-in-the-latest-maaslin2-r-package/2672/1 "2021-10-06T18:53:53Z")

</div>

Hi,

I was following the tutorial ([MaAsLin2 · biobakery/biobakery Wiki · GitHub](https://github.com/biobakery/biobakery/wiki/MaAsLin2#3-microbiome-association-detection-with-maaslin-2)) to run the demo data provided with the package. However, with every fit\_data I found the same error shown up. It seems the latest R package does not include the ‘reference’ option anymore. How does this affect the analysis using MaAslin2 as applied to categorical metadata?

One of the error messages is attached below as an example:

> fit\_data\_random = Maaslin2(  
> input\_data = df\_input\_data,  
> input\_metadata = df\_input\_metadata,  
> output = “demo\_output\_random”,  
> fixed\_effects = c(“diagnosis”, “dysbiosis”),  
> random\_effects = c(“subject”),  
> reference = c(“diagnosis,nonIBD”))

**Error in Maaslin2(input\_data = df\_input\_data, input\_metadata = df\_input\_metadata, : \*\*  
\*\* unused argument (reference = c(“diagnosis,nonIBD”))**\*

Thank you for your help in advance.

Shuqi

---

<div class="post-metadata">

**Author:** ![Kelsey\_Thompson](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/kelsey_thompson/32/65_2.png) [@Kelsey\_Thompson](https://forum.biobakery.org/u/Kelsey_Thompson)\
**Post date:** [October 13, 2021, 7:27pm UTC](https://forum.biobakery.org/t/reference-option-missing-in-the-latest-maaslin2-r-package/2672/2 "2021-10-13T19:27:19Z")

</div>

Hi @Shuqi_Li,

To start can I check which version of MaAsLin are you using?

Thanks!  
Kelsey

---

<div class="post-metadata">

**Author:** ![Shuqi\_Li](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/shuqi_li/32/869_2.png) [@Shuqi\_Li](https://forum.biobakery.org/u/Shuqi_Li)\
**Post date:** [October 13, 2021, 7:32pm UTC](https://forum.biobakery.org/t/reference-option-missing-in-the-latest-maaslin2-r-package/2672/3 "2021-10-13T19:32:38Z")

</div>

Hi Kelsey,

> packageVersion(“MaAsLin2”)  
> [1] ‘1.2.0’

Thank you!

---

<div class="post-metadata">

**Author:** ![Kelsey\_Thompson](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/kelsey_thompson/32/65_2.png) [@Kelsey\_Thompson](https://forum.biobakery.org/u/Kelsey_Thompson)\
**Post date:** [October 13, 2021, 8:01pm UTC](https://forum.biobakery.org/t/reference-option-missing-in-the-latest-maaslin2-r-package/2672/4 "2021-10-13T20:01:30Z")

</div>

Hi @Shuqi_Li,

It looks like you have an older version of MaAsLin - the current [Bioconductor version](https://www.bioconductor.org/packages/release/bioc/html/Maaslin2.html) is at 1.6.0 can you upgrade the package and try again? I believe you have the version before we implemented the reference call.

Let me know if that doesn’t work!

Best,  
Kelsey
