Expand description
Port of limma’s modelMatrix / uniqueTargets (modelmatrix.R): construct
the design matrix for a two-color (Cy3/Cy5) microarray experiment from a
table of target names. Each array contributes a log-ratio Cy5 − Cy3, and
the design expresses those log-ratios in terms of either a common-reference
parametrization or a caller-supplied parameter matrix.
Target names are sorted by byte order (matching R’s sort() for the usual
ASCII target labels); the makeContrasts companion lives in
crate::contrasts.
Structs§
- Model
Matrix - Two-color design matrix and its coefficient (column) names.
Enums§
- Model
Param - How a two-color design’s coefficients are defined.
Functions§
- model_
matrix - Port of
modelMatrix(targets, parameters=, ref=).cy3/cy5are the green and red channel target names for each array. Returns the design matrixzapsmall(t(solve(crossprod(P), crossprod(P, J))), 14), whereJ[t,a]is+1if targettis the Cy5 sample of arraya,-1if it is the Cy3 sample, andPis the parameter matrix. - unique_
targets - Sorted, de-duplicated target names across the Cy3 and Cy5 columns — the
uniqueTargetshelper.