DA.llm2 | R Documentation |
Apply linear regression on multiple features with one predictor
, with log transformation of relative abundances.
Mixed-effect model is used when a paired
argument is included, with the paired
variable as a random intercept.
DA.llm2( data, predictor, paired = NULL, covars = NULL, out.all = NULL, p.adj = "fdr", delta = 0.001, coeff = 2, 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 |
out.all |
If TRUE will output results and p-values from |
p.adj |
Character. P-value adjustment. Default "fdr". See |
delta |
Numeric. Pseudocount for the log transformation. Default 0.001 |
coeff |
Integer. The p-value and log2FoldChange will be associated with this coefficient. Default 2, i.e. the 2. level of the |
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(1500, size = 0.1, mu = 500), nrow = 100, ncol = 15) rownames(mat) <- 1:100 pred <- c(rep("A", 5), rep("B", 5), rep("C", 5)) # Running linear model on each feature res <- DA.llm2(data = mat, predictor = pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.