View source: R/edger_ftest_contrasts.R
edger_ftest_contrasts | R Documentation |
#'Apply edgeR's glmQLFit
, or glmFit
, glmQLFTest
, glmLRT
, or glmWeightedF
to one or more contrasts,
perform F-test for all contrasts, and return a list
edger_ftest_contrasts(
dge,
grp = NULL,
contrast.v,
add.means = !is.null(grp),
design = NULL,
prefix = "",
cols = c("F", "t", "PValue", "FDR"),
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. |
prefix |
Character string to add to beginning of column names. |
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.