Skip to content

chanw0/MRS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title output
MRS
html_document
knitr::opts_chunk$set(echo = TRUE)

MRS

Welcome to MRS's page!

Installing MRS

To install the development version from github:

library(devtools)
install_github("chanw0/MRS")

Once installed, the package can be loaded using:

library("MRS")

Examples

Example 1: Evaluation of MRS in terms of comparison between Healthy and Nonhealthy

1.1 using ANCOMBC method and Shannon index

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

res=MRS(discovery, validation, GroupID="Group", DA.method="ALDEx2", measurement="shannon")
AUC=res[[3]]

Example 2 Evaluation of MRS in terms of comparison between Healthy and a specific disease Healthy vs. CA

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]]

Development team

Authors/developers

MRS is developed by:

Maintainer

Releases

No releases published

Packages

No packages published

Languages