contrast_names_to_sedesign | R Documentation |
Convert contrast names to sedesign object
contrast_names_to_sedesign(
contrast_names,
factor_sep = "_",
contrast_sep = "-",
...
)
contrast_names |
|
factor_sep , contrast_sep |
|
... |
additional arguments are ignored. |
This function is a convenience function intended only to convert
a vector of contrast names into sedesign
format for use in other
functions. It assumes only one sample replicate per group for this
purpose.
One utility of this function is to convert two-way contrast names into a contrast matrix, to test whether the contrast defined is equivalent for the two names.
sedesign
object, or if the input contrast_names
contain
mixed number of factors per contrast, the output is split into
a list
of sedesign
objects based upon the number of factors.
Other jam experiment design:
check_sedesign()
,
contrast2comp()
,
contrast_colors_by_group()
,
contrasts_to_factors()
,
contrasts_to_venn_setlists()
,
draw_oneway_contrast()
,
draw_twoway_contrast()
,
filter_contrast_names()
,
groups_to_sedesign()
,
plot_sedesign()
,
sedesign_to_factors()
,
validate_sedesign()
contrast_names_3fac <- c(
"(CellA_Treated-CellA_Control)-(CellB_Treated-CellB_Control)",
"(CellA_Treated-CellB_Treated)-(CellA_Control-CellB_Control)")
contrast_names_to_sedesign(contrast_names_3fac)
contrast_names_3way <- c(
paste0("((CellA_Treated_Mut-CellB_Treated_Mut)-",
"(CellA_Control_Mut-CellB_Control_Mut))-",
"((CellA_Treated_WT-CellB_Treated_WT)-",
"(CellA_Control_WT-CellB_Control_WT))"),
paste0("((CellA_Treated_Mut-CellA_Control_Mut)-",
"(CellB_Treated_Mut-CellB_Control_Mut))-",
"((CellA_Treated_WT-CellA_Control_WT)-",
"(CellB_Treated_WT-CellB_Control_WT))"))
contrast_names_to_sedesign(contrast_names_3way)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.