DA.qpo | R Documentation |
Apply quasi-poisson generalized linear model for multiple features with one predictor
With log(librarySize)
as offset if relative=TRUE
.
DA.qpo( data, predictor, covars = NULL, relative = TRUE, out.all = NULL, p.adj = "fdr", coeff = 2, coeff.ref = 1, allResults = FALSE, ... )
data |
Either a matrix with counts/abundances, OR a |
predictor |
The predictor of interest. Either a Factor or Numeric, OR if |
covars |
Either a named list with covariables, OR if |
relative |
Logical. Whether |
out.all |
If TRUE will output results and p-values from |
p.adj |
Character. P-value adjustment. Default "fdr". See |
coeff |
Integer. The p-value and log2FoldChange will be associated with this coefficient. Default 2, i.e. the 2. level of the |
coeff.ref |
Integer. Reference 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(1000, size = 0.1, mu = 500), nrow = 100, ncol = 10) rownames(mat) <- 1:100 pred <- c(rep("Control", 5), rep("Treatment", 5)) # Running Quasi-Poisson regression on each feature res <- DA.qpo(data = mat, predictor = pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.