README.md

Log Ratio Tree Test

Differential Abundance Analysis for Microbiome data Incorporating Phylogeny. We call this methods LRTT( Log Ratio Tree Test).

Installation

# Install the development version from GitHub
devtools::install_github("ZRChao/LRTT")

Contents

Simulation

Tree relate function

Other function

Require

Example

You can see this in real data application of throat.R

library(MiSPU)
data(throat.otu.tab)
data(throat.tree)
data(throat.meta)
data(throat.taxa.index )

p <- ncol(throat.otu.tab)
# throat.taxa.index <- Taxa.index(p, throat.tree)
colnames(throat.otu.tab) <- as.character(1:p)

throat.taxa.tab <- as.matrix(throat.otu.tab) %*% throat.taxa.index
throat.alltab <- cbind(throat.taxa.tab,  throat.otu.tab)
group <- throat.meta$SmokingStatus


result <- Tree.ratio(p, throat.tree, throat.taxa.index, throat.alltab, group)

throat.detected <- Tree.ratio.back(p, throat.tree, throat.taxa.index, results, group)


ZRChao/LRTT documentation built on May 17, 2019, 6:36 p.m.