title: "MRS" output: html_document
```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE)
# MRS
Welcome to *MRS*'s page!
Installing *MRS*
-------------
To install the development version from github:
```r
library(devtools)
install_github("chanw0/MRS")
Once installed, the package can be loaded using:
library("MRS")
1.1 using ANCOMBC method and Shannon index
```{r example1} discovery=GMHI[[1]]; validation=GMHI[[2]]; res=MRS(discovery, validation, GroupID="Group", DA.method="ancombc", measurement="shannon") AUC=res[[3]]
1.2 using ALDEx2 method and Shannon index
```{r example2}
res=MRS(discovery, validation, GroupID="Group", DA.method="ALDEx2", measurement="shannon")
AUC=res[[3]]
{r example3}
discovery.sub=prune_samples(sample_data(discovery)$Group1 %in% c("Healthy","CA"),discovery)
validation.sub=prune_samples(sample_data(validation)$Group1 %in% c("Healthy","CA"),validation)
res=MRS(discovery.sub, validation.sub, GroupID="Group", DA.method="ALDEx2", measurement="shannon")
AUC=res[[3]]
MRS is developed by:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.