Check whether a SEDesign object is valid
Details
This function checks whether an SEDesign object is valid:
if
samplesis provided, and ifdesignis provided,samplesmust matchrownames(design).if
designis provided, and ifcontrastsis provided,colnames(design)must matchrownames(contrasts).if
contrastsis provided,designmust 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()