View source: R/edger_contrasts.R
edger_contrasts | R Documentation |
Apply edgeR's glmQLFit
, or glmFit
, glmQLFTest
, glmLRT
, or glmWeightedF
to one or more contrasts, and return
a list
edger_contrasts(
dge,
grp = NULL,
contrast.v,
add.means = !is.null(grp),
design = NULL,
cols = c("PValue", "FDR", "logFC"),
test = "QLFT",
plot = FALSE
)
dge |
DGEList object. |
grp |
Vector of sample groups. These must be valid variable names in R and the same length as
|
contrast.v |
Named vector of contrasts, passed to |
add.means |
Logical indicating if (unweighted) group means per row should be added to the output. |
design |
Design matrix of the experiment, with rows corresponding to samples and columns to coefficients to be estimated. |
cols |
Columns of |
test |
QLFT, LRT or WeightedFT. |
plot |
Logical indicate if to plot the QC metrics. |
If design
is NULL
and grp
is given, design will be calculated as
model.matrix(~0+grp)
. However, grp
isn't needed if design
is provided & add.means
is FALSE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.