DA.zig | R Documentation |
Implementation of Metagenome zero-inflated gaussian model for DAtest
DA.zig( data, predictor, paired = NULL, covars = NULL, p.adj = "fdr", by = 2, eff = 0.5, allResults = FALSE, ... )
data |
Either a matrix with counts/abundances, OR a |
predictor |
The predictor of interest. Either a Factor or Numeric, OR if |
paired |
For paired/blocked experimental designs. Either a Factor with Subject/Block ID for running paired/blocked analysis, OR if |
covars |
Either a named list with covariables, OR if |
p.adj |
Character. P-value adjustment. Default "fdr". See |
by |
Column number or column name specifying which coefficient or contrast of the linear model is of interest (only for categorical |
eff |
Filter features to have at least a |
allResults |
If TRUE will return raw results from the |
... |
Additional arguments for the |
A data.frame with with results.
# Creating random count_table and predictor set.seed(4) mat <- matrix(rnbinom(1000, size = 0.1, mu = 500), nrow = 100, ncol = 10) rownames(mat) <- 1:100 pred <- c(rep("Control", 5), rep("Treatment", 5)) # Running MetagenomeSeq Zero-inflated Gaussian res <- DA.zig(data = mat, predictor = pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.