Description Usage Arguments Value Examples
An method for differential abundance detection
1 |
otu.data |
an OTU table with n rows (samples) and m columns (taxa) |
group |
a n-vector of group indicators |
cutf |
level of significance |
adj.m |
the adjustment methods for p-values |
test.method |
t-test or Wilcoxon rank sum test |
final.p the adjusted p values
dif.otus the set of differentially abundant OTUs
1 2 3 4 5 6 7 8 9 10 11 12 | ####generate data####
library(eBay)
set.seed(1)
rand_pi <- runif(20)
control_pi = case_pi = rand_pi/sum(rand_pi)
control_theta = case_theta = 0.1
group <- rep(c(0,1),each =20)
ntree_table <- simulation_dm(p=20,seed=1, N=20,control_pi, case_pi,
control_theta,case_theta)
#####differential abundance testing###
ebay.res <- eBay(otu.data=ntree_table, group=group, test.method="t",
cutf=0.05,adj.m="BH")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.