make_pairwise_contrasts | R Documentation |
In order to have uniformly consistent pairwise contrasts, I decided to avoid potential human erors(sic) by having a function generate all contrasts.
make_pairwise_contrasts(
model,
conditions,
do_identities = FALSE,
do_extras = TRUE,
do_pairwise = TRUE,
keepers = NULL,
extra_contrasts = NULL,
...
)
model |
Describe the conditions/batches/etc in the experiment. |
conditions |
Factor of conditions in the experiment. |
do_identities |
Include all the identity strings? Limma can use this information while edgeR can not. |
do_extras |
Include extra contrasts? This seems redundant with extra_contrasts below, but there is a reason for it. |
do_pairwise |
Include all pairwise strings? This shouldn't need to be set to FALSE, but just in case. |
keepers |
Only extract this subset of all possible pairwise contrasts. |
extra_contrasts |
Optional string of extra contrasts to include. |
... |
Extra arguments passed here are caught by arglist. |
Invoked by the _pairwise() functions.
List including the following information:
all_pairwise_contrasts = the result from makeContrasts(...)
identities = the string identifying each condition alone
all_pairwise = the string identifying each pairwise comparison alone
contrast_string = the string passed to R to call makeContrasts(...)
names = the names given to the identities/contrasts
[limma::makeContrasts()]
## Not run:
pretend <- make_pairwise_contrasts(model, conditions)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.