build_design_matrix: Build design matrix for limma analysis
Description
Creates a design matrix incorporating the group variable and optional covariates.
Usage
build_design_matrix(metadata, group, covariates = NULL)
Value
A design matrix suitable for limma
Arguments
- metadata
A data frame containing sample metadata
- group
A character string specifying the grouping variable column name
- covariates
A character vector of covariate column names (optional)