Check whether a SEDesign object is valid
Details
This function checks whether an SEDesign
object is valid:
if
samples
is provided, and ifdesign
is provided,samples
must matchrownames(design)
.if
design
is provided, and ifcontrasts
is provided,colnames(design)
must matchrownames(contrasts)
.if
contrasts
is provided,design
must also be provided.
Note that samples
can be a subset of rownames(design)
,
in which case the design
will also be subset accordingly.
Similarly, colnames(design)
can be a subset of
rownames(contrasts)
, which would force contrasts
to be subset accordingly.
Typically the order of samples
should match the order of
rownames(design)
but this is not required. Downstream methods
should confirm this order.
Typically the order of colnames(design)
should match the order of
rownames(contrast)
but this is not required. Downstream methods
should confirm this order.
See also
Other jam experiment design:
contrast2comp()
,
contrast_colors_by_group()
,
contrast_names_to_sedesign()
,
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()