View source: R/dream_ftest_contrasts.R
dream_ftest_contrasts | R Documentation |
Apply variancePartition's dream
, to one or more contrasts, perform perform moderated F-test, and return
a table using limma's topTable
.
dream_ftest_contrasts(
object,
formula,
pheno,
contrast.v,
weights = NA,
grp = NULL,
add.means = !is.null(grp),
moderated = TRUE,
prefix = ""
)
object |
Matrix-like data object containing log-ratios or log-expression values, with rows corresponding to features (e.g. genes) and columns to samples. Must have row names that are non-duplicated and non-empty. |
formula |
specifies variables for the linear (mixed) model. Must only specify covariates, since the rows of exprObj are automatically used as a response. e.g.: |
pheno |
data.frame with columns corresponding to formula |
contrast.v |
Named vector of contrasts, passed to |
weights |
Non-negative observation weights. Can be a numeric matrix of individual weights of same size as the
|
grp |
Vector of sample groups. These must be valid variable names in R and the same length as
|
add.means |
Logical indicating if (unweighted) group means per row should be added to the output. |
moderated |
Logical; should variancePartition::eBayes be used? |
prefix |
Character string to add to beginning of column names. |
Data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.