The goal of MiAF is to test for overall association between the composition of a microbial community and a host phenotype of interest (e.g. disease status) with/without covariate adjustments. In this package, we construct a novel community-level test, named MiAF, by adaptively combining p-values from OTU-level (univariate) tests.
library(devtools)
install_github("songbiostat/MiAF")
library(MiAF)
library(GUniFrac)
data(throat.otu.tab)
data(throat.meta)
data(throat.tree)
y <- as.numeric(throat.meta$SmokingStatus == 'Smoker')
gender <- as.numeric(throat.meta$Sex == 'Female')
zcov <- as.matrix(gender)
MiAF(Y = y, X = throat.otu.tab, tree = throat.tree, cov = zcov, model = "binomial", n.perm = 999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.